Skip to contentSkip to conversation

busybox: install example zcip.script when zcip is activated in config

PATCH New Sven Oliver Moll 2 participants 2 messages Oct 21, 2020 – Oct 25, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 busybox: install example zcip.script when zcip is activated in config

this way zcip will work out of the box when configured

---
  package/busybox/busybox.mk | 8 ++++++++
  1 file changed, 8 insertions(+)
package/busybox/busybox.mk +8 -0
index 45f74271f2..7136d9378a 100644
@@ -207,6 +207,13 @@ define BUSYBOX_INSTALL_UDHCPC_SCRIPT
  	fi
  endef
 
+define BUSYBOX_INSTALL_ZCIP_SCRIPT
+	if grep -q CONFIG_ZCIP=y $(@D)/.config; then \
+		$(INSTALL) -m 0755 -D $(@D)/examples/zcip.script \
+			$(TARGET_DIR)/usr/share/zcip/default.script; \
+	fi
+endef
+
  ifeq ($(BR2_INIT_BUSYBOX),y)
 
  define BUSYBOX_SET_INIT
@@ -352,6 +359,7 @@ define BUSYBOX_INSTALL_TARGET_CMDS
  	$(BUSYBOX_MAKE_ENV) $(MAKE) $(BUSYBOX_MAKE_OPTS) -C $(@D) install-noclobber
  	$(BUSYBOX_INSTALL_INITTAB)
  	$(BUSYBOX_INSTALL_UDHCPC_SCRIPT)
+	$(BUSYBOX_INSTALL_ZCIP_SCRIPT)
  	$(BUSYBOX_INSTALL_MDEV_CONF)
  endef
 
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 busybox: install example zcip.script when zcip is activated in config

Quoted 6 lines · On Wed, 21 Oct 2020 12:33:43 +0200 (CEST) Sven Oliver Moll <[email protected]>…

this way zcip will work out of the box when configured

---
  package/busybox/busybox.mk | 8 ++++++++
  1 file changed, 8 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com