From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] RFQ: Makefile cleanup
Date: Sun, 10 Oct 2010 17:14:18 +0200 [thread overview]
Message-ID: <20101010151418.C169F14F310@gemini.denx.de> (raw)
In-Reply-To: <20101006154256.20239b92@udp111988uds.am.freescale.net>
Dear Scott Wood,
In message <20101006154256.20239b92@udp111988uds.am.freescale.net> you wrote:
>
> How about having the board's config.mk do something like:
>
> ifdef CONFIG_NAND_SPL
> TEXT_BASE = ...
> endif
This is what some boardss already do...
> Well, that addresses the line length argument, at the cost of complexity
> and syntax obscurity. But I changing TEXT_BASE to CONFIG_SYS_TEXT_BASE
> is something we probably want to do anyway. If we ever switch to
> kconfig, and we want the text base to be part of that, it will have to
> start with CONFIG_.
OK. I tried this, but I'm actually running into a catch-22 situation
after moving the CONFIG_SYS_TEXT_BASE settings into boards.cfg: Some
boards (especially such that support both booting from NOR or,
alternatively, from NAND flash, or from RAM) contain only a default
setting for CONFIG_SYS_TEXT_BASE in their board specific config.mk
file. For example "board/amcc/sequoia/config.mk":
...
ifndef CONFIG_SYS_TEXT_BASE
CONFIG_SYS_TEXT_BASE = 0xFFF80000
endif
...
For the NAND-boot version, a different setting (0x01000000) is used
for CONFIG_SYS_TEXT_BASE. Before include/autoconf.mk exists, the
default setting is used, but then suddenly the value changes to the
intended setting. This causes compiler warnings when generating
include/autoconf.mk:
include/config.h:4:1: warning: "CONFIG_SYS_TEXT_BASE" redefined
<command-line>: warning: this is the location of the previous
definition
To avoid these, I tried stripping any "-DCONFIG_SYS_TEXT_BASE="
settings from the compiler options when building include/autoconf.mk
and include/autoconf.mk.dep .
But then I noticed that some boards had build errors, or the builds
differed otherwise from the previous version (some commands not
included, etc.). This was when I learned that we actually need the
correct TEXT_BASE definition on some boards to get correct setttings
into include/autoconf.mk.
In other words, we have a problem because some config settings which
are currently defined in board/.../config.mk take immediate effect and
get included into the generation of include/autoconf.mk, while other
settings (through include/configs/<name>.h) are kind of "second class"
settings.
We could, of course try and get rid of all such config settigns in the
config.mk files and move all the config logic into the
include/configs/<name>.h files, but then this is another big set of
changes, which I would like to avoid at this point. It's difficult
enough to keep my current work split indo understandable and
bisectable patches.
Any ideas?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
All I ask is a chance to prove that money can't make me happy.
next prev parent reply other threads:[~2010-10-10 15:14 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-06 19:54 [U-Boot] RFQ: Makefile cleanup Wolfgang Denk
2010-10-06 20:16 ` Albert ARIBAUD
2010-10-06 20:32 ` Wolfgang Denk
2010-10-06 20:42 ` Scott Wood
2010-10-06 21:19 ` Wolfgang Denk
2010-10-10 15:14 ` Wolfgang Denk [this message]
2010-10-10 15:46 ` Wolfgang Denk
2010-10-10 18:24 ` Mike Frysinger
2010-10-10 19:10 ` Wolfgang Denk
2010-10-10 19:57 ` Mike Frysinger
2010-10-10 21:04 ` Wolfgang Denk
2010-10-06 21:21 ` Graeme Russ
2010-10-07 0:46 ` Reinhard Meyer
2010-10-07 5:11 ` Rogan Dawes
2010-10-07 5:22 ` Wolfgang Denk
2010-10-07 6:27 ` Rogan Dawes
2010-10-07 5:19 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20101010151418.C169F14F310@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox