mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 06:08:08 +00:00
54115ec22d
util-linux supports passing --disable-all-programs configure flag to disable building anything that isnt then manually enabled. So, lets switch to using that instead of manually having to disable all tools we dont need. However, current drawback is that there is no upstream support for enabling building hexdump so I included a patch that is pending upstream[0]. [0] https://github.com/util-linux/util-linux/pull/3101 Link: https://github.com/openwrt/openwrt/pull/15806 Signed-off-by: Robert Marko <robimarko@gmail.com>
56 lines
1.2 KiB
Makefile
56 lines
1.2 KiB
Makefile
#
|
|
# Copyright (C) 2006-2015 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=util-linux
|
|
PKG_VERSION:=2.40.1
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.40
|
|
PKG_HASH:=8e396eececae2b3b68db232c33b8810faa7c31f6df19f98f512739293d5829b7
|
|
PKG_CPE_ID:=cpe:/a:kernel:util-linux
|
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
HOST_BUILD_PARALLEL:=1
|
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
|
|
|
HOST_CONFIGURE_ARGS += \
|
|
--disable-all-programs \
|
|
--enable-hexdump \
|
|
--without-util \
|
|
--without-selinux \
|
|
--without-audit \
|
|
--without-udev \
|
|
--without-ncursesw \
|
|
--without-ncurses \
|
|
--without-slang \
|
|
--without-tinfo \
|
|
--without-readline \
|
|
--without-utempter \
|
|
--without-cap-ng \
|
|
--without-libz \
|
|
--without-libmagic \
|
|
--without-user \
|
|
--without-btrfs \
|
|
--without-systemd \
|
|
--without-smack \
|
|
--without-econf \
|
|
--without-python \
|
|
--without-cryptsetup
|
|
|
|
define Host/Install
|
|
$(INSTALL_BIN) $(HOST_BUILD_DIR)/hexdump $(STAGING_DIR_HOST)/bin/
|
|
endef
|
|
|
|
define Host/Uninstall
|
|
rm -f $(STAGING_DIR_HOST)/bin/hexdump
|
|
endef
|
|
|
|
$(eval $(call HostBuild))
|