kumquat-buildroot/boot
Yann E. MORIN fc34cf772c core: introduce per br2-external NAME
This unique NAME is used to construct a per br2-external tree variable,
BR2_EXTERNAL_$(NAME)_PATH, which contains the path to the br2-external
tree.

This variable is available both from Kconfig (set in the Kconfig
snippet) and from the .mk files.

Also, display the NAME and its path as a comment in the menuconfig.

This will ultimately allow us to support multiple br2-external trees at
once, with that NAME (and thus BR2_EXTERNAL_$(NAME)) uniquely defining
which br2-external tree is being used.

The obvious outcome is that BR2_EXTERNAL should now no longer be used to
refer to the files in the br2-external tree; that location is now known
from the BR2_EXTERNAL_$(NAME)_PATH variable instead. This means we no
longer need to expose, and must stop from from exposing BR2_EXTERNAL as
a Kconfig variable.

Finally, this also fixes a latent bug in the pkg-generic infra, where we
would so far always refer to BR2_EXTERNAL (even if not set) to filter
the names of packages (to decide whether they are a bootloader, a
toolchain or a simple package).

Note: since the variables in the Makefile and in Kconfig are named the
same, the one we computed early on in the Makefile will be overridden by
the one in .config when we have it. Thus, even though they are set to
the same raw value, the one from .config is quoted and, being included
later in the Makefile, will take precedence, so we just re-include the
generated Makefile fragment a third time before includeing the
br2-external's Makefiles. That's unfortunate, but there is no easy way
around that as we do want the two variables to be named the same in
Makefile and Kconfig (and we can't ask the user to un-quote that variable
himself either), hence this little dirty triple-inclusion trick.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Cc: Romain Naour <romain.naour@openwide.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2016-10-16 13:01:02 +02:00
..
afboot-stm32 afboot-stm32: use the Buildroot toolchain 2016-04-16 12:43:16 +02:00
arm-trusted-firmware arm-trusted-firmware: new package 2016-10-15 14:13:34 +02:00
at91bootstrap package/at91bootstrap: add hash file 2016-06-19 21:10:16 +02:00
at91bootstrap3 boot/at91bootstrap3: bump to version 3.8.6 2016-09-23 08:05:57 +02:00
at91dataflashboot package/at91dataflashboot: add hash file 2016-06-19 21:11:25 +02:00
barebox core: introduce per br2-external NAME 2016-10-16 13:01:02 +02:00
boot-wrapper-aarch64 .mk files: bulk aligment and whitespace cleanup of assignments 2014-10-07 15:00:28 +02:00
grub boot/grub: add rootwait to default config 2016-03-10 22:29:36 +01:00
grub2 grub2: fix build with BR2_STRIP_none 2016-07-31 20:19:40 +02:00
gummiboot boot/gummiboot: switch to http for git clone 2015-05-01 10:26:51 +02:00
lpc32xxcdl Normalize separator size to 80 2013-06-07 10:54:54 +02:00
mxs-bootlets package/mxs-bootlets: add hash file 2016-06-19 21:54:20 +02:00
s500-bootloader boot: add s500-bootloader package 2016-05-26 10:35:34 +02:00
syslinux syslinux: add patch to disable pie 2016-09-12 22:32:47 +02:00
ts4800-mbrboot boot: add ts4800-mbrboot package 2016-07-15 23:15:12 +02:00
uboot boot/uboot: Call 'make all' unconditionally 2016-10-07 22:35:48 +02:00
vexpress-firmware vexpress-firmware: new package 2016-10-15 12:35:28 +02:00
xloader packages: refactor checks using BR_BUILDING 2015-04-26 21:43:25 +02:00
common.mk Fix build reproducibility in Make 3.82 2013-09-06 23:27:42 +02:00
Config.in arm-trusted-firmware: new package 2016-10-15 14:13:34 +02:00