tools: add util-linux
[openwrt/staging/nbd.git] / tools / util-linux / Makefile
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.39.3
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
13 PKG_SOURCE_URL:=@KERNEL/linux/utils/$(PKG_NAME)/v2.39
14 PKG_HASH:=7b6605e48d1a49f43cc4b4cfc59f313d0dd5402fa40b96810bd572e167dfed0f
15 PKG_CPE_ID:=cpe:/a:kernel:util-linux
16
17 HOST_BUILD_PARALLEL:=1
18
19 include $(INCLUDE_DIR)/host-build.mk
20
21 HOST_CONFIGURE_ARGS += \
22 --disable-poman \
23 --disable-nls \
24 --disable-asciidoc \
25 --disable-poman \
26 --disable-libuuid \
27 --disable-libblkid \
28 --disable-libmount \
29 --disable-libsmartcols \
30 --disable-libfdisk \
31 --disable-fdisks \
32 --disable-mount \
33 --disable-losetup \
34 --disable-zramctl \
35 --disable-fsck \
36 --disable-partx \
37 --disable-uuidd \
38 --disable-uuidgen \
39 --disable-blkid \
40 --disable-wipefs \
41 --disable-mountpoint \
42 --disable-fallocate \
43 --disable-unshare \
44 --disable-nsenter \
45 --disable-setpriv \
46 --disable-hardlink \
47 --disable-eject \
48 --disable-agetty \
49 --disable-cramfs \
50 --disable-bfs \
51 --disable-minix \
52 --disable-hwclock \
53 --disable-mkfs \
54 --disable-fstrim \
55 --disable-swapon \
56 --disable-lscpu \
57 --disable-lsfd \
58 --disable-lslogins \
59 --disable-wdctl \
60 --disable-cal \
61 --disable-logger \
62 --disable-whereis \
63 --disable-pipesz \
64 --disable-waitpid \
65 --disable-switch_root \
66 --disable-pivot_root \
67 --disable-lsmem \
68 --disable-chmem \
69 --disable-ipcmk \
70 --disable-ipcrm \
71 --disable-ipcs \
72 --disable-irqtop \
73 --disable-lsirq \
74 --disable-lsns \
75 --disable-rfkill \
76 --disable-scriptutils \
77 --disable-tunelp \
78 --disable-kill \
79 --disable-last \
80 --disable-utmpdump \
81 --disable-line \
82 --disable-mesg \
83 --disable-raw \
84 --disable-rename \
85 --disable-vipw \
86 --disable-newgrp \
87 --disable-chfn-chsh \
88 --disable-login \
89 --disable-nologin \
90 --disable-sulogin \
91 --disable-su \
92 --disable-runuser \
93 --disable-ul \
94 --disable-more \
95 --disable-pg \
96 --disable-setterm \
97 --disable-schedutils \
98 --disable-wall \
99 --disable-write \
100 --disable-bash-completion \
101 --disable-pylibmount \
102 --disable-pg-bell \
103 --without-util \
104 --without-selinux \
105 --without-audit \
106 --without-udev \
107 --without-ncursesw \
108 --without-ncurses \
109 --without-slang \
110 --without-tinfo \
111 --without-readline \
112 --without-utempter \
113 --without-cap-ng \
114 --without-libz \
115 --without-libmagic \
116 --without-user \
117 --without-btrfs \
118 --without-systemd \
119 --without-smack \
120 --without-econf \
121 --without-python \
122 --without-cryptsetup
123
124 define Host/Install
125 $(INSTALL_BIN) $(HOST_BUILD_DIR)/hexdump $(STAGING_DIR_HOST)/bin/
126 endef
127
128 define Host/Uninstall
129 rm -f $(STAGING_DIR_HOST)/bin/hexdump
130 endef
131
132 $(eval $(call HostBuild))