* [Buildroot] [PATCH] util-linux: use configure option instead of patching makefile
@ 2014-10-21 19:32 Peter Seiderer
2014-10-22 19:09 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Peter Seiderer @ 2014-10-21 19:32 UTC (permalink / raw)
To: buildroot
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
Signed-off-by: Peter Seiderer <ps.report@gmx.net>
---
package/util-linux/util-linux.mk | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/package/util-linux/util-linux.mk b/package/util-linux/util-linux.mk
index ebbab61..ec4158e 100644
--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -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
--
1.8.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] util-linux: use configure option instead of patching makefile
2014-10-21 19:32 [Buildroot] [PATCH] util-linux: use configure option instead of patching makefile Peter Seiderer
@ 2014-10-22 19:09 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-10-22 19:09 UTC (permalink / raw)
To: buildroot
Dear Peter Seiderer,
On Tue, 21 Oct 2014 21:32:36 +0200, Peter Seiderer wrote:
> 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
>
> Signed-off-by: Peter Seiderer <ps.report@gmx.net>
> ---
> package/util-linux/util-linux.mk | 8 +-------
> 1 file changed, 1 insertion(+), 7 deletions(-)
Applied, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-22 19:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21 19:32 [Buildroot] [PATCH] util-linux: use configure option instead of patching makefile Peter Seiderer
2014-10-22 19:09 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox