Scripts for libpayload
authorPaul Kocialkowski <contact@paulk.fr>
Tue, 4 Aug 2015 13:16:32 +0000 (15:16 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Tue, 4 Aug 2015 13:16:32 +0000 (15:16 +0200)
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
libpayload/libpayload-build.sh [new file with mode: 0755]
libpayload/libpayload-clean.sh [new file with mode: 0755]
libpayload/libpayload-config.sh [new file with mode: 0755]
libpayload/libpayload-image.sh [new file with mode: 0755]
libpayload/libpayload.sh [new file with mode: 0755]

diff --git a/libpayload/libpayload-build.sh b/libpayload/libpayload-build.sh
new file mode 100755 (executable)
index 0000000..fd738b5
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+./libpayload-clean.sh
+./libpayload-config.sh
+./libpayload-image.sh
diff --git a/libpayload/libpayload-clean.sh b/libpayload/libpayload-clean.sh
new file mode 100755 (executable)
index 0000000..2864e09
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+. ./libpayload.sh
+
+rm -rf $DST
+rm -rf $INSTALL
+
+mkdir $DST
+mkdir $INSTALL
diff --git a/libpayload/libpayload-config.sh b/libpayload/libpayload-config.sh
new file mode 100755 (executable)
index 0000000..4868f30
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. ./libpayload.sh
+
+make -C $SRC obj=$DST DOTCONFIG="$DST/.config" KBUILD_DEFCONFIG=$CONFIG defconfig
diff --git a/libpayload/libpayload-image.sh b/libpayload/libpayload-image.sh
new file mode 100755 (executable)
index 0000000..626a0ee
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. ./libpayload.sh
+
+make -C $SRC obj=$DST DOTCONFIG="$DST/.config" -j$PARALLEL
+make -C $SRC obj=$DST DOTCONFIG="$DST/.config" DESTDIR=$INSTALL install
diff --git a/libpayload/libpayload.sh b/libpayload/libpayload.sh
new file mode 100755 (executable)
index 0000000..1b48aa3
--- /dev/null
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+PARALLEL=9
+SRC="$( pwd )/libpayload"
+DST="$( pwd )/libpayload-out"
+INSTALL="$( pwd )/libpayload-install"
+CONFIG=