Browse Source

Mimic json structure for aarch64 and riscv
mv /$ARCH/klib.json -> 9/$ARCH
cp /$ARCH/cflags.json -> 9/$ARCH

Signed-off-by: Graham MacDonald <grahamamacdonald@gmail.com>

Graham MacDonald 9 months ago
parent
commit
a4c7ad1aa7
4 changed files with 44 additions and 3 deletions
  1. 17 0
      sys/src/9/aarch64/cflags.json
  2. 4 3
      aarch64/klib.json
  3. 23 0
      sys/src/9/riscv/cflags.json
  4. 0 0
      sys/src/9/riscv/klib.json

+ 17 - 0
sys/src/9/aarch64/cflags.json

@@ -0,0 +1,17 @@
+[
+	{
+		"Name": "buildflags",
+		"Cflags": [
+			"-ffreestanding",
+			"-fno-builtin",
+			"-fno-omit-frame-pointer",
+			"-g",
+			"-gdwarf-2",
+			"-ggdb",
+			"-O0",
+			"-static",
+			"-Wall",
+			"-Werror"
+		]
+	}
+]

+ 4 - 3
aarch64/klib.json

@@ -1,5 +1,6 @@
-{
-	"KernelLibs": {
+[
+	{
+		"Name": "KernelLibs",
 		"Cflags": [
 			"-O0",
 			"-ffreestanding",
@@ -18,4 +19,4 @@
 			"rm -f -f *.o *.tag.*"
 		]
 	}
-}
+]

+ 23 - 0
sys/src/9/riscv/cflags.json

@@ -0,0 +1,23 @@
+[
+	{
+		"Name": "buildflags",
+		"Cflags": [
+			"-mcmodel=medany",
+			"-ffreestanding",
+			"-fno-builtin",
+			"-fno-omit-frame-pointer",
+			"-g",
+			"-gdwarf-2",
+			"-ggdb",
+			"-O0",
+			"-static",
+			"-Wall",
+			"-Werror"
+		],
+		"Oflags": [
+			"-T",
+			"/$ARCH/prog.ld",
+			"--no-relax"
+		]
+	}
+]

riscv/klib.json → sys/src/9/riscv/klib.json