mirror of
https://linux.maple.camp/git/ahill/maplelinux-bootstrap.git
synced 2026-02-11 10:13:35 +00:00
Merged bsdutils/Busybox and updated treetap
This commit is contained in:
@@ -2,14 +2,15 @@
|
||||
SRC_HASH="b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314"
|
||||
SRC_NAME="busybox"
|
||||
SRC_PATCHES="
|
||||
63478e21fdb8a1aa13d5f98c6a599e6ed040deb79707677f6186083c826a2824 .config
|
||||
59d4edffe7f191fa3c8ae519ca62ea6cff77e5c9ae0945fd381570e884065975 .config
|
||||
"
|
||||
SRC_REVISION=3
|
||||
SRC_URL="https://busybox.net/downloads/busybox-1.36.1.tar.bz2"
|
||||
SRC_VERSION="1.36.1r2"
|
||||
SRC_VERSION="1.36.1"
|
||||
|
||||
build() {
|
||||
tar xf ../$SRC_FILENAME
|
||||
cd busybox-*/
|
||||
cd busybox-$SRC_VERSION/
|
||||
cp ../.config .
|
||||
# NOTE: Like we did with musl before, we don't set CROSS_COMPILE because
|
||||
# LLVM is smart and doesn't need a compiler to cross-compile code.
|
||||
@@ -24,16 +25,19 @@ build() {
|
||||
# returned type "void". This doesn't actually affect the build, but
|
||||
# I'm not sure where else to put this. ~ahill
|
||||
sed -i "s/main()/void main()/" scripts/kconfig/lxdialog/check-lxdialog.sh
|
||||
make -O -j $TT_PROCS
|
||||
# NOTE: AR, CC, and HOSTCC are required here due to GNU dependencies. ~ahill
|
||||
make -O -j $TT_PROCS AR=ar CC=clang HOSTCC=clang
|
||||
}
|
||||
|
||||
clean() {
|
||||
rm -rf busybox-*/
|
||||
rm -rf busybox-$SRC_VERSION/
|
||||
}
|
||||
|
||||
package() {
|
||||
cd busybox-*/
|
||||
cd busybox-$SRC_VERSION/
|
||||
# NOTE: Busybox doesn't have a proper DESTDIR, so we just set CONFIG_PREFIX
|
||||
# during the install to work around this limitation. ~ahill
|
||||
make -O -j $TT_PROCS install CONFIG_PREFIX=$TT_INSTALLDIR
|
||||
}
|
||||
# NOTE: Once again, AR, CC, and HOSTCC are set because we're using LLVM and
|
||||
# not GCC. ~ahill
|
||||
make -O -j $TT_PROCS install AR=ar CC=clang CONFIG_PREFIX=$TT_INSTALLDIR HOSTCC=$CC
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user