diff options
author | Joel Stanley <joel@jms.id.au> | 2018-05-08 19:53:00 +0930 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-05-09 10:17:42 -0500 |
commit | a565a2837a60c5546e55999e32a88f844f46e860 (patch) | |
tree | b36ab5eadd690ef786cd77f0d05918ffad5cdd42 /test/hello_world/hello_kernel | |
parent | ef280be1657a32f9e0b69a216d64a2e0954a19a8 (diff) | |
download | talos-skiboot-a565a2837a60c5546e55999e32a88f844f46e860.tar.gz talos-skiboot-a565a2837a60c5546e55999e32a88f844f46e860.zip |
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/hello_world/hello_kernel')
-rw-r--r-- | test/hello_world/hello_kernel/hello_kernel.ld | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/test/hello_world/hello_kernel/hello_kernel.ld b/test/hello_world/hello_kernel/hello_kernel.ld deleted file mode 100644 index d9bbc928..00000000 --- a/test/hello_world/hello_kernel/hello_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 = . ; - } -} |