From: Sven Oliver Moll Date: Wed, 21 Oct 2020 10:33:43 +0000 (+0200) Subject: package/busybox: install example zcip.script when zcip is enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aebefc1e5a70a834813a218b37633629e7a41562;p=buildroot.git package/busybox: install example zcip.script when zcip is enabled this way zcip will work out of the box when configured Signed-off-by: Sven Oliver Moll Signed-off-by: Thomas Petazzoni --- diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 01f7331221..76ab30780c 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -208,6 +208,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 @@ -366,6 +373,7 @@ define BUSYBOX_INSTALL_TARGET_CMDS $(BUSYBOX_INSTALL_INDIVIDUAL_BINARIES) $(BUSYBOX_INSTALL_INITTAB) $(BUSYBOX_INSTALL_UDHCPC_SCRIPT) + $(BUSYBOX_INSTALL_ZCIP_SCRIPT) $(BUSYBOX_INSTALL_MDEV_CONF) endef