aboutsummaryrefslogtreecommitdiff
path: root/test/sreset_world/sreset_kernel
diff options
context:
space:
mode:
authorJoel Stanley <joel@jms.id.au>2018-05-08 19:53:00 +0930
committerStewart Smith <stewart@linux.ibm.com>2018-05-09 10:17:42 -0500
commita565a2837a60c5546e55999e32a88f844f46e860 (patch)
treeb36ab5eadd690ef786cd77f0d05918ffad5cdd42 /test/sreset_world/sreset_kernel
parentef280be1657a32f9e0b69a216d64a2e0954a19a8 (diff)
downloadskiboot-a565a2837a60c5546e55999e32a88f844f46e860.zip
skiboot-a565a2837a60c5546e55999e32a88f844f46e860.tar.gz
skiboot-a565a2837a60c5546e55999e32a88f844f46e860.tar.bz2
test: Simplify build process for hello and sreset tests
Link with ld instead of gcc so we can build with clang as cc. Remove the linker script and unnecessary flags. The application links just fine without them. Add cflags required by clang in order to build for the correct target. Remove the dependency file generation. The assembly files don't include any headers, so they weren't doing anything. Simplify clean rule, as the $(RM) alias does -f for us, and we no longer have .d files. Build tested on ppc64le and amd64. Booted in Qemu on both using: qemu-system-ppc64 -M powernv -nodefaults -nographic -serial stdio \ -kernel test/hello_world/hello_kernel/hello_kernel Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'test/sreset_world/sreset_kernel')
-rw-r--r--test/sreset_world/sreset_kernel/sreset_kernel.ld29
1 files changed, 0 insertions, 29 deletions
diff --git a/test/sreset_world/sreset_kernel/sreset_kernel.ld b/test/sreset_world/sreset_kernel/sreset_kernel.ld
deleted file mode 100644
index d9bbc92..0000000
--- a/test/sreset_world/sreset_kernel/sreset_kernel.ld
+++ /dev/null
@@ -1,29 +0,0 @@
-ENTRY(_start)
-SECTIONS
-{
- .text :
- {
- _start = .;
- *(.text)
- }
-
- . = ALIGN(4096);
- .data :
- {
- *(.rodata*)
- *(.data*)
- *(.sdata*)
- *(.got2)
- }
-
- . = ALIGN(4096);
- .bss :
- {
- _edata = .;
- __bss_start = .;
- *(.sbss)
- *(.bss)
- *(COMMON)
- _end = . ;
- }
-}