aboutsummaryrefslogtreecommitdiff
path: root/test/hello_world/Makefile.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/hello_world/Makefile.check')
-rw-r--r--test/hello_world/Makefile.check6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/hello_world/Makefile.check b/test/hello_world/Makefile.check
index 6e94da7..a2a430c 100644
--- a/test/hello_world/Makefile.check
+++ b/test/hello_world/Makefile.check
@@ -2,14 +2,16 @@ HELLO_WORLD_TEST := test/hello_world/hello_kernel/hello_kernel
check: $(HELLO_WORLD_TEST:%=%-check)
-$(HELLO_WORLD_TEST:%=%-check) : %-check: %
+$(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 -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
+-include $(wildcard test/hello_world/hello_kernel/*.d)
+
test/hello_world/hello_kernel/hello_kernel: test/hello_world/hello_kernel/hello_kernel.o
$(call Q,LD, $(CC) $(hello_kernel_LDFLAGS) -o $@ $^ , $@)