mirror of
https://linux.maple.camp/git/ahill/maplelinux-bootstrap.git
synced 2026-02-11 10:13:35 +00:00
Integrated treetap into the bootstrap
This commit is contained in:
@@ -1,19 +1,28 @@
|
||||
# Maintainer: Alexander Hill <ahill@breadpudding.dev>
|
||||
SRC_HASH="b8cc24c9574d809e7279c3be349795c5d5ceb6fdf19ca709f80cde50e47de314"
|
||||
SRC_NAME="busybox"
|
||||
SRC_PATCHES="
|
||||
6b362ba1231e55cbff68ae9c9fdaa5749d459deed22cac5402cb83f0d8794a89 .config
|
||||
"
|
||||
SRC_URL="https://busybox.net/downloads/busybox-1.36.1.tar.bz2"
|
||||
SRC_VERSION="1.36.1"
|
||||
|
||||
build() {
|
||||
tar xf ../$SRC_FILENAME
|
||||
cd busybox-*/
|
||||
# NOTE: For some reason, Busybox hard-codes GNU tools in the Makefile. This
|
||||
# simple hack allows the environment to override the Makefile. ~ahill
|
||||
# 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.
|
||||
# With that said, Busybox uses Kbuild, which hard-codes variables like
|
||||
# CC to GNU-based tools, which is not what we want. The following sed
|
||||
# hack should do the trick, but I wonder if there's a better solution.
|
||||
# ~ahill
|
||||
sed -i "s/?*= \$(CROSS_COMPILE)/?= /" Makefile
|
||||
make -O -j $TT_PROCS defconfig
|
||||
# FIXME: tc complains about undefined values, causing the compilation to
|
||||
# fail. What causes this? ~ahill
|
||||
sed -i "s/CONFIG_TC=.*/CONFIG_TC=n/" .config
|
||||
# NOTE: Apparently, Busybox fails to properly check for ncurses since the
|
||||
# test compiles a main function without a return value type, causing
|
||||
# the compilation to fail. This patch fixes the issue by making the
|
||||
# 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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user