From 0f7779da580b5ace7a61b7e887cb8f986904a483 Mon Sep 17 00:00:00 2001 From: BeresfordHare Date: Thu, 7 Aug 2014 14:42:28 +1200 Subject: [PATCH] Added comments --- src/4_build_busybox.sh | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/4_build_busybox.sh b/src/4_build_busybox.sh index 277d733ad..55cff6571 100644 --- a/src/4_build_busybox.sh +++ b/src/4_build_busybox.sh @@ -1,11 +1,25 @@ -#/bin/sh +#!/bin/sh cd work/busybox -cd $(ls -d *) -make clean -make defconfig -sed -i "s/.*CONFIG_STATIC.*/CONFIG_STATIC=y/" .config -make busybox -make install -cd ../../.. +# Change to the first directory ls finds, e.g/ busybox-1.22.1 +cd $(ls -d *) + +# Clean's the source? +make clean + +# Create a default configuration file +make defconfig + +# Change the configuration, so that busybox is statically compiled +# You could do this manually with 'make menuconfig' +sed -i "s/.*CONFIG_STATIC.*/CONFIG_STATIC=y/" .config + +# Compile busybox +make busybox + +# Create the symlinks for busybox +# It uses the file busybox.links for this +make install + +cd ../../..