This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/busybox/default.bash

41 lines
679 B
Bash
Raw Permalink Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2015-12-21 12:39:16 +00:00
'1.24.1'
2013-07-13 17:19:22 +01:00
)
url=\
(
"http://busybox.net/downloads/busybox-$version.tar.bz2"
)
md5=\
(
2015-12-21 12:39:16 +00:00
'be98a40cadf84ce2d6b05fa41a275c6a'
2013-07-13 17:19:22 +01:00
)
post_unpack()
{
patches=$(ls "$pkg_dir"/patches/*.patch)
2013-07-13 17:19:22 +01:00
if [ -n "$patches" ]; then
cat $patches | patch -p1
fi
}
configure()
{
cp "$pkg_dir"/config .config &&
2013-07-13 17:19:22 +01:00
yes '' | $cmd_make CROSS_COMPILE="$cfg_target_canonical"- oldconfig
}
build()
{
$cmd_make CROSS_COMPILE="$cfg_target_canonical"-
}
target_install()
{
$cmd_make CROSS_COMPILE="$cfg_target_canonical"- CONFIG_PREFIX=$cfg_dir_rootfs install &&
tar -C "$pkg_dir/fs" --exclude .svn -c -f - . | tar -C "$cfg_dir_rootfs" -x -v -f -
2013-07-13 17:19:22 +01:00
}