From 31c3c8dcb5ea281201b9c01140bceeadc80f7686 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 20 Aug 2021 20:57:59 +0300 Subject: New build system --- arch/riscv/conf/init-link.S | 14 ++++++++++++++ arch/riscv/conf/kernel-link.S | 14 ++++++++++++++ arch/riscv/conf/kernel.its | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 arch/riscv/conf/init-link.S create mode 100644 arch/riscv/conf/kernel-link.S create mode 100644 arch/riscv/conf/kernel.its (limited to 'arch/riscv/conf') diff --git a/arch/riscv/conf/init-link.S b/arch/riscv/conf/init-link.S new file mode 100644 index 0000000..db18822 --- /dev/null +++ b/arch/riscv/conf/init-link.S @@ -0,0 +1,14 @@ +#include +#include + +OUTPUT_ARCH(riscv) +ENTRY(_start) + +SECTIONS { + . = ABSOLUTE(PM_KERN); + .text ALIGN(4K) : AT(0) { + *(.init.start) + *(.text); + . = ALIGN(4K); + } +} diff --git a/arch/riscv/conf/kernel-link.S b/arch/riscv/conf/kernel-link.S new file mode 100644 index 0000000..873c7de --- /dev/null +++ b/arch/riscv/conf/kernel-link.S @@ -0,0 +1,14 @@ +#include +#include + +OUTPUT_ARCH(riscv) +ENTRY(main) + +SECTIONS { + . = ABSOLUTE(VM_KERN); + .text ALIGN(4K) : AT(0) { + *(.text.start); + *(.text); + . = ALIGN(4K); + } +} diff --git a/arch/riscv/conf/kernel.its b/arch/riscv/conf/kernel.its new file mode 100644 index 0000000..f984d40 --- /dev/null +++ b/arch/riscv/conf/kernel.its @@ -0,0 +1,34 @@ +/dts-v1/; + +/ { + description = "FUCK"; +#address-cells = <1>; + + images { + kernel { + description = "My default kenel"; + data = /incbin/("kernel.bin"); + type = "kernel"; + arch = "riscv"; + os = "apos"; + compression = "none"; + load = <0x83800000>; + entry = <0x83800000>; + hash-1 { + algo = "md5"; + }; + }; + + }; + + configurations { + default = "config"; + + config { + description = "Default configuration"; + kernel = "kernel"; + }; + + + }; +}; -- cgit v1.3