blob: f9aadba2c2756e83d376507e2ab2774557497807 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# Copyright (C) 2006-2015 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7include $(TOPDIR)/rules.mk
8
9PKG_NAME:=util-linux
10PKG_VERSION:=2.40.2
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.40
14PKG_HASH:=d78b37a66f5922d70edf3bdfb01a6b33d34ed3c3cafd6628203b2a2b67c8e8b3
15PKG_CPE_ID:=cpe:/a:kernel:util-linux
16
17PKG_FIXUP:=autoreconf
18
19HOST_BUILD_PARALLEL:=1
20
21include $(INCLUDE_DIR)/host-build.mk
22
23HOST_CONFIGURE_ARGS += \
24 --with-pic \
25 --disable-shared \
26 --disable-nls \
27 --disable-all-programs \
28 --enable-hexdump \
29 --enable-libuuid \
30 --without-util \
31 --without-selinux \
32 --without-audit \
33 --without-udev \
34 --without-ncursesw \
35 --without-ncurses \
36 --without-slang \
37 --without-tinfo \
38 --without-readline \
39 --without-utempter \
40 --without-cap-ng \
41 --without-libz \
42 --without-libmagic \
43 --without-user \
44 --without-btrfs \
45 --without-systemd \
46 --without-smack \
47 --without-econf \
48 --without-python \
49 --without-cryptsetup
50
51define Host/Uninstall
52 -$(call Host/Compile/Default,uninstall)
53endef
54
55$(eval $(call HostBuild))