mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
907e906f01
Adresses @easrentai suggestion to pass modules build optimization for space here: #590 (comment) - Uniformized module's $(CROSS_TOOLS) being passed as environment variable, prior of ./configure call Doesn't work for: - busybox (HOSTCXXFLAGS="-Os" attempted prior of ./configure call) - zlib (CFLAGS="-Os" attempted prior of ./configure call) - npth (CFLAGS="-Os" attempted prior of ./configure call)
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
modules-$(CONFIG_UTIL_LINUX) += util-linux
|
|
|
|
util-linux_version := 2.29.2
|
|
util-linux_dir := util-linux-$(util-linux_version)
|
|
util-linux_tar := util-linux-$(util-linux_version).tar.xz
|
|
util-linux_url := https://www.kernel.org/pub/linux/utils/util-linux/v2.29/$(util-linux_tar)
|
|
util-linux_hash := accea4d678209f97f634f40a93b7e9fcad5915d1f4749f6c47bee6bf110fe8e3
|
|
|
|
util-linux_configure := \
|
|
$(CROSS_TOOLS) \
|
|
CFLAGS="-Os" \
|
|
./configure \
|
|
--host $(MUSL_ARCH)-elf-linux \
|
|
--prefix "/" \
|
|
--oldincludedir "$(INSTALL)/include" \
|
|
--without-ncurses \
|
|
--without-ncursesw \
|
|
--without-tinfo \
|
|
--without-udev \
|
|
--without-python \
|
|
--disable-bash-completion \
|
|
--disable-all-programs \
|
|
--enable-libuuid \
|
|
--enable-libblkid \
|
|
--enable-agetty \
|
|
|
|
|
|
util-linux_target := \
|
|
$(MAKE_JOBS) \
|
|
$(CROSS_TOOLS) \
|
|
DESTDIR="$(INSTALL)" \
|
|
install && \
|
|
rm $(INSTALL)/lib/libblkid.la && \
|
|
rm $(INSTALL)/lib/libuuid.la
|
|
|
|
util-linux_libraries += \
|
|
.libs/libuuid.so.1 \
|
|
.libs/libblkid.so.1 \
|
|
|
|
util-linux_agetty-$(CONFIG_USE_AGETTY) := agetty
|
|
util-linux_output := $(util-linux_agetty-y)
|
|
|
|
util-linux_depends := $(musl_dep)
|