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 /scripts/migrate | |
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 'scripts/migrate')
-rwxr-xr-x | scripts/migrate/migrate_platform | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/migrate/migrate_platform b/scripts/migrate/migrate_platform new file mode 100755 index 000000000..ab1e2389d --- /dev/null +++ b/scripts/migrate/migrate_platform @@ -0,0 +1,9 @@ +#!/bin/sed -f + +# +# from : ptxdist-1.99.20 +# to : ptxdist-1.99.21 +# symbol : PTXCONF_COMPILER_PREFIX_UBOOT -> PTXCONF_COMPILER_PREFIX_BOOTLOADER +# reason : more generic special compiler handling +# +s/^\(\(# \)\?PTXCONF\)_COMPILER_PREFIX_UBOOT\(.*$\)/\1_COMPILER_PREFIX_BOOTLOADER\3/ |