diff options
author | sascha <sascha@nomad.localdomain> | 2007-10-17 12:21:53 +0200 |
---|---|---|
committer | sascha <sascha@nomad.localdomain> | 2007-10-17 12:21:53 +0200 |
commit | d59ca7feb3220ae846a10b6f7da0712e2c1feae3 (patch) | |
tree | 5be088d4b9a0b5c8a2101faffc1ca17a668c63e5 /arch/arm/Makefile | |
parent | b36fca0cb81493c26825d4f1df1c61bebd5df942 (diff) | |
download | barebox-d59ca7feb3220ae846a10b6f7da0712e2c1feae3.tar.gz barebox-d59ca7feb3220ae846a10b6f7da0712e2c1feae3.tar.xz |
Linking: Remove linker scripts from (arm based-) boards and add
a generic linker script to arch/arm/lib/u-boot.lds.S.
If a board wants to overwrite a linker script it can do
so using CONFIG_BOARD_LINKER_SCRIPT.
There is no generic linker script for ppc and blackfin
yet, so still use the board specific one.
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r-- | arch/arm/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile index f838d3743d..fb81d237e5 100644 --- a/arch/arm/Makefile +++ b/arch/arm/Makefile @@ -77,4 +77,8 @@ endif common-y += $(BOARD) $(MACH) common-y += arch/arm/lib/ arch/arm/cpu/ +lds-$(CONFIG_GENERIC_LINKER_SCRIPT) := arch/arm/lib/u-boot.lds +lds-$(CONFIG_BOARD_LINKER_SCRIPT) := $(BOARD)/u-boot.lds + +CLEAN_FILES += arch/arm/lib/u-boot.lds MRPROPER_FILES += include/asm-arm/arch include/asm-arm/proc |