cros-ec update and various improvements
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 23 Jul 2016 19:40:41 +0000 (21:40 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Sat, 23 Jul 2016 19:40:41 +0000 (21:40 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
coreboot/coreboot-image.sh
cros-ec/cros-ec-build.sh [new file with mode: 0755]
cros-ec/cros-ec-clean.sh [moved from ec/ec-clean.sh with 70% similarity]
cros-ec/cros-ec-image.sh [new file with mode: 0755]
cros-ec/cros-ec.sh [new file with mode: 0755]
depthcharge/depthcharge-config.sh
depthcharge/depthcharge-image.sh
depthcharge/depthcharge.sh
ec/ec-build.sh [deleted file]
ec/ec-image.sh [deleted file]
ec/ec.sh [deleted file]

index 28a27a8..537ae9c 100755 (executable)
@@ -2,4 +2,4 @@
 
 . ./coreboot.sh
 
-make -C $SRC obj=$DST DOTCONFIG="$DST/.config" VB_SOURCE="$( pwd )/vboot" -j$PARALLEL
+make -C $SRC obj=$DST DOTCONFIG="$DST/.config" VB_SOURCE="$( pwd )/vboot" CHROMEEC_SOURCE="$( pwd )/cros-ec" -j$PARALLEL
diff --git a/cros-ec/cros-ec-build.sh b/cros-ec/cros-ec-build.sh
new file mode 100755 (executable)
index 0000000..cf7f00b
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+./cros-ec-clean.sh
+./cros-ec-image.sh
similarity index 70%
rename from ec/ec-clean.sh
rename to cros-ec/cros-ec-clean.sh
index 7395e19..b1dfe7f 100755 (executable)
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-. ./ec.sh
+. ./cros-ec.sh
 
 rm -rf $DST
 mkdir $DST
diff --git a/cros-ec/cros-ec-image.sh b/cros-ec/cros-ec-image.sh
new file mode 100755 (executable)
index 0000000..31d4092
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. ./cros-ec.sh
+
+make -C $SRC out=$DST CROSS_COMPILE=$CROSS_COMPILE BOARD=$BOARD HOST_CROSS_COMPILE= -j$PARALLEL rw
diff --git a/cros-ec/cros-ec.sh b/cros-ec/cros-ec.sh
new file mode 100755 (executable)
index 0000000..255b2f4
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+CROSS_COMPILE="$( pwd )/coreboot/util/crossgcc/xgcc/bin/arm-eabi-"
+SRC="$( pwd )/cros-ec"
+DST="$( pwd )/cros-ec-out"
+BOARD=
index 587bb9d..b391018 100755 (executable)
@@ -2,4 +2,4 @@
 
 . ./depthcharge.sh
 
-make -C $SRC obj=$DST DOTCONFIG="$DST/.config" BOARD=$CONFIG defconfig
+make -C $SRC obj=$DST DOTCONFIG="$DST/.config" BOARD=$BOARD defconfig
index 159a1f2..5216fa0 100755 (executable)
@@ -2,4 +2,4 @@
 
 . ./depthcharge.sh
 
-make -C $SRC obj=$DST DOTCONFIG="$DST/.config" BOARD=$CONFIG LIBPAYLOAD_DIR="$( pwd )/libpayload-install/libpayload" VB_SOURCE="$( pwd )/vboot" -j$PARALLEL depthcharge_unified
+make -C $SRC obj=$DST DOTCONFIG="$DST/.config" BOARD=$BOARD LIBPAYLOAD_DIR="$( pwd )/libpayload-install/libpayload" VB_SOURCE="$( pwd )/vboot" -j$PARALLEL depthcharge_unified
index 55b5c69..d0bce83 100755 (executable)
@@ -3,4 +3,4 @@
 PARALLEL=9
 SRC="$( pwd )/depthcharge"
 DST="$( pwd )/depthcharge-out"
-CONFIG=
+BOARD=
diff --git a/ec/ec-build.sh b/ec/ec-build.sh
deleted file mode 100755 (executable)
index f8a06a3..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/sh
-
-./ec-clean.sh
-./ec-image.sh
diff --git a/ec/ec-image.sh b/ec/ec-image.sh
deleted file mode 100755 (executable)
index 64a88f6..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/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
deleted file mode 100755 (executable)
index 9dfdb97..0000000
--- a/ec/ec.sh
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-
-CROSS_COMPILE="$( pwd )/coreboot/util/crossgcc/xgcc/bin/armv7-a-eabi-"
-SRC="$( pwd )/ec"
-DST="$( pwd )/ec-out"
-CONFIG=