]> err.no Git - linux-2.6/commitdiff
[POWERPC] iSeries: stop dt_mod.o being rebuilt unnecessarily
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 30 Nov 2006 05:53:11 +0000 (16:53 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:42:01 +0000 (20:42 +1100)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/Makefile

index dee4eb4d8bec05082e30510f813c956e1d6ff9a3..13ac3015d91c95be313e33f344bbc0ac8d4b2a7d 100644 (file)
@@ -1,5 +1,7 @@
 EXTRA_CFLAGS   += -mno-minimal-toc
 
+extra-y += dt.o
+
 obj-y += hvlog.o hvlpconfig.o lpardata.o setup.o dt_mod.o mf.o lpevents.o \
        hvcall.o proc.o htab.o iommu.o misc.o irq.o
 obj-$(CONFIG_PCI) += pci.o vpdinfo.o
@@ -7,5 +9,9 @@ obj-$(CONFIG_SMP) += smp.o
 obj-$(CONFIG_VIOPATH) += viopath.o
 obj-$(CONFIG_MODULES) += ksyms.o
 
+quiet_cmd_dt_strings = DT_STR  $@
+      cmd_dt_strings = $(OBJCOPY) --rename-section .rodata.str1.8=.dt_strings \
+                               $< $@
+
 $(obj)/dt_mod.o:       $(obj)/dt.o
-       @$(OBJCOPY) --rename-section .rodata.str1.8=.dt_strings $(obj)/dt.o $(obj)/dt_mod.o
+       $(call if_changed,dt_strings)