From ca861b5118a1e6b09a594cd5ec9c589ff1954e39 Mon Sep 17 00:00:00 2001 From: onefang Date: Mon, 16 Mar 2020 15:03:37 +1000 Subject: Fix up boxes build system. --- src/BuildIt.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 src/BuildIt.sh (limited to 'src/BuildIt.sh') diff --git a/src/BuildIt.sh b/src/BuildIt.sh new file mode 100755 index 0000000..d199e95 --- /dev/null +++ b/src/BuildIt.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +# Poor mans git sub modules / subtrees, coz otherwise it gets complex. +if [ ! -d git-sub-modules/toybox ]; then + pushd git-sub-modules + git clone https://github.com/landley/toybox.git + popd +else + pushd git-sub-modules/toybox + git pull + popd +fi + +pushd git-sub-modules/toybox +#git stash save +#git pull +#git stash pop +popd + +mkdir -p build +rm -fr build/toybox +cp -r git-sub-modules/toybox build/ +ln -fs ../../../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