[Buildroot] [git commit branch/2023.08.x] package: dhcpcd: fix dhcpcd binary not stripped
Peter Korsgaard
peter at korsgaard.com
Mon Nov 13 13:00:45 UTC 2023
commit: https://git.buildroot.net/buildroot/commit/?id=943a1d15cf7f16a3a23da7794fe262e33eb47aac
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.08.x
By default dhcpcd installed with 555 permissions as it is
configured in its Makefile.inc. Since 'w' bit is missing,
strip fails and dhcpcd binary installed non-stripped.
On ARM GCC 12 glibc configuration strip saves over 1MB of disk space.
Signed-off-by: Oleg Lyovin <ovlevin at salutedevices.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 72c3f87efacbf593abebe798321f9ecda7adc2d3)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/dhcpcd/dhcpcd.mk | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/package/dhcpcd/dhcpcd.mk b/package/dhcpcd/dhcpcd.mk
index a194bce323..ba1481e83d 100644
--- a/package/dhcpcd/dhcpcd.mk
+++ b/package/dhcpcd/dhcpcd.mk
@@ -17,6 +17,9 @@ DHCPCD_CONFIG_OPTS = \
--os=linux \
--privsepuser=dhcpcd
+DHCPCD_MAKE_OPTS = \
+ BINMODE=755
+
ifeq ($(BR2_PACKAGE_DHCPCD_ENABLE_PRIVSEP),y)
DHCPCD_CONFIG_OPTS += --enable-privsep
else
@@ -43,11 +46,11 @@ define DHCPCD_CONFIGURE_CMDS
endef
define DHCPCD_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) all
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(DHCPCD_MAKE_OPTS) all
endef
define DHCPCD_INSTALL_TARGET_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install DESTDIR=$(TARGET_DIR)
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(DHCPCD_MAKE_OPTS) install DESTDIR=$(TARGET_DIR)
endef
# When network-manager is enabled together with dhcpcd, it will use
More information about the buildroot
mailing list