diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-12-25 16:34:49 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2009-12-26 14:35:13 +0100 |
commit | 1c402fa0d9aeafe7aabc1f0386928287a09f34ec (patch) | |
tree | 96d4c10cf82997b3046d4642c4355722ed8ad57f /platforms/bootloader.in | |
parent | 401efde0d735c05af0a20731a38fe4eb697137de (diff) | |
download | ptxdist-1c402fa0d9aeafe7aabc1f0386928287a09f34ec.tar.gz ptxdist-1c402fa0d9aeafe7aabc1f0386928287a09f34ec.tar.xz |
[bootloader] better "special" compiler handling for bootloader
This patch makes the special compiler handling for bootloaders more
generic. To understand what it does, we look at the current status:
There is the config symbol "COMPILER_PREFIX_UBOOT", if its value
differs from the generic "COMPILER_PREFIX"'s value a special compiler
for u-boot is requested.
Currently only u-boot-v2 uses this feature. So if "U_BOOT_V2" is
active we look if ".utoolchain/$(PTXCONF_COMPILER_PREFIX_UBOOT)gcc"
can be found. If not we ask the user to create the link.
The reader might notice that all other configuration links are named
"selected_*" and that this feature is only limited to u-boot-v2.
To make this more generic, this patch first renames "COMPILER_PREFIX_UBOOT"
into "COMPILER_PREFIX_BOOTLOADER", then a new symbol "BOOTLOADER" is
introduced. All bootloaders that support the new sheme should select
"BOOTLOADER". Now a selected "BOOTLOADER" activates the check for the
special toolchain. The link is renamed to
"selected_toolchain_bootloader" to fit the current scheme.
The bootloaders can use the variable "BOOTLOADER_CROSS_COMPILE" which
can be directly passed to kbuild's CROSS_COMPILE.
A migration handler ist added, so the required symbol conversion is done
automatically by "ptxdist migrate".
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'platforms/bootloader.in')
-rw-r--r-- | platforms/bootloader.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platforms/bootloader.in b/platforms/bootloader.in new file mode 100644 index 000000000..83084f94a --- /dev/null +++ b/platforms/bootloader.in @@ -0,0 +1,4 @@ +## SECTION=bootloader + +config BOOTLOADER + tristate |