]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
New top-level directory: system
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 3 Nov 2012 08:27:58 +0000 (08:27 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 4 Nov 2012 11:51:08 +0000 (12:51 +0100)
This directory groups the following elements:
 * the default root filesystem skeleton
 * the default device tables
 * the Config.in options for system configuration (UART port for
   getty, system hostname, etc.)
 * the make rules to apply the system configuration options

Even though the skeleton and device tables could have lived in fs/, it
would have been strange to have the UART, system hostname and other
related options into fs/. A new system/ directory makes more sense.

As a consequence, this patch also removes target/Makefile.in, which
has become useless in the process.

[Peter: fixup TARGET_SKELETON settings / documentation to match]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Yann E. MORIN <yann.morin.1998@free.fr>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
63 files changed:
Config.in
Makefile
docs/manual/customize-rootfs.txt
system/Config.in [moved from target/generic/Config.in with 99% similarity]
system/device_table.txt [moved from target/generic/device_table.txt with 100% similarity]
system/device_table_dev.txt [moved from target/generic/device_table_dev.txt with 100% similarity]
system/skeleton/bin/.empty [moved from fs/skeleton/bin/.empty with 100% similarity]
system/skeleton/dev/log [moved from fs/skeleton/dev/log with 100% similarity]
system/skeleton/dev/pts/.empty [moved from fs/skeleton/dev/pts/.empty with 100% similarity]
system/skeleton/etc/fstab [moved from fs/skeleton/etc/fstab with 100% similarity]
system/skeleton/etc/group [moved from fs/skeleton/etc/group with 100% similarity]
system/skeleton/etc/hostname [moved from fs/skeleton/etc/hostname with 100% similarity]
system/skeleton/etc/hosts [moved from fs/skeleton/etc/hosts with 100% similarity]
system/skeleton/etc/init.d/S20urandom [moved from fs/skeleton/etc/init.d/S20urandom with 100% similarity]
system/skeleton/etc/init.d/S40network [moved from fs/skeleton/etc/init.d/S40network with 100% similarity]
system/skeleton/etc/init.d/rcK [moved from fs/skeleton/etc/init.d/rcK with 100% similarity]
system/skeleton/etc/init.d/rcS [moved from fs/skeleton/etc/init.d/rcS with 100% similarity]
system/skeleton/etc/inittab [moved from fs/skeleton/etc/inittab with 100% similarity]
system/skeleton/etc/inputrc [moved from fs/skeleton/etc/inputrc with 100% similarity]
system/skeleton/etc/issue [moved from fs/skeleton/etc/issue with 100% similarity]
system/skeleton/etc/ld.so.conf.d/.empty [moved from fs/skeleton/etc/ld.so.conf.d/.empty with 100% similarity]
system/skeleton/etc/mtab [moved from fs/skeleton/etc/mtab with 100% similarity]
system/skeleton/etc/network/if-down.d/.empty [moved from fs/skeleton/etc/network/if-down.d/.empty with 100% similarity]
system/skeleton/etc/network/if-post-down.d/.empty [moved from fs/skeleton/etc/network/if-post-down.d/.empty with 100% similarity]
system/skeleton/etc/network/if-pre-up.d/.empty [moved from fs/skeleton/etc/network/if-pre-up.d/.empty with 100% similarity]
system/skeleton/etc/network/if-up.d/.empty [moved from fs/skeleton/etc/network/if-up.d/.empty with 100% similarity]
system/skeleton/etc/network/interfaces [moved from fs/skeleton/etc/network/interfaces with 100% similarity]
system/skeleton/etc/passwd [moved from fs/skeleton/etc/passwd with 100% similarity]
system/skeleton/etc/profile [moved from fs/skeleton/etc/profile with 100% similarity]
system/skeleton/etc/protocols [moved from fs/skeleton/etc/protocols with 100% similarity]
system/skeleton/etc/random-seed [moved from fs/skeleton/etc/random-seed with 100% similarity]
system/skeleton/etc/resolv.conf [moved from fs/skeleton/etc/resolv.conf with 100% similarity]
system/skeleton/etc/securetty [moved from fs/skeleton/etc/securetty with 100% similarity]
system/skeleton/etc/services [moved from fs/skeleton/etc/services with 100% similarity]
system/skeleton/etc/shadow [moved from fs/skeleton/etc/shadow with 100% similarity]
system/skeleton/home/ftp/.empty [moved from fs/skeleton/home/ftp/.empty with 100% similarity]
system/skeleton/lib/.empty [moved from fs/skeleton/lib/.empty with 100% similarity]
system/skeleton/media/.empty [moved from fs/skeleton/media/.empty with 100% similarity]
system/skeleton/mnt/.empty [moved from fs/skeleton/mnt/.empty with 100% similarity]
system/skeleton/opt/.empty [moved from fs/skeleton/opt/.empty with 100% similarity]
system/skeleton/proc/.empty [moved from fs/skeleton/proc/.empty with 100% similarity]
system/skeleton/root/.bash_history [moved from fs/skeleton/root/.bash_history with 100% similarity]
system/skeleton/root/.bash_logout [moved from fs/skeleton/root/.bash_logout with 100% similarity]
system/skeleton/root/.bash_profile [moved from fs/skeleton/root/.bash_profile with 100% similarity]
system/skeleton/root/.empty [moved from fs/skeleton/root/.empty with 100% similarity]
system/skeleton/run [moved from fs/skeleton/run with 100% similarity]
system/skeleton/sbin/.empty [moved from fs/skeleton/sbin/.empty with 100% similarity]
system/skeleton/sys/.empty [moved from fs/skeleton/sys/.empty with 100% similarity]
system/skeleton/tmp/.empty [moved from fs/skeleton/tmp/.empty with 100% similarity]
system/skeleton/usr/bin/.empty [moved from fs/skeleton/usr/bin/.empty with 100% similarity]
system/skeleton/usr/lib/.empty [moved from fs/skeleton/usr/lib/.empty with 100% similarity]
system/skeleton/usr/sbin/.empty [moved from fs/skeleton/usr/sbin/.empty with 100% similarity]
system/skeleton/var/cache [moved from fs/skeleton/var/cache with 100% similarity]
system/skeleton/var/lib/misc [moved from fs/skeleton/var/lib/misc with 100% similarity]
system/skeleton/var/lib/pcmcia [moved from fs/skeleton/var/lib/pcmcia with 100% similarity]
system/skeleton/var/lock [moved from fs/skeleton/var/lock with 100% similarity]
system/skeleton/var/log [moved from fs/skeleton/var/log with 100% similarity]
system/skeleton/var/pcmcia [moved from fs/skeleton/var/pcmcia with 100% similarity]
system/skeleton/var/run [moved from fs/skeleton/var/run with 100% similarity]
system/skeleton/var/spool [moved from fs/skeleton/var/spool with 100% similarity]
system/skeleton/var/tmp [moved from fs/skeleton/var/tmp with 100% similarity]
system/system.mk [moved from target/generic/Makefile.in with 100% similarity]
target/Makefile.in [deleted file]

index dab7787df818d5a3b9bbc7bc0b68ed518bb2c331..cce4619cdf7abeb6ec67696a0023d7d51a317044 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -419,7 +419,7 @@ endmenu
 
 source "toolchain/Config.in"
 
-source "target/generic/Config.in"
+source "system/Config.in"
 
 source "package/Config.in"
 
index dff6aeb2f38b5f6ece8265f6bf04f4fb54952121..c526fe1c104ead865bd76582fa30a26525a5c4bb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -259,7 +259,7 @@ STAMP_DIR:=$(BASE_DIR)/stamps
 BINARIES_DIR:=$(BASE_DIR)/images
 TARGET_DIR:=$(BASE_DIR)/target
 TOOLCHAIN_DIR=$(BASE_DIR)/toolchain
-TARGET_SKELETON=$(TOPDIR)/fs/skeleton
+TARGET_SKELETON=$(TOPDIR)/system/skeleton
 
 LEGAL_INFO_DIR=$(BASE_DIR)/legal-info
 REDIST_SOURCES_DIR=$(LEGAL_INFO_DIR)/sources
@@ -310,7 +310,6 @@ endif
 include package/*/*.mk
 
 include boot/common.mk
-include target/Makefile.in
 include linux/linux.mk
 
 TARGETS+=target-finalize
@@ -325,6 +324,7 @@ TARGETS+=target-generatelocales
 endif
 endif
 
+include system/system.mk
 include fs/common.mk
 
 TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
index 8c3ea82ad5ecbbb3827529fdf152f62a244ead4d..44007c70ff04424e735fe08b56bfaf5b50fbbe01 100644 (file)
@@ -11,8 +11,8 @@ There are a few ways to customize the resulting target filesystem:
   rebuild your toolchain and tools, these changes will be lost.
 
 * Create your own 'target skeleton'. You can start with the default
-  skeleton available under +fs/skeleton+ and then customize it to suit
-  your needs. The +BR2_ROOTFS_SKELETON_CUSTOM+ and
+  skeleton available under +system/skeleton+ and then customize it to
+  suit your needs. The +BR2_ROOTFS_SKELETON_CUSTOM+ and
   +BR2_ROOTFS_SKELETON_CUSTOM_PATH+ will allow you to specify the
   location of your custom skeleton. At build time, the contents of the
   skeleton are copied to output/target before any package
similarity index 99%
rename from target/generic/Config.in
rename to system/Config.in
index b8472f4e8dadd0aeabc12b88582931adbea26576..c30c6f7d3c8cc752096b52f3e21ba068306bb86e 100644 (file)
@@ -111,7 +111,7 @@ endchoice
 if BR2_ROOTFS_SKELETON_CUSTOM
 config BR2_ROOTFS_SKELETON_CUSTOM_PATH
        string "custom target skeleton path"
-       default "fs/skeleton"
+       default "system/skeleton"
        help
          Path custom target skeleton.
 endif
similarity index 100%
rename from fs/skeleton/dev/log
rename to system/skeleton/dev/log
similarity index 100%
rename from fs/skeleton/run
rename to system/skeleton/run
similarity index 100%
rename from fs/skeleton/var/log
rename to system/skeleton/var/log
similarity index 100%
rename from fs/skeleton/var/run
rename to system/skeleton/var/run
similarity index 100%
rename from fs/skeleton/var/tmp
rename to system/skeleton/var/tmp
similarity index 100%
rename from target/generic/Makefile.in
rename to system/system.mk
diff --git a/target/Makefile.in b/target/Makefile.in
deleted file mode 100644 (file)
index 915d625..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-# make sure to put everything that is board-specific before the tarroot targets
-include target/generic/Makefile.in
-