diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-11-21 21:14:35 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-11-29 21:42:34 +1100 |
commit | f0f7fe1ac35330f077357c787ec5bd8958bf300d (patch) | |
tree | 8b4212d94f2270747327af7a82d9f666bfcb5ee9 /arch/powerpc/boot | |
parent | 42d0c932b05b06f04ac66439b4b14be5a83db114 (diff) | |
download | linux-f0f7fe1ac35330f077357c787ec5bd8958bf300d.tar.gz linux-f0f7fe1ac35330f077357c787ec5bd8958bf300d.tar.bz2 linux-f0f7fe1ac35330f077357c787ec5bd8958bf300d.zip |
powerpc/boot: Fix rebuild when changing kernel endian
Now that we don't set ARCH incorrectly when calling the boot Makefile,
we can use the generic cpp_lds_S rule for converting our zImage.lds.S
into zImage.lds.
The main advantage of using the generic rule is that it correctly uses
if_changed, which means we correctly regenerate the linker script when
switching endian. Fixing that means we are finally able to build one
endian and then rebuild the other endian without requiring to clean
between builds.
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/boot')
-rw-r--r-- | arch/powerpc/boot/Makefile | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile index 7f3faa6255a8..1d41d5a9d05e 100644 --- a/arch/powerpc/boot/Makefile +++ b/arch/powerpc/boot/Makefile @@ -171,10 +171,6 @@ $(addprefix $(obj)/,$(libfdt) $(libfdtheader)): $(obj)/%: $(srctree)/scripts/dtc $(obj)/empty.c: $(Q)touch $@ -$(obj)/zImage.lds: $(obj)/%: $(srctree)/$(src)/%.S - $(CROSS32CC) $(cpp_flags) -E -Wp,-MD,$(depfile) -P -Upowerpc \ - -D__ASSEMBLY__ -DLINKER_SCRIPT -o $@ $< - $(obj)/zImage.coff.lds $(obj)/zImage.ps3.lds : $(obj)/%: $(srctree)/$(src)/%.S $(Q)cp $< $@ |