From 1f91d6796676dc75188011f6ef4d09fc8dd81a29 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Thu, 18 Dec 2014 11:26:05 +1030 Subject: test/hello_world: Fix makefile rule 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 Signed-off-by: Stewart Smith --- test/hello_world/Makefile.check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') 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 -- cgit v1.1