summaryrefslogtreecommitdiffstats
path: root/package/busybox
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox')
-rw-r--r--package/busybox/Config.in8
-rw-r--r--package/busybox/busybox.mk4
2 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/Config.in b/package/busybox/Config.in
index f832d7121..9d9c1a1e9 100644
--- a/package/busybox/Config.in
+++ b/package/busybox/Config.in
@@ -74,3 +74,11 @@ config BR2_PACKAGE_BUSYBOX_HIDE_OTHERS
Do not show packages in menuconfig that are potentially provided
by busybox.
+config BR2_PACKAGE_BUSYBOX_SKELETON
+ bool "use minimal target skeleton"
+ depends on BR2_PACKAGE_BUSYBOX
+ depends on !BR2_BUSYBOX_VERSION_1_0_1
+ help
+ Use a minimal target skeleton. Make sure to select mdev
+ which is used to populate /dev/.
+
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index 4fb3c16aa..dd2a5f62f 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -98,6 +98,10 @@ else
$(SED) "s/^.*CONFIG_LFS.*/CONFIG_LFS=n/;" $(BUSYBOX_DIR)/.config
$(SED) "s/^.*FDISK_SUPPORT_LARGE_DISKS.*/FDISK_SUPPORT_LARGE_DISKS=n/;" $(BUSYBOX_DIR)/.config
endif
+ifeq ($(BR2_PACKAGE_BUSYBOX_SKELETON),y)
+ # force mdev on
+ $(SED) "s/^.*CONFIG_MDEV.*/CONFIG_MDEV=y/" $(BUSYBOX_DIR)/.config
+endif
yes "" | $(MAKE) CC=$(TARGET_CC) CROSS_COMPILE="$(TARGET_CROSS)" \
CROSS="$(TARGET_CROSS)" -C $(BUSYBOX_DIR) oldconfig
touch $@