summaryrefslogtreecommitdiffstats
path: root/rules/other
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2009-12-25 16:34:49 +0100
committerMarc Kleine-Budde <mkl@pengutronix.de>2009-12-26 14:35:13 +0100
commit1c402fa0d9aeafe7aabc1f0386928287a09f34ec (patch)
tree96d4c10cf82997b3046d4642c4355722ed8ad57f /rules/other
parent401efde0d735c05af0a20731a38fe4eb697137de (diff)
downloadptxdist-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 'rules/other')
-rw-r--r--rules/other/Namespace.make3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules/other/Namespace.make b/rules/other/Namespace.make
index ee49b09b7..381b3e346 100644
--- a/rules/other/Namespace.make
+++ b/rules/other/Namespace.make
@@ -14,7 +14,8 @@ PTXDIST_SYSROOT_TARGET := $(PTXCONF_SYSROOT_TARGET)
SYSROOT := $(PTXCONF_SYSROOT_TARGET)
PTXCONF_COMPILER_PREFIX_KERNEL := $(call remove_quotes, $(PTXCONF_COMPILER_PREFIX_KERNEL))
-PTXCONF_COMPILER_PREFIX_UBOOT := $(call remove_quotes, $(PTXCONF_COMPILER_PREFIX_UBOOT))
+PTXCONF_COMPILER_PREFIX_BOOTLOADER := \
+ $(call remove_quotes, $(PTXCONF_COMPILER_PREFIX_BOOTLOADER))
PTXCONF_COMPILER_PREFIX := $(call remove_quotes, $(PTXCONF_COMPILER_PREFIX))
COMPILER_PREFIX := $(PTXCONF_COMPILER_PREFIX)