diff mbox

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

Message ID 1418864165-32419-2-git-send-email-joel@jms.id.au
State Accepted
Headers show

Commit Message

Joel Stanley Dec. 18, 2014, 12:56 a.m. UTC
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@jms.id.au>
---
 test/hello_world/Makefile.check | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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