From 204a0ea6a57d82e485ea4fbad50d51892d0246fa Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 16 Mar 2020 14:45:30 +1000 Subject: Add a build script. --- BuildIt.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 BuildIt.sh (limited to 'BuildIt.sh') diff --git a/BuildIt.sh b/BuildIt.sh new file mode 100755 index 0000000..fdcb747 --- /dev/null +++ b/BuildIt.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Poor mans git sub modules / subtrees, coz otherwise it gets complex. +if [ ! -d src/git-sub-modules/toybox ]; then + pushd src/git-sub-modules + git clone https://github.com/landley/toybox.git + popd +else + pushd src/git-sub-modules/toybox + git pull + popd +fi + +pushd src/git-sub-modules/toybox +#git stash save +#git pull +#git stash pop +popd + +mkdir -p build +rm -fr build/toybox +cp -r src/git-sub-modules/toybox build/ +ln -fs ../../../src/boxes build/toybox/toys/boxes +ln -fs ../toys/boxes/handlekeys.c build/toybox/lib +ln -fs ../toys/boxes/handlekeys.h build/toybox/lib + +pushd build/toybox >/dev/null +make clean +#make defconfig +##make menuconfig +make allnoconfig KCONFIG_ALLCONFIG=../../miniconfig || exit 1 +make || exit 1 +popd >/dev/null -- cgit v1.1