]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
support/test-pkg: move minimal.config into a separate file
authorArnout Vandecappelle <arnout@mind.be>
Fri, 21 Jul 2017 01:05:19 +0000 (03:05 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 21 Jul 2017 07:00:40 +0000 (09:00 +0200)
This minimal configuration is also very useful outside test-pkg. In
addition, it will simplify the config merge in a later patch.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
support/config-fragments/minimal.config [new file with mode: 0644]
utils/test-pkg

diff --git a/support/config-fragments/minimal.config b/support/config-fragments/minimal.config
new file mode 100644 (file)
index 0000000..0f20847
--- /dev/null
@@ -0,0 +1,6 @@
+# This config fragment disables Buildroot options that are turned on by
+# default, in order to arrive at minimal build time.
+BR2_INIT_NONE=y
+BR2_SYSTEM_BIN_SH_NONE=y
+# BR2_PACKAGE_BUSYBOX is not set
+# BR2_TARGET_ROOTFS_TAR is not set
index 7633a21e53a661967be72d088b435b694fc8bde0..25a25e2048d52835f92bd1e240af392bfbe70753 100755 (executable)
@@ -100,13 +100,7 @@ build_one() {
         return 2
     fi
 
-    cat >>"${dir}/.config" <<-_EOF_
-       BR2_INIT_NONE=y
-       BR2_SYSTEM_BIN_SH_NONE=y
-       # BR2_PACKAGE_BUSYBOX is not set
-       # BR2_TARGET_ROOTFS_TAR is not set
-       _EOF_
-    cat "${cfg}" >>"${dir}/.config"
+    cat "support/config-fragments/minimal.config" "${cfg}" >>"${dir}/.config"
 
     if ! make O="${dir}" olddefconfig > "${dir}/logfile" 2>&1; then
         return 2