Scripts for coreboot
authorPaul Kocialkowski <contact@paulk.fr>
Mon, 3 Aug 2015 14:01:26 +0000 (16:01 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Mon, 3 Aug 2015 14:01:26 +0000 (16:01 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
coreboot/coreboot-build.sh [new file with mode: 0755]
coreboot/coreboot-clean.sh [new file with mode: 0755]
coreboot/coreboot-config.sh [new file with mode: 0755]
coreboot/coreboot-image.sh [new file with mode: 0755]
coreboot/coreboot-install.sh [new file with mode: 0755]
coreboot/coreboot.sh [new file with mode: 0755]

diff --git a/coreboot/coreboot-build.sh b/coreboot/coreboot-build.sh
new file mode 100755 (executable)
index 0000000..89d9cd3
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+./coreboot-clean.sh
+./coreboot-config.sh
+./coreboot-image.sh
diff --git a/coreboot/coreboot-clean.sh b/coreboot/coreboot-clean.sh
new file mode 100755 (executable)
index 0000000..0baacad
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. ./coreboot.sh
+
+rm -rf $DST
+mkdir $DST
diff --git a/coreboot/coreboot-config.sh b/coreboot/coreboot-config.sh
new file mode 100755 (executable)
index 0000000..a5e8acc
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. ./coreboot.sh
+
+make -C $SRC obj=$DST DOTCONFIG="$DST/.config" menuconfig
diff --git a/coreboot/coreboot-image.sh b/coreboot/coreboot-image.sh
new file mode 100755 (executable)
index 0000000..26dabcd
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. ./coreboot.sh
+
+make -C $SRC obj=$DST DOTCONFIG="$DST/.config" -j$PARALLEL
diff --git a/coreboot/coreboot-install.sh b/coreboot/coreboot-install.sh
new file mode 100755 (executable)
index 0000000..a860dc8
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+sudo flashrom -p ft2232_spi:type=openmoko -w coreboot-out/coreboot.rom
diff --git a/coreboot/coreboot.sh b/coreboot/coreboot.sh
new file mode 100755 (executable)
index 0000000..ce28884
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+PARALLEL=9
+SRC="$( pwd )/coreboot"
+DST="$( pwd )/coreboot-out"