b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | # |
| 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 | # |
| 7 | include $(TOPDIR)/rules.mk |
| 8 | |
| 9 | PKG_NAME:=util-linux |
| 10 | PKG_VERSION:=2.40.2 |
| 11 | |
| 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz |
| 13 | PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.40 |
| 14 | PKG_HASH:=d78b37a66f5922d70edf3bdfb01a6b33d34ed3c3cafd6628203b2a2b67c8e8b3 |
| 15 | PKG_CPE_ID:=cpe:/a:kernel:util-linux |
| 16 | |
| 17 | PKG_FIXUP:=autoreconf |
| 18 | |
| 19 | HOST_BUILD_PARALLEL:=1 |
| 20 | |
| 21 | include $(INCLUDE_DIR)/host-build.mk |
| 22 | |
| 23 | HOST_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 | |
| 51 | define Host/Uninstall |
| 52 | -$(call Host/Compile/Default,uninstall) |
| 53 | endef |
| 54 | |
| 55 | $(eval $(call HostBuild)) |