Initial commit: Embedded Freedom scripts, with initial support for U-Boot and
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 18 Apr 2015 19:53:06 +0000 (21:53 +0200)
committerPaul Kocialkowski <contact@paulk.fr>
Sat, 18 Apr 2015 19:53:06 +0000 (21:53 +0200)
Linux.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
linux/linux-build.sh [new file with mode: 0755]
linux/linux-clean.sh [new file with mode: 0755]
linux/linux-config.sh [new file with mode: 0755]
linux/linux-image.sh [new file with mode: 0755]
linux/linux-modules.sh [new file with mode: 0755]
linux/linux.sh [new file with mode: 0755]
u-boot/u-boot-build.sh [new file with mode: 0755]
u-boot/u-boot-clean.sh [new file with mode: 0755]
u-boot/u-boot-config.sh [new file with mode: 0755]
u-boot/u-boot-image.sh [new file with mode: 0755]
u-boot/u-boot.sh [new file with mode: 0755]

diff --git a/linux/linux-build.sh b/linux/linux-build.sh
new file mode 100755 (executable)
index 0000000..08d96e0
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+./linux-clean.sh
+./linux-config.sh $1
+./linux-image.sh
+./linux-modules.sh
diff --git a/linux/linux-clean.sh b/linux/linux-clean.sh
new file mode 100755 (executable)
index 0000000..a0e28e9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+. ./linux.sh
+
+rm -rf $DST
+rm -rf $INSTALL_MOD_PATH
+
+mkdir $DST
+mkdir $INSTALL_MOD_PATH
diff --git a/linux/linux-config.sh b/linux/linux-config.sh
new file mode 100755 (executable)
index 0000000..c686a7e
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+. ./linux.sh
+
+make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE $CONFIG
+
+if [ "$1" = "menuconfig" ]
+then
+       make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE menuconfig
+fi
diff --git a/linux/linux-image.sh b/linux/linux-image.sh
new file mode 100755 (executable)
index 0000000..b53962f
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. ./linux.sh
+
+make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE LOADADDR=$LOADADDR -j$PARALLEL $TARGET $DTB
diff --git a/linux/linux-modules.sh b/linux/linux-modules.sh
new file mode 100755 (executable)
index 0000000..7154d48
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. ./linux.sh
+
+make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE -j$PARALLEL modules
+make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE INSTALL_MOD_PATH=$INSTALL_MOD_PATH modules_install
diff --git a/linux/linux.sh b/linux/linux.sh
new file mode 100755 (executable)
index 0000000..b684090
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+CROSS_COMPILE=arm-linux-gnueabihf-
+PARALLEL=9
+SRC="$( pwd )/linux"
+DST="$( pwd )/linux-out"
+INSTALL_MOD_PATH="$( pwd )/linux-modules"
+ARCH=arm
+CONFIG=multi_v7_defconfig
+TARGET=zImage
+DTB=dtbs
+LOADADDR=
diff --git a/u-boot/u-boot-build.sh b/u-boot/u-boot-build.sh
new file mode 100755 (executable)
index 0000000..7728fa2
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+./u-boot-clean.sh
+./u-boot-config.sh $1
+./u-boot-image.sh
diff --git a/u-boot/u-boot-clean.sh b/u-boot/u-boot-clean.sh
new file mode 100755 (executable)
index 0000000..47bcd89
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+. ./u-boot.sh
+
+rm -rf $DST
+mkdir $DST
diff --git a/u-boot/u-boot-config.sh b/u-boot/u-boot-config.sh
new file mode 100755 (executable)
index 0000000..0f148a1
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+. ./u-boot.sh
+
+make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE $CONFIG
+
+if [ "$1" = "menuconfig" ]
+then
+       make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE menuconfig
+fi
diff --git a/u-boot/u-boot-image.sh b/u-boot/u-boot-image.sh
new file mode 100755 (executable)
index 0000000..f372fd5
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+. ./u-boot.sh
+
+make -C $SRC O=$DST ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE -j$PARALLEL $TARGET
diff --git a/u-boot/u-boot.sh b/u-boot/u-boot.sh
new file mode 100755 (executable)
index 0000000..fd41c1b
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+CROSS_COMPILE=arm-linux-gnueabihf-
+PARALLEL=9
+SRC="$( pwd )/u-boot"
+DST="$( pwd )/u-boot-out"
+ARCH=arm
+CONFIG=
+TARGET=