From: Mike Lowis Date: Mon, 25 Jan 2016 22:41:51 +0000 (+0000) Subject: get rid of /usr and install kernel and gnu make to /src X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=ad3ae983cef31846910ce15031c7eb2cab92d192;p=proto%2Faardvark-linux.git get rid of /usr and install kernel and gnu make to /src --- diff --git a/build.sh b/build.sh index 6c3e8f2..9bada24 100755 --- a/build.sh +++ b/build.sh @@ -10,9 +10,6 @@ set -e # Load the config settings . ./config.sh -# Make sure CFLAGS isnt set -unset CFLAGS - ############################################################################### # Helper Functions ############################################################################### @@ -84,21 +81,31 @@ if [ ! -f mksh ]; then chmod +x Build.sh ./Build.sh fi -mkdir -p "$AL_ROOT/etc/" "$AL_ROOT/usr/share/doc/mksh/examples" +mkdir -p "$AL_ROOT/etc/" "$AL_ROOT/share/doc/mksh/examples" cp -f mksh "$AL_ROOT/bin/" chmod 555 "$AL_ROOT/bin/mksh" -cp -f dot.mkshrc "$AL_ROOT/usr/share/doc/mksh/examples" +cp -f dot.mkshrc "$AL_ROOT/share/doc/mksh/examples" ln -svf mksh "$AL_ROOT/bin/sh" cd $AL -# Install kernel -fetch linux-4.4.tar.xz https://cdn.kernel.org/pub/linux/kernel/v4.x/ "$AL_SOURCES/linux" -cd "$AL_SOURCES/linux" -if [ ! -f "$AL_ROOT/vmlinux" ]; then - make mrproper - cp "$AL/kernel-config" .config - make -j8 - cp "$AL_SOURCES/linux/vmlinux" "$AL_ROOT/vmlinux" -fi -cd "$AL" +# Install make +fetch make-4.1.tar.gz http://ftp.gnu.org/gnu/make/ "$AL_ROOT/src/make" +#cd "$AL_SOURCES/make" +#if [ ! -f "$AL_ROOT/bin/make" ]; then +# ./configure \ +# --prefix="$AL_TOOLS/" \ +# --without-guile \ +# --without-dmalloc \ +# --disable-nls \ +# --disable-rpath \ +# --disable-largefile \ +# --disable-job-server \ +# --disable-load +# make -j8 +# make install +#fi +#cd "$AL" + +# Install kernel sources +fetch linux-4.4.tar.xz https://cdn.kernel.org/pub/linux/kernel/v4.x/ "$AL_ROOT/src/linux"