Scripts for ec
authorPaul Kocialkowski <contact@paulk.fr>
Sun, 11 Oct 2015 18:25:27 +0000 (20:25 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Sun, 11 Oct 2015 18:25:27 +0000 (20:25 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
ec/ec-build.sh [new file with mode: 0755]
ec/ec-clean.sh [new file with mode: 0755]
ec/ec-image.sh [new file with mode: 0755]
ec/ec.sh [new file with mode: 0755]

diff --git a/ec/ec-build.sh b/ec/ec-build.sh
new file mode 100755 (executable)
index 0000000..f8a06a3
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+./ec-clean.sh
+./ec-image.sh
diff --git a/ec/ec-clean.sh b/ec/ec-clean.sh
new file mode 100755 (executable)
index 0000000..7395e19
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. ./ec.sh
+
+rm -rf $DST
+mkdir $DST
diff --git a/ec/ec-image.sh b/ec/ec-image.sh
new file mode 100755 (executable)
index 0000000..64a88f6
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. ./ec.sh
+
+make -C $SRC out=$DST CROSS_COMPILE=$CROSS_COMPILE BOARD=$CONFIG -j$PARALLEL
diff --git a/ec/ec.sh b/ec/ec.sh
new file mode 100755 (executable)
index 0000000..9dfdb97
--- /dev/null
+++ b/ec/ec.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+CROSS_COMPILE="$( pwd )/coreboot/util/crossgcc/xgcc/bin/armv7-a-eabi-"
+SRC="$( pwd )/ec"
+DST="$( pwd )/ec-out"
+CONFIG=