#!/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