From b9575e86da7268d2ea8b740e380de8c6a30ab7a5 Mon Sep 17 00:00:00 2001 From: Robert Nelson <robertcnelson@gmail.com> Date: Thu, 29 May 2014 10:54:49 -0500 Subject: [PATCH] chroot: create tarball when chroot_tarball is enabled Signed-off-by: Robert Nelson <robertcnelson@gmail.com> --- configs/bb.org-debian-stable.conf | 1 + configs/eewiki_bare_debian_stable_armel.conf | 1 + configs/eewiki_bare_debian_stable_armhf.conf | 1 + configs/eewiki_minfs_debian_stable_armel.conf | 1 + configs/eewiki_minfs_debian_stable_armhf.conf | 1 + configs/eewiki_minfs_ubuntu_stable_armhf.conf | 1 + configs/machinekit-debian-stable.conf | 1 + configs/rcn-ee_console_debian_stable_armhf.conf | 1 + configs/rcn-ee_console_debian_testing_armhf.conf | 1 + configs/rcn-ee_console_ubuntu_stable_armhf.conf | 1 + configs/rcn-ee_console_ubuntu_testing_armhf.conf | 1 + configs/template.conf | 1 + scripts/chroot.sh | 7 +++++++ 13 files changed, 19 insertions(+) diff --git a/configs/bb.org-debian-stable.conf b/configs/bb.org-debian-stable.conf index f21bd6092..a507f1126 100644 --- a/configs/bb.org-debian-stable.conf +++ b/configs/bb.org-debian-stable.conf @@ -37,3 +37,4 @@ chroot_hook="" chroot_script="beagleboard.org.sh" chroot_uenv_txt="beagleboard.org.txt" chroot_flasher_uenv_txt="beagleboard.org-flasher.txt" +chroot_tarball="enable" diff --git a/configs/eewiki_bare_debian_stable_armel.conf b/configs/eewiki_bare_debian_stable_armel.conf index 85f19a777..dd2f39267 100644 --- a/configs/eewiki_bare_debian_stable_armel.conf +++ b/configs/eewiki_bare_debian_stable_armel.conf @@ -18,3 +18,4 @@ rfs_opt_scripts="https://github.com/RobertCNelson/boot-scripts" rfs_strip_locales="enable" # chroot_very_small_image="enable" +chroot_tarball="enable" diff --git a/configs/eewiki_bare_debian_stable_armhf.conf b/configs/eewiki_bare_debian_stable_armhf.conf index 8e7cdf7a1..f38474886 100644 --- a/configs/eewiki_bare_debian_stable_armhf.conf +++ b/configs/eewiki_bare_debian_stable_armhf.conf @@ -18,3 +18,4 @@ rfs_opt_scripts="https://github.com/RobertCNelson/boot-scripts" rfs_strip_locales="enable" # chroot_very_small_image="enable" +chroot_tarball="enable" diff --git a/configs/eewiki_minfs_debian_stable_armel.conf b/configs/eewiki_minfs_debian_stable_armel.conf index 83cc14752..813d85ded 100644 --- a/configs/eewiki_minfs_debian_stable_armel.conf +++ b/configs/eewiki_minfs_debian_stable_armel.conf @@ -17,3 +17,4 @@ rfs_startup_scripts="enable" rfs_opt_scripts="https://github.com/RobertCNelson/boot-scripts" rfs_strip_locales="enable" # +chroot_tarball="enable" diff --git a/configs/eewiki_minfs_debian_stable_armhf.conf b/configs/eewiki_minfs_debian_stable_armhf.conf index c75118d91..9b63fc823 100644 --- a/configs/eewiki_minfs_debian_stable_armhf.conf +++ b/configs/eewiki_minfs_debian_stable_armhf.conf @@ -17,3 +17,4 @@ rfs_startup_scripts="enable" rfs_opt_scripts="https://github.com/RobertCNelson/boot-scripts" rfs_strip_locales="enable" # +chroot_tarball="enable" diff --git a/configs/eewiki_minfs_ubuntu_stable_armhf.conf b/configs/eewiki_minfs_ubuntu_stable_armhf.conf index ce9c5cf96..338967ab4 100644 --- a/configs/eewiki_minfs_ubuntu_stable_armhf.conf +++ b/configs/eewiki_minfs_ubuntu_stable_armhf.conf @@ -17,3 +17,4 @@ rfs_startup_scripts="enable" rfs_opt_scripts="https://github.com/RobertCNelson/boot-scripts" rfs_strip_locales="enable" # +chroot_tarball="enable" diff --git a/configs/machinekit-debian-stable.conf b/configs/machinekit-debian-stable.conf index dccffcd62..b540c4a0c 100644 --- a/configs/machinekit-debian-stable.conf +++ b/configs/machinekit-debian-stable.conf @@ -37,3 +37,4 @@ chroot_hook="machinekit/chroot_hook.sh" chroot_script="beagleboard.org.sh" chroot_uenv_txt="machinekit.txt" chroot_flasher_uenv_txt="eMMC-flasher.txt" +chroot_tarball="enable" diff --git a/configs/rcn-ee_console_debian_stable_armhf.conf b/configs/rcn-ee_console_debian_stable_armhf.conf index a62c71bd5..1a4f612aa 100644 --- a/configs/rcn-ee_console_debian_stable_armhf.conf +++ b/configs/rcn-ee_console_debian_stable_armhf.conf @@ -19,4 +19,5 @@ rfs_strip_locales="enable" # chroot_KERNEL_HTTP_DIR="https://rcn-ee.net/deb/wheezy-armhf/v3.14.4-armv7-x6/ https://rcn-ee.net/deb/wheezy-armhf/v3.8.13-bone54/" chroot_COPY_SETUP_SDCARD="enable" +chroot_tarball="enable" diff --git a/configs/rcn-ee_console_debian_testing_armhf.conf b/configs/rcn-ee_console_debian_testing_armhf.conf index 00e9b30f3..8daf98d1d 100644 --- a/configs/rcn-ee_console_debian_testing_armhf.conf +++ b/configs/rcn-ee_console_debian_testing_armhf.conf @@ -20,4 +20,5 @@ rfs_strip_locales="enable" # chroot_KERNEL_HTTP_DIR="https://rcn-ee.net/deb/jessie-armhf/v3.14.4-armv7-x6/ https://rcn-ee.net/deb/jessie-armhf/v3.8.13-bone54/" chroot_COPY_SETUP_SDCARD="enable" +chroot_tarball="enable" diff --git a/configs/rcn-ee_console_ubuntu_stable_armhf.conf b/configs/rcn-ee_console_ubuntu_stable_armhf.conf index 2c0bb9ec2..99a916869 100644 --- a/configs/rcn-ee_console_ubuntu_stable_armhf.conf +++ b/configs/rcn-ee_console_ubuntu_stable_armhf.conf @@ -19,4 +19,5 @@ rfs_strip_locales="enable" # chroot_KERNEL_HTTP_DIR="https://rcn-ee.net/deb/trusty-armhf/v3.14.4-armv7-x6/ https://rcn-ee.net/deb/trusty-armhf/v3.8.13-bone54/" chroot_COPY_SETUP_SDCARD="enable" +chroot_tarball="enable" diff --git a/configs/rcn-ee_console_ubuntu_testing_armhf.conf b/configs/rcn-ee_console_ubuntu_testing_armhf.conf index 8541a40c0..acb464763 100644 --- a/configs/rcn-ee_console_ubuntu_testing_armhf.conf +++ b/configs/rcn-ee_console_ubuntu_testing_armhf.conf @@ -20,4 +20,5 @@ rfs_strip_locales="enable" # chroot_KERNEL_HTTP_DIR="https://rcn-ee.net/deb/utopic-armhf/v3.14.4-armv7-x6/ https://rcn-ee.net/deb/utopic-armhf/v3.8.13-bone54/" chroot_COPY_SETUP_SDCARD="enable" +chroot_tarball="enable" diff --git a/configs/template.conf b/configs/template.conf index 793a4abbe..75e953c75 100644 --- a/configs/template.conf +++ b/configs/template.conf @@ -44,4 +44,5 @@ rfs_startup_scripts="enable" rfs_opt_scripts="https://github.com/RobertCNelson/boot-scripts" rfs_strip_locales="enable" ## +chroot_tarball="enable" diff --git a/scripts/chroot.sh b/scripts/chroot.sh index 2150b8894..9be095fff 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -882,4 +882,11 @@ cd ${DIR}/ ls -lh ${DIR}/deploy/${export_filename}/${deb_arch}-rootfs-${deb_distribution}-${deb_codename}.tar sudo chown -R ${USER}:${USER} ${DIR}/deploy/${export_filename}/ + +if [ "x${chroot_tarball}" = "xenable" ] ; then + echo "Compressing ${export_filename}" + cd ${DIR}/deploy/ + tar cvf ${export_filename}.tar ./${export_filename} + cd ${DIR}/ +fi # -- GitLab