1
0
mirror of https://github.com/rancher/os-kernel.git synced 2025-09-19 09:07:07 +00:00

rm busybox_install()

This commit is contained in:
Ivan Mikushin
2015-09-07 23:05:35 +05:00
parent 0b5fa19771
commit 9980dc00e1

View File

@@ -12,45 +12,6 @@ DOCKER_FILE=${CONFIG}/.dockerfile
mkdir -p ${BUILD} ${DIST}
busybox_install()
{
local conf=$1
local bbconf=$2
local target=$3
if [ "$#" = "2" ]; then
target=$2
bbconf=
fi
apt-get update
apt-get install -y build-essential wget libncurses5-dev unzip bc
cd ${BUILD}
local buildroot=$(ls -1 ${ARTIFACTS}/buildroot-*.tar.bz2)
if [ ! -e "${buildroot}" ]; then
echo "Failed to find busybox archive, found : ${buildroot}" 1>&2
return 1
else
buildroot=$(basename $buildroot)
fi
rm -rf ${buildroot/.tar.bz2//}
tar xvjf ${ARTIFACTS}/${buildroot}
cd ${buildroot/.tar.bz2//}
cp $conf .config
if [ -n "$bbconf" ]; then
cp $bbconf package/busybox/
fi
make oldconfig
make
cp output/images/rootfs.tar $target
}
write_base()
{
if [ "${BASE_WRITTEN}" = "true" ]; then