public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.9-rc1-bk16] ppc32: Use $(addprefix ...) on arch/ppc/boot/lib/
@ 2004-09-09 15:30 Tom Rini
  2004-09-09 16:37 ` Sam Ravnborg
  0 siblings, 1 reply; 5+ messages in thread
From: Tom Rini @ 2004-09-09 15:30 UTC (permalink / raw)
  To: Linus Torvalds, Kernel Mailing List

The following makes arch/ppc/boot/lib/Makefile use $(addprefix ...) to
get lib/zlib_inflate/ source code.  Previously we were manually setting
the dependancy and invoking cc_o_c.  Worse, we were invoking the cmd
version, not the rule version and thus when MODVERSIONS=y, we wouldn't
do the .tmp_foo.o -> foo.o rename, and thus the compile would break.
Using $(addprefix ...) gets us using the standard rules again (and is
shorter to boot).

Signed-off-by: Tom Rini <trini@kernel.crashing.org>

--- 1.7/arch/ppc/boot/lib/Makefile	2004-09-07 23:33:06 -07:00
+++ edited/arch/ppc/boot/lib/Makefile	2004-09-09 08:26:23 -07:00
@@ -4,18 +4,8 @@
 
 CFLAGS_kbd.o	+= -Idrivers/char
 
-$(obj)/infblock.o: lib/zlib_inflate/infblock.c
-	$(call cmd,cc_o_c)
-$(obj)/infcodes.o: lib/zlib_inflate/infcodes.c
-	$(call cmd,cc_o_c)
-$(obj)/inffast.o: lib/zlib_inflate/inffast.c
-	$(call cmd,cc_o_c)
-$(obj)/inflate.o: lib/zlib_inflate/inflate.c
-	$(call cmd,cc_o_c)
-$(obj)/inftrees.o: lib/zlib_inflate/inftrees.c
-	$(call cmd,cc_o_c)
-$(obj)/infutil.o: lib/zlib_inflate/infutil.c
-	$(call cmd,cc_o_c)
+INFLATE		= $(addprefix ../../../../lib/zlib_inflate/, infblock.o	\
+			infcodes.o inffast.o inflate.o inftrees.o infutil.o)
 
-lib-y := infblock.o infcodes.o inffast.o inflate.o inftrees.o infutil.o div64.o
+lib-y := $(INFLATE) div64.o
 lib-$(CONFIG_VGA_CONSOLE) += vreset.o kbd.o

-- 
Tom Rini
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-09-11 18:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-09 15:30 [PATCH 2.6.9-rc1-bk16] ppc32: Use $(addprefix ...) on arch/ppc/boot/lib/ Tom Rini
2004-09-09 16:37 ` Sam Ravnborg
2004-09-09 17:06   ` Tom Rini
2004-09-11 16:29   ` Tom Rini
2004-09-11 18:25     ` Sam Ravnborg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox