svn commit: trunk/buildroot: package/busybox target/device/x86/i386 t etc...
Author: aldot
Date: 2007-02-16 06:32:22 -0800 (Fri, 16 Feb 2007) New Revision: 17907
Log:
- add skeleton to use busybox and mdev for a rather small skeleton
Added:
trunk/buildroot/target/generic/mini_device_table.txt trunk/buildroot/target/generic/target_busybox_skeleton/config/ trunk/buildroot/target/generic/target_busybox_skeleton/tmp/ trunk/buildroot/target/generic/target_busybox_skeleton/usr/ trunk/buildroot/target/generic/target_busybox_skeleton/usr/sbin/
Modified:
trunk/buildroot/package/busybox/Config.in trunk/buildroot/package/busybox/busybox.mk trunk/buildroot/target/device/x86/i386/busybox.config trunk/buildroot/target/generic/Makefile.in trunk/buildroot/target/generic/target_busybox_skeleton/etc/fstab trunk/buildroot/target/generic/target_busybox_skeleton/etc/inittab
Changeset:
Modified: trunk/buildroot/package/busybox/Config.in
===================================================================
buildroot/package/busybox/Config.in +8 -0
@@ -74,3 +74,11 @@ 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/. +
Modified: trunk/buildroot/package/busybox/busybox.mk
===================================================================
buildroot/package/busybox/busybox.mk +4 -0
@@ -98,6 +98,10 @@ $(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 $@
Modified: trunk/buildroot/target/device/x86/i386/busybox.config
===================================================================
buildroot/target/device/x86/i386/busybox.config +1 -1
@@ -638,7 +638,7 @@ # CONFIG_ASH_MAIL is not set CONFIG_ASH_OPTIMIZE_FOR_SIZE=y # CONFIG_ASH_RANDOM_SUPPORT is not set -# CONFIG_ASH_EXPAND_PRMT is not set +CONFIG_ASH_EXPAND_PRMT=y # CONFIG_HUSH is not set # CONFIG_LASH is not set # CONFIG_MSH is not set
Modified: trunk/buildroot/target/generic/Makefile.in
===================================================================
buildroot/target/generic/Makefile.in +1 -1
@@ -4,6 +4,6 @@ ifeq ($(BR2_PACKAGE_BUSYBOX_SKELETON),y) TARGET_SKELETON=target/generic/target_busybox_skeleton -TARGET_DEVICE_TABLE= +TARGET_DEVICE_TABLE=target/generic/mini_device_table.txt endif
Added: trunk/buildroot/target/generic/mini_device_table.txt
===================================================================
buildroot/target/generic/mini_device_table.txt +174 -0
174 lines not on this page · raw message
Modified: trunk/buildroot/target/generic/target_busybox_skeleton/etc/fstab
===================================================================
buildroot/target/generic/target_busybox_skeleton/etc/fstab +2 -1
@@ -5,4 +5,5 @@ proc /proc proc defaults 0 0 devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 tmpfs /tmp tmpfs defaults 0 0 - +configfs /config configfs defaults 0 0 +sysfs /sys sysfs defaults 0 0
Modified: trunk/buildroot/target/generic/target_busybox_skeleton/etc/inittab
===================================================================
buildroot/target/generic/target_busybox_skeleton/etc/inittab +8 -2
@@ -14,8 +14,14 @@ # process == program to run # Startup the system +null::sysinit:/bin/mount -t proc none /proc +null::sysinit:/bin/mount -t sysfs none /sys +null::sysinit:/bin/mount -t tmpfs -o size=512k,mode=0755 none /dev +null::sysinit:/bin/mkdir /dev/pts +null::sysinit:/bin/mount -t devpts devpts /dev/pts +null::sysinit:/bin/echo /sbin/mdev > /proc/sys/kernel/hotplug +null::sysinit:/sbin/mdev -s null::sysinit:/bin/mount -o remount,rw / -null::sysinit:/bin/mount -t proc proc /proc null::sysinit:/bin/mount -a null::sysinit:/bin/hostname -F /etc/hostname null::sysinit:/sbin/ifconfig lo 127.0.0.1 up
@@ -32,7 +38,7 @@ # Logging junk null::sysinit:/bin/touch /var/log/messages -null::respawn:/sbin/syslogd -n -m 0 +null::respawn:/sbin/syslogd -n null::respawn:/sbin/klogd -n tty3::respawn:/usr/bin/tail -f /var/log/messages
Copied: trunk/buildroot/target/generic/target_busybox_skeleton/tmp (from rev 17899, trunk/buildroot/target/generic/target_skeleton/tmp)