aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2014-12-18 11:26:05 +1030
committerStewart Smith <stewart@linux.vnet.ibm.com>2014-12-18 18:07:19 +1100
commit1f91d6796676dc75188011f6ef4d09fc8dd81a29 (patch)
treec59190ba7123cbf8d09d30b76b0eea38adaafeb2 /test
parent9b8614d3b5a3d6bd2b4ea4d53f4864485770db89 (diff)
downloadskiboot-1f91d6796676dc75188011f6ef4d09fc8dd81a29.zip
skiboot-1f91d6796676dc75188011f6ef4d09fc8dd81a29.tar.gz
skiboot-1f91d6796676dc75188011f6ef4d09fc8dd81a29.tar.bz2
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 <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'test')
-rw-r--r--test/hello_world/Makefile.check2
1 files changed, 1 insertions, 1 deletions
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