On Tue, May 10, 2016 at 06:55:44PM +0200, Andrew Jones wrote: >This does the same cleanup as 'x86: Makefile refine'. .PRECIOUS >is used (as opposed to .SECONDARY), because .SECONDARY doesn't >accept target patterns. > >Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx> Reviewed-by: Wei Yang <richard.weiyang@xxxxxxxxx> Same as above. >--- > powerpc/Makefile.common | 13 ++++--------- > 1 file changed, 4 insertions(+), 9 deletions(-) > >diff --git a/powerpc/Makefile.common b/powerpc/Makefile.common >index 4449aec616853..4ff1dc8f48d32 100644 >--- a/powerpc/Makefile.common >+++ b/powerpc/Makefile.common >@@ -22,6 +22,9 @@ CFLAGS += -I lib -I lib/libfdt > CFLAGS += -Wa,-mregnames > CFLAGS += -fpie > >+# We want to keep intermediate files >+.PRECIOUS: %.o >+ > asm-offsets = lib/$(ARCH)/asm-offsets.h > include scripts/asm-offsets.mak > >@@ -37,7 +40,7 @@ cflatobjs += lib/powerpc/processor.o > FLATLIBS = $(libcflat) $(LIBFDT_archive) > %.elf: CFLAGS += $(arch_CFLAGS) > %.elf: LDFLAGS = $(arch_LDFLAGS) -nostdlib -pie >-%.elf: %.o $(FLATLIBS) powerpc/flat.lds >+%.elf: %.o $(FLATLIBS) powerpc/flat.lds $(cstart.o) $(reloc.o) > $(LD) $(LDFLAGS) -o $@ \ > -T powerpc/flat.lds --build-id=none \ > $(filter %.o, $^) $(FLATLIBS) >@@ -69,11 +72,3 @@ generated_files = $(asm-offsets) > test_cases: $(generated_files) $(tests-common) $(tests) > > $(cstart.o): $(asm-offsets) >- >-$(TEST_DIR)/selftest.elf: $(cstart.o) $(reloc.o) $(TEST_DIR)/selftest.o >- >-$(TEST_DIR)/spapr_hcall.elf: $(cstart.o) $(reloc.o) $(TEST_DIR)/spapr_hcall.o >- >-$(TEST_DIR)/rtas.elf: $(cstart.o) $(reloc.o) $(TEST_DIR)/rtas.o >- >-$(TEST_DIR)/emulator.elf: $(cstart.o) $(reloc.o) $(TEST_DIR)/emulator.o >-- >2.4.11 -- Wei Yang Help you, Help me -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html