summaryrefslogtreecommitdiff
path: root/package/busybox/Makefile
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2014-05-04 10:48:01 +0000
committerWaldemar Brodkorb <wbx@openadk.org>2014-05-04 12:49:24 +0200
commit25b0faf95020bfcf6080a1a4a41a77385eb7609f (patch)
treef8994ae325b9ff7cf4e9ac29ded9cb1f5a4d8072 /package/busybox/Makefile
parente7d5fb78fa670f626349d1dc7eeb7fcd9ef57324 (diff)
dynamically start busybox’ services
Diffstat (limited to 'package/busybox/Makefile')
-rw-r--r--package/busybox/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/Makefile b/package/busybox/Makefile
index e3b766558..c75eb68bc 100644
--- a/package/busybox/Makefile
+++ b/package/busybox/Makefile
@@ -57,9 +57,20 @@ do-configure:
do-build:
$(MAKE) ${BB_MAKE_FLAGS} busybox
+BBDEFS:=(
+define BBDEF
+ifeq ($(ADK_RUNTIME_START_BUSYBOX_$(1)),y)
+BBDEFS+=echo BBDEF_$(1)=YES;
+else
+BBDEFS+=echo BBDEF_$(1)=NO;
+endif
+endef
+$(foreach OPTION,NETWORK CROND WATCHDOG SYSLOGD INETD NTPD,$(call BBDEF,$(OPTION)))
+
do-install:
$(MAKE) ${BB_MAKE_FLAGS} install $(MAKE_TRACE)
$(CP) $(WRKINST)/* $(IDIR_BUSYBOX)/
+ ${BBDEFS} :) >$(IDIR_BUSYBOX)/etc/.bb_defaults
ifeq ($(BUSYBOX_IFUPDOWN),y)
$(INSTALL_DIR) $(IDIR_BUSYBOX)/etc/init.d
$(INSTALL_BIN) ./files/network $(IDIR_BUSYBOX)/etc/init.d