aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv/conf
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-08-20 20:57:59 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2021-08-20 21:04:24 +0300
commit31c3c8dcb5ea281201b9c01140bceeadc80f7686 (patch)
tree5424805f919938e58e0a2c88c0e3d8f583fbcfd7 /arch/riscv/conf
parent1175179058fa809c57d724cd2043c67edc511695 (diff)
downloadkmi-31c3c8dcb5ea281201b9c01140bceeadc80f7686.tar.gz
kmi-31c3c8dcb5ea281201b9c01140bceeadc80f7686.zip
New build system
Diffstat (limited to 'arch/riscv/conf')
-rw-r--r--arch/riscv/conf/init-link.S14
-rw-r--r--arch/riscv/conf/kernel-link.S14
-rw-r--r--arch/riscv/conf/kernel.its34
3 files changed, 62 insertions, 0 deletions
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 <apos/link.lds.h>
+#include <vmap.h>
+
+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 <apos/link.lds.h>
+#include <vmap.h>
+
+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";
+ };
+
+
+ };
+};