Skip to contentSkip to conversation

util-linux: use configure option instead of patching makefile

PATCH New Peter Seiderer 2 participants 2 messages Oct 21, 2014 – Oct 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 util-linux: use configure option instead of patching makefile

Use --disable-all-programs configure option instead of sed base patching of Makefile.am in case no util-linux binaries are selected.

Suggested by Thomas Petazzoni ([1]).

With this patch applied the following libs are no longer build by default:

util-linux-2.25.1/.libs/libfdisk.a
util-linux-2.25.1/.libs/libsmartcols.a
util-linux-2.25.1/.libs/libsmartcols.so.1.1.0

[1] http://lists.busybox.net/pipermail/buildroot/2014-October/109818.html

---
 package/util-linux/util-linux.mk | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
package/util-linux/util-linux.mk +1 -7
index ebbab61..ec4158e 100644
@@ -100,13 +100,7 @@ HOST_UTIL_LINUX_CONF_OPTS += \
 # Avoid building the tools if they are disabled since we can't install on
 # a per-directory basis.
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_BINARIES),)
-define UTIL_LINUX_DISABLE_TOOLS
-	$(SED) '/schedutils/d' -e '/text-utils/d' -e '/term-utils/d' \
-		-e '/login-utils/d' -e '/mount-deprecated/d' \
-		-e '/sys-utils/d' -e '/misc-utils/d' -e '/disk-utils/d' \
-		-e '/fdisks/d' $(@D)/Makefile.am
-endef
-UTIL_LINUX_PRE_PATCH_HOOKS += UTIL_LINUX_DISABLE_TOOLS
+UTIL_LINUX_CONF_OPTS += --disable-all-programs 
 endif
 
 # Install PAM configuration files
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH 1/1 util-linux: use configure option instead of patching makefile

Dear Peter Seiderer,

Quoted 11 lines · Peter Seiderer

Use --disable-all-programs configure option instead of sed base patching of Makefile.am in case no util-linux binaries are selected.

Suggested by Thomas Petazzoni ([1]).

With this patch applied the following libs are no longer build by default:

util-linux-2.25.1/.libs/libfdisk.a
util-linux-2.25.1/.libs/libsmartcols.a
util-linux-2.25.1/.libs/libsmartcols.so.1.1.0

Quoted 6 lines

[1] http://lists.busybox.net/pipermail/buildroot/2014-October/109818.html

---
 package/util-linux/util-linux.mk | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

Applied, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com