aboutsummaryrefslogtreecommitdiff
path: root/Makefile.custom
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-06-10 17:08:22 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-07-26 13:39:46 +0200
commit9078633feeb129d679c97d900807ef2d5b253b65 (patch)
tree153f82ae904f01bcba2edd6197b7f5995a013a05 /Makefile.custom
parent7801148a816a2ab1c2f9437c8992c86722361147 (diff)
downloadbusybox-w32-9078633feeb129d679c97d900807ef2d5b253b65.tar.gz
busybox-w32-9078633feeb129d679c97d900807ef2d5b253b65.tar.bz2
busybox-w32-9078633feeb129d679c97d900807ef2d5b253b65.zip
buildsys: Add helper to list suid applets
Add a helper script that lists all applets that - do or may require SUID provileges (busybox.cfg.suid) - do not require SUID provileges (busybox.cfg.nosuid) Some setups prefer to build two busybox binaries, one that is suid which contains all applets that do or may require suid privileges, and a second one for all the rest (which drops suid). To ease splitting these two binaries, generate a list of CONFIG_ items for the suid binary. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Makefile.custom')
-rw-r--r--Makefile.custom7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.custom b/Makefile.custom
index 6da79e6e4..3561e5768 100644
--- a/Makefile.custom
+++ b/Makefile.custom
@@ -3,7 +3,12 @@
3# ========================================================================== 3# ==========================================================================
4 4
5busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h include/applets.h 5busybox.links: $(srctree)/applets/busybox.mkll $(objtree)/include/autoconf.h include/applets.h
6 $(Q)-$(SHELL) $^ >$@ 6 $(Q)-$(SHELL) $^ > $@
7
8busybox.cfg.suid: $(srctree)/applets/busybox.mksuid $(objtree)/include/autoconf.h include/applets.h
9 $(Q)-SUID="yes" $(SHELL) $^ > $@
10busybox.cfg.nosuid: $(srctree)/applets/busybox.mksuid $(objtree)/include/autoconf.h include/applets.h
11 $(Q)-SUID="DROP" $(SHELL) $^ > $@
7 12
8.PHONY: install 13.PHONY: install
9ifeq ($(CONFIG_INSTALL_APPLET_SYMLINKS),y) 14ifeq ($(CONFIG_INSTALL_APPLET_SYMLINKS),y)