eliminate DOSTATIC, DODEBUG, etc and name them sensibly
This commit is contained in:
parent
20c9f1e5e7
commit
e5272074c9
10
Rules.mak
10
Rules.mak
@ -140,20 +140,20 @@ OPTIMIZATIONS=$(OPTIMIZATION) -fomit-frame-pointer
|
|||||||
# prone to casual user adjustment.
|
# prone to casual user adjustment.
|
||||||
#
|
#
|
||||||
|
|
||||||
ifeq ($(strip $(DOLFS)),y)
|
ifeq ($(strip $(CONFIG_LFS)),y)
|
||||||
# For large file summit support
|
# For large file summit support
|
||||||
CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
CFLAGS+=-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(DODMALLOC)),y)
|
ifeq ($(strip $(CONFIG_DMALLOC)),y)
|
||||||
# For testing mem leaks with dmalloc
|
# For testing mem leaks with dmalloc
|
||||||
CFLAGS+=-DDMALLOC
|
CFLAGS+=-DDMALLOC
|
||||||
LIBRARIES:=-ldmalloc
|
LIBRARIES:=-ldmalloc
|
||||||
else
|
else
|
||||||
ifeq ($(strip $(DOEFENCE)),y)
|
ifeq ($(strip $(CONFIG_EFENCE)),y)
|
||||||
LIBRARIES:=-lefence
|
LIBRARIES:=-lefence
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(DODEBUG)),y)
|
ifeq ($(strip $(CONFIG_DEBUG)),y)
|
||||||
CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE
|
CFLAGS +=$(WARNINGS) -g -D_GNU_SOURCE
|
||||||
LDFLAGS +=-Wl,-warn-common
|
LDFLAGS +=-Wl,-warn-common
|
||||||
STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
|
STRIPCMD:=/bin/true -Not_stripping_since_we_are_debugging
|
||||||
@ -162,7 +162,7 @@ else
|
|||||||
LDFLAGS += -s -Wl,-warn-common
|
LDFLAGS += -s -Wl,-warn-common
|
||||||
STRIPCMD:=$(STRIP) --remove-section=.note --remove-section=.comment
|
STRIPCMD:=$(STRIP) --remove-section=.note --remove-section=.comment
|
||||||
endif
|
endif
|
||||||
ifeq ($(strip $(DOSTATIC)),y)
|
ifeq ($(strip $(CONFIG_STATIC)),y)
|
||||||
LDFLAGS += --static
|
LDFLAGS += --static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "busybox.h"
|
#include "busybox.h"
|
||||||
|
|
||||||
/* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are
|
/* This must be a #define, since when CONFIG_DEBUG and BUFFERS_GO_IN_BSS are
|
||||||
* enabled, we otherwise get a "storage size isn't constant error. */
|
* enabled, we otherwise get a "storage size isn't constant error. */
|
||||||
#define ASCII 0377
|
#define ASCII 0377
|
||||||
|
|
||||||
|
6
debian/config-deb
vendored
6
debian/config-deb
vendored
@ -20,8 +20,8 @@ CONFIG_FEATURE_INSTALLER=y
|
|||||||
#
|
#
|
||||||
# Build Options
|
# Build Options
|
||||||
#
|
#
|
||||||
# DOSTATIC is not set
|
# CONFIG_STATIC is not set
|
||||||
DOLFS=y
|
CONFIG_LFS=y
|
||||||
# USING_CROSS_COMPILER is not set
|
# USING_CROSS_COMPILER is not set
|
||||||
EXTRA_CFLAGS_OPTIONS=""
|
EXTRA_CFLAGS_OPTIONS=""
|
||||||
|
|
||||||
@ -362,4 +362,4 @@ CONFIG_FEATURE_MOUNT_LOOP=y
|
|||||||
#
|
#
|
||||||
# Debugging Options
|
# Debugging Options
|
||||||
#
|
#
|
||||||
# DODEBUG is not set
|
# CONFIG_DEBUG is not set
|
||||||
|
6
debian/config-net-udeb
vendored
6
debian/config-net-udeb
vendored
@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y
|
|||||||
#
|
#
|
||||||
# Build Options
|
# Build Options
|
||||||
#
|
#
|
||||||
# DOSTATIC is not set
|
# CONFIG_STATIC is not set
|
||||||
# DOLFS is not set
|
# CONFIG_LFS is not set
|
||||||
# USING_CROSS_COMPILER is not set
|
# USING_CROSS_COMPILER is not set
|
||||||
EXTRA_CFLAGS_OPTIONS=""
|
EXTRA_CFLAGS_OPTIONS=""
|
||||||
|
|
||||||
@ -366,4 +366,4 @@ CONFIG_UMOUNT=y
|
|||||||
#
|
#
|
||||||
# Debugging Options
|
# Debugging Options
|
||||||
#
|
#
|
||||||
# DODEBUG is not set
|
# CONFIG_DEBUG is not set
|
||||||
|
6
debian/config-net-udeb-i386
vendored
6
debian/config-net-udeb-i386
vendored
@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y
|
|||||||
#
|
#
|
||||||
# Build Options
|
# Build Options
|
||||||
#
|
#
|
||||||
# DOSTATIC is not set
|
# CONFIG_STATIC is not set
|
||||||
DOLFS=y
|
CONFIG_LFS=y
|
||||||
# USING_CROSS_COMPILER is not set
|
# USING_CROSS_COMPILER is not set
|
||||||
EXTRA_CFLAGS_OPTIONS=""
|
EXTRA_CFLAGS_OPTIONS=""
|
||||||
|
|
||||||
@ -371,4 +371,4 @@ CONFIG_FEATURE_MOUNT_FORCE=y
|
|||||||
#
|
#
|
||||||
# Debugging Options
|
# Debugging Options
|
||||||
#
|
#
|
||||||
# DODEBUG is not set
|
# CONFIG_DEBUG is not set
|
||||||
|
6
debian/config-static
vendored
6
debian/config-static
vendored
@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y
|
|||||||
#
|
#
|
||||||
# Build Options
|
# Build Options
|
||||||
#
|
#
|
||||||
DOSTATIC=y
|
CONFIG_STATIC=y
|
||||||
DOLFS=y
|
CONFIG_LFS=y
|
||||||
# USING_CROSS_COMPILER is not set
|
# USING_CROSS_COMPILER is not set
|
||||||
EXTRA_CFLAGS_OPTIONS=""
|
EXTRA_CFLAGS_OPTIONS=""
|
||||||
|
|
||||||
@ -486,4 +486,4 @@ CONFIG_FEATURE_MTAB_FILENAME="/etc/mtab"
|
|||||||
#
|
#
|
||||||
# Debugging Options
|
# Debugging Options
|
||||||
#
|
#
|
||||||
# DODEBUG is not set
|
# CONFIG_DEBUG is not set
|
||||||
|
6
debian/config-udeb
vendored
6
debian/config-udeb
vendored
@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y
|
|||||||
#
|
#
|
||||||
# Build Options
|
# Build Options
|
||||||
#
|
#
|
||||||
# DOSTATIC is not set
|
# CONFIG_STATIC is not set
|
||||||
DOLFS=y
|
CONFIG_LFS=y
|
||||||
# USING_CROSS_COMPILER is not set
|
# USING_CROSS_COMPILER is not set
|
||||||
EXTRA_CFLAGS_OPTIONS=""
|
EXTRA_CFLAGS_OPTIONS=""
|
||||||
|
|
||||||
@ -398,4 +398,4 @@ CONFIG_FEATURE_MOUNT_FORCE=y
|
|||||||
#
|
#
|
||||||
# Debugging Options
|
# Debugging Options
|
||||||
#
|
#
|
||||||
# DODEBUG is not set
|
# CONFIG_DEBUG is not set
|
||||||
|
6
debian/config-udeb-i386
vendored
6
debian/config-udeb-i386
vendored
@ -20,8 +20,8 @@ CONFIG_FEATURE_DEVPTS=y
|
|||||||
#
|
#
|
||||||
# Build Options
|
# Build Options
|
||||||
#
|
#
|
||||||
# DOSTATIC is not set
|
# CONFIG_STATIC is not set
|
||||||
DOLFS=y
|
CONFIG_LFS=y
|
||||||
# USING_CROSS_COMPILER is not set
|
# USING_CROSS_COMPILER is not set
|
||||||
EXTRA_CFLAGS_OPTIONS=""
|
EXTRA_CFLAGS_OPTIONS=""
|
||||||
|
|
||||||
@ -410,4 +410,4 @@ CONFIG_FEATURE_MOUNT_FORCE=y
|
|||||||
#
|
#
|
||||||
# Debugging Options
|
# Debugging Options
|
||||||
#
|
#
|
||||||
# DODEBUG is not set
|
# CONFIG_DEBUG is not set
|
||||||
|
10
debian/rules
vendored
10
debian/rules
vendored
@ -11,7 +11,7 @@ DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|||||||
VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
|
VERSION = $(shell dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2)
|
||||||
|
|
||||||
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
|
||||||
DODEBUG = true
|
CONFIG_DEBUG = true
|
||||||
endif
|
endif
|
||||||
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
|
||||||
endif
|
endif
|
||||||
@ -39,7 +39,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(MAKE) dep
|
$(MAKE) dep
|
||||||
$(MAKE) DODEBUG=$(DODEBUG)
|
$(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG)
|
||||||
|
|
||||||
install -d install-$(PACKAGE_PREFIX)/bin
|
install -d install-$(PACKAGE_PREFIX)/bin
|
||||||
install busybox install-$(PACKAGE_PREFIX)/bin/busybox
|
install busybox install-$(PACKAGE_PREFIX)/bin/busybox
|
||||||
@ -57,7 +57,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(MAKE) dep
|
$(MAKE) dep
|
||||||
$(MAKE) DODEBUG=$(DODEBUG)
|
$(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG)
|
||||||
|
|
||||||
install -d install-$(PACKAGE_PREFIX)-static/bin
|
install -d install-$(PACKAGE_PREFIX)-static/bin
|
||||||
install busybox install-$(PACKAGE_PREFIX)-static/bin/busybox
|
install busybox install-$(PACKAGE_PREFIX)-static/bin/busybox
|
||||||
@ -75,7 +75,7 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
$(MAKE) dep
|
$(MAKE) dep
|
||||||
$(MAKE) DODEBUG=$(DODEBUG)
|
$(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG)
|
||||||
|
|
||||||
$(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-udeb install
|
$(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-udeb install
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ ifneq ($(wildcard ./debian/config-net-udeb-$(DEB_HOST_ARCH)),)
|
|||||||
cp ./debian/config-net-udeb-$(DEB_HOST_ARCH) .config
|
cp ./debian/config-net-udeb-$(DEB_HOST_ARCH) .config
|
||||||
|
|
||||||
$(MAKE) dep
|
$(MAKE) dep
|
||||||
$(MAKE) DODEBUG=$(DODEBUG)
|
$(MAKE) CONFIG_DEBUG=$(CONFIG_DEBUG)
|
||||||
|
|
||||||
$(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-net-udeb install
|
$(MAKE) PREFIX=$(CURDIR)/install-$(PACKAGE_PREFIX)-net-udeb install
|
||||||
endif
|
endif
|
||||||
|
@ -90,21 +90,39 @@ config CONFIG_FEATURE_SUID
|
|||||||
bool "Support for SUID/SGID handling"
|
bool "Support for SUID/SGID handling"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Please submit a patch to add help text for this item.
|
Support SUID and SGID binaries.
|
||||||
|
|
||||||
config CONFIG_FEATURE_SUID_CONFIG
|
config CONFIG_FEATURE_SUID_CONFIG
|
||||||
bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
|
bool "Runtime SUID/SGID configuration via /etc/busybox.conf"
|
||||||
default y if CONFIG_FEATURE_SUID
|
default y if CONFIG_FEATURE_SUID
|
||||||
depends on CONFIG_FEATURE_SUID
|
depends on CONFIG_FEATURE_SUID
|
||||||
help
|
help
|
||||||
Please submit a patch to add help text for this item.
|
Allow the SUID / SGID state of an applet to be determinded runtime by
|
||||||
|
checking /etc/busybox.conf. The format of this file is as follows:
|
||||||
|
|
||||||
|
<applet> = [Ssx-][Ssx-][x-] (<username>|<uid>).(<groupname>|<gid>)
|
||||||
|
|
||||||
|
An example might help:
|
||||||
|
|
||||||
|
[SUID]
|
||||||
|
su = ssx root.0 # applet su can be run by anyone and runs with euid=0/egid=0
|
||||||
|
su = ssx # exactly the same
|
||||||
|
|
||||||
|
mount = sx- root.disk # applet mount can be run by root and members of group disk
|
||||||
|
# and runs with euid=0
|
||||||
|
|
||||||
|
cp = --- # disable applet cp for everyone
|
||||||
|
|
||||||
|
Robert 'sandman' Griebl has more information here:
|
||||||
|
<url: http://www.softforge.de/bb/suid.html >.
|
||||||
|
|
||||||
config CONFIG_FEATURE_SUID_CONFIG_QUIET
|
config CONFIG_FEATURE_SUID_CONFIG_QUIET
|
||||||
bool "Suppress warning message if /etc/busybox.conf is not readable"
|
bool "Suppress warning message if /etc/busybox.conf is not readable"
|
||||||
default n
|
default n
|
||||||
depends on CONFIG_FEATURE_SUID_CONFIG
|
depends on CONFIG_FEATURE_SUID_CONFIG
|
||||||
help
|
help
|
||||||
Please submit a patch to add help text for this item.
|
/etc/busybox.conf should be readable by the user needing the SUID, check
|
||||||
|
this option to avoid users to be notified about missing permissions.
|
||||||
|
|
||||||
config CONFIG_SELINUX
|
config CONFIG_SELINUX
|
||||||
bool "Support NSA Security Enhanced Linux"
|
bool "Support NSA Security Enhanced Linux"
|
||||||
@ -117,14 +135,21 @@ endmenu
|
|||||||
|
|
||||||
menu 'Build Options'
|
menu 'Build Options'
|
||||||
|
|
||||||
config DOSTATIC
|
config CONFIG_STATIC
|
||||||
bool "Build BusyBox as a static binary (no shared libs)"
|
bool "Build BusyBox as a static binary (no shared libs)"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
If you want to build a static BusyBox binary, which does not
|
If you want to build a static BusyBox binary, which does not
|
||||||
use or require any shared libraries, then enable this option.
|
use or require any shared libraries, then enable this option.
|
||||||
|
This can make BusyBox be considerably larger, so you should
|
||||||
|
leave this option false unless you have a good reason (i.e.
|
||||||
|
your target platform does not support shared libraries, or
|
||||||
|
you are building an initrd which doesn't need anything but
|
||||||
|
BusyBox, etc).
|
||||||
|
|
||||||
config DOLFS
|
Most people will leave this set to 'N'.
|
||||||
|
|
||||||
|
config CONFIG_LFS
|
||||||
bool "Build with Large File Support (for accessing files > 2 GB)"
|
bool "Build with Large File Support (for accessing files > 2 GB)"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
@ -201,21 +226,7 @@ source util-linux/Config.in
|
|||||||
|
|
||||||
menu 'Debugging Options'
|
menu 'Debugging Options'
|
||||||
|
|
||||||
config DOSTATIC
|
config CONFIG_DEBUG
|
||||||
bool "Build BusyBox as a static binary (no shared libs)"
|
|
||||||
default n
|
|
||||||
help
|
|
||||||
If you want to build a static BusyBox binary, which does not
|
|
||||||
use or require any shared libraries, then enable this option.
|
|
||||||
This will make BusyBox be considerable larger, so you should
|
|
||||||
leave this option false unless you have a good reason (i.e.
|
|
||||||
your target platform does not support shared libraries, or
|
|
||||||
you are building an initrd which doesn't need anything but
|
|
||||||
BusyBox, etc).
|
|
||||||
|
|
||||||
Most people will leave this set to 'N'.
|
|
||||||
|
|
||||||
config DODEBUG
|
|
||||||
bool "Build BusyBox with Debugging symbols"
|
bool "Build BusyBox with Debugging symbols"
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
@ -227,10 +238,10 @@ config DODEBUG
|
|||||||
|
|
||||||
Otherwise, answer N.
|
Otherwise, answer N.
|
||||||
|
|
||||||
config DODMALLOC
|
config CONFIG_DMALLOC
|
||||||
bool "Build BusyBox with dmalloc support"
|
bool "Build BusyBox with dmalloc support"
|
||||||
default n
|
default n
|
||||||
depends on DODEBUG && !DOEFENCE
|
depends on CONFIG_DEBUG && !CONFIG_EFENCE
|
||||||
help
|
help
|
||||||
This enables compiling with dmalloc ( http://dmalloc.com/ )
|
This enables compiling with dmalloc ( http://dmalloc.com/ )
|
||||||
which is an excellent public domain mem leak and malloc problem
|
which is an excellent public domain mem leak and malloc problem
|
||||||
@ -245,10 +256,10 @@ config DODMALLOC
|
|||||||
This will make BusyBox be considerable larger and run slower, so
|
This will make BusyBox be considerable larger and run slower, so
|
||||||
you should leave this option disabled for production use.
|
you should leave this option disabled for production use.
|
||||||
|
|
||||||
config DOEFENCE
|
config CONFIG_EFENCE
|
||||||
bool "Build BusyBox with Electric-fence support"
|
bool "Build BusyBox with Electric-fence support"
|
||||||
default n
|
default n
|
||||||
depends on DODEBUG && !DODMALLOC
|
depends on CONFIG_DEBUG && !CONFIG_DMALLOC
|
||||||
help
|
help
|
||||||
This enables compiling with Electric-fence support. Electric
|
This enables compiling with Electric-fence support. Electric
|
||||||
fence is another very useful malloc debugging library which used
|
fence is another very useful malloc debugging library which used
|
||||||
|
@ -408,7 +408,7 @@ static void domark(int sig)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This must be a #define, since when DODEBUG and BUFFERS_GO_IN_BSS are
|
/* This must be a #define, since when CONFIG_DEBUG and BUFFERS_GO_IN_BSS are
|
||||||
* enabled, we otherwise get a "storage size isn't constant error. */
|
* enabled, we otherwise get a "storage size isn't constant error. */
|
||||||
static int serveConnection(char *tmpbuf, int n_read)
|
static int serveConnection(char *tmpbuf, int n_read)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user