busybox: drop host package

busybox:host installs two binaries into $TOOLCHAIN:

arch - the same as "uname -m"
cryptpw - generates password hashes - replaced with python

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
This commit is contained in:
Ian Leonard 2021-06-28 21:55:34 +00:00
parent 2cb6f17526
commit 5db34cb1fb
2 changed files with 1 additions and 1190 deletions

File diff suppressed because it is too large Load Diff

View File

@ -8,8 +8,7 @@ PKG_SHA256="9d57c4bd33974140fd4111260468af22856f12f5b5ef7c70c8d9b75c712a0dee"
PKG_LICENSE="GPL" PKG_LICENSE="GPL"
PKG_SITE="http://www.busybox.net" PKG_SITE="http://www.busybox.net"
PKG_URL="https://busybox.net/downloads/${PKG_NAME}-${PKG_VERSION}.tar.bz2" PKG_URL="https://busybox.net/downloads/${PKG_NAME}-${PKG_VERSION}.tar.bz2"
PKG_DEPENDS_HOST="toolchain:host" PKG_DEPENDS_TARGET="toolchain hdparm dosfstools e2fsprogs zip usbutils parted procps-ng gptfdisk libtirpc"
PKG_DEPENDS_TARGET="toolchain busybox:host hdparm dosfstools e2fsprogs zip usbutils parted procps-ng gptfdisk libtirpc"
PKG_DEPENDS_INIT="toolchain libtirpc" PKG_DEPENDS_INIT="toolchain libtirpc"
PKG_LONGDESC="BusyBox combines tiny versions of many common UNIX utilities into a single small executable." PKG_LONGDESC="BusyBox combines tiny versions of many common UNIX utilities into a single small executable."
# busybox fails to build with GOLD support enabled with binutils-2.25 # busybox fails to build with GOLD support enabled with binutils-2.25
@ -40,13 +39,6 @@ pre_build_target() {
cp -RP ${PKG_BUILD}/* ${PKG_BUILD}/.${TARGET_NAME} cp -RP ${PKG_BUILD}/* ${PKG_BUILD}/.${TARGET_NAME}
} }
pre_build_host() {
PKG_MAKE_OPTS_HOST="ARCH=${TARGET_ARCH} CROSS_COMPILE= KBUILD_VERBOSE=1 install"
mkdir -p ${PKG_BUILD}/.${HOST_NAME}
cp -RP ${PKG_BUILD}/* ${PKG_BUILD}/.${HOST_NAME}
}
pre_build_init() { pre_build_init() {
PKG_MAKE_OPTS_INIT="ARCH=${TARGET_ARCH} \ PKG_MAKE_OPTS_INIT="ARCH=${TARGET_ARCH} \
HOSTCC=${HOST_CC} \ HOSTCC=${HOST_CC} \
@ -58,16 +50,6 @@ pre_build_init() {
cp -RP ${PKG_BUILD}/* ${PKG_BUILD}/.${TARGET_NAME}-init cp -RP ${PKG_BUILD}/* ${PKG_BUILD}/.${TARGET_NAME}-init
} }
configure_host() {
cd ${PKG_BUILD}/.${HOST_NAME}
cp ${PKG_DIR}/config/busybox-host.conf .config
# set install dir
sed -i -e "s|^CONFIG_PREFIX=.*$|CONFIG_PREFIX=\"${PKG_BUILD}/.install_host\"|" .config
make oldconfig
}
configure_target() { configure_target() {
cd ${PKG_BUILD}/.${TARGET_NAME} cd ${PKG_BUILD}/.${TARGET_NAME}
find_file_path config/busybox-target.conf find_file_path config/busybox-target.conf
@ -115,11 +97,6 @@ configure_init() {
make oldconfig make oldconfig
} }
makeinstall_host() {
mkdir -p ${TOOLCHAIN}/bin
cp -R ${PKG_BUILD}/.install_host/bin/* ${TOOLCHAIN}/bin
}
makeinstall_target() { makeinstall_target() {
mkdir -p ${INSTALL}/usr/bin mkdir -p ${INSTALL}/usr/bin
if [ ${TARGET_ARCH} = x86_64 ]; then if [ ${TARGET_ARCH} = x86_64 ]; then