[Skiboot] [PATCH 2/2] test/hello_world: Fix makefile rule

Joel Stanley joel at jms.id.au
Thu Dec 18 11:56:05 AEDT 2014


 powerpc-linux-gnu-gcc -m64 -c -MMD -Itest/hello_world/hello_kernel/ -o
   test/hello_world/hello_kernel/hello_kernel.o
   test/hello_world/hello_kernel/hello_kernel.S
   test/hello_world/hello_kernel/asm-utils.h
 powerpc-linux-gnu-gcc: fatal error: cannot specify -o with -c, -S or -E
   with multiple files

GCC barfed as we were passing the header and the c file while compiling
with -c. Fix the rule to just build source file.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 test/hello_world/Makefile.check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/hello_world/Makefile.check b/test/hello_world/Makefile.check
index a2a430c..cfb64d9 100644
--- a/test/hello_world/Makefile.check
+++ b/test/hello_world/Makefile.check
@@ -6,7 +6,7 @@ $(HELLO_WORLD_TEST:%=%-check) : %-check: % skiboot.lid
 	./test/hello_world/run_hello_world.sh
 
 test/hello_world/hello_kernel/hello_kernel.o: test/hello_world/hello_kernel/hello_kernel.S
-	$(call Q,CC, $(CC) -m64 -c -MMD -Itest/hello_world/hello_kernel/ -o $@ $^ ,$@)
+	$(call Q,CC, $(CC) -m64 -c -MMD -Itest/hello_world/hello_kernel/ -o $@ $< ,$@)
 
 hello_kernel_LDFLAGS=-m64 -Wl,--build-id=none -T test/hello_world/hello_kernel/hello_kernel.ld -ffreestanding -nostdlib -Ttext=0x0 -lgcc
 
-- 
2.1.3



More information about the Skiboot mailing list