mirror of
https://github.com/godotengine/buildroot.git
synced 2025-12-31 09:48:56 +03:00
package: dhcpcd: fix dhcpcd binary not stripped
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@salutedevices.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> (cherry picked from commit 72c3f87efacbf593abebe798321f9ecda7adc2d3) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
f90dedabf4
commit
943a1d15cf
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user