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 | |
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')
-rw-r--r-- | platforms/bootloader.in | 4 | ||||
-rw-r--r-- | platforms/toolchain.in | 6 |
2 files changed, 7 insertions, 3 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 diff --git a/platforms/toolchain.in b/platforms/toolchain.in index 4f5c9ed4d..097b5eb5f 100644 --- a/platforms/toolchain.in +++ b/platforms/toolchain.in @@ -59,13 +59,13 @@ config COMPILER_PREFIX_KERNEL name used to compile the kernel. If the prefix equals the normal compiler you can use "${PTXCONF_COMPILER_PREFIX}". -config COMPILER_PREFIX_UBOOT +config COMPILER_PREFIX_BOOTLOADER string - prompt "compiler prefix (u-boot)" + prompt "compiler prefix (bootloader)" default "${PTXCONF_COMPILER_PREFIX}" help This is the prefix used to create the correct cross compiler - name used to compile the u-boot. If the prefix equals + name used to compile the bootloader. If the prefix equals the normal compiler you can use "${PTXCONF_COMPILER_PREFIX}". endmenu |