summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2010-03-18 10:55:53 +0100
committerLuotao Fu <l.fu@pengutronix.de>2010-03-18 10:56:00 +0100
commit759dd85a407e0c080d1d262ea8deee47615acf7e (patch)
treed26119529be0641bd02b44a14e21771162c7885c /tests
parent5c3328ebe6d7a771bab958da3f95cb234cba0560 (diff)
downloadptxdist-759dd85a407e0c080d1d262ea8deee47615acf7e.tar.gz
ptxdist-759dd85a407e0c080d1d262ea8deee47615acf7e.tar.xz
[ptxdist] fix exclude pattern while building environment
The exclude pattern in the scripts for barebox/uboot-v2 environment creation is broken. It will include the config.in template file and all backup files in Emacs or vim style. Fix this so that we won't find things like /env/bin/config.in or /env/config.in~ on the target after running "test setenv" Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/make_barebox_env3
-rwxr-xr-xtests/make_uboot_v2_env3
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/make_barebox_env b/tests/make_barebox_env
index f49445519..84b069497 100755
--- a/tests/make_barebox_env
+++ b/tests/make_barebox_env
@@ -8,7 +8,8 @@ tar -C "${PTXDIST_PLATFORMCONFIGDIR}/barebox-env/" -c . \
--exclude .svn \
--exclude .pc \
--exclude .git \
- --exclude "${PTXDIST_PLATFORMCONFIGDIR}/barebox-env/config.in" \
+ --exclude "config.in" \
+ --exclude "*/*~" \
| tar -C "${ENVTMPDIR}" -x
${PTXDIST_SYSROOT_HOST}/bin/bareboxenv -s "${ENVTMPDIR}" "${IMAGEDIR}/barebox-environment"
diff --git a/tests/make_uboot_v2_env b/tests/make_uboot_v2_env
index f436ae3b4..8dad3d898 100755
--- a/tests/make_uboot_v2_env
+++ b/tests/make_uboot_v2_env
@@ -8,7 +8,8 @@ tar -C "${PTXDIST_PLATFORMCONFIGDIR}/u-boot-env/" -c . \
--exclude .svn \
--exclude .pc \
--exclude .git \
- --exclude "${PTXDIST_PLATFORMCONFIGDIR}/u-boot-env/config.in" \
+ --exclude "config.in" \
+ --exclude "*/*~" \
| tar -C "${ENVTMPDIR}" -x
${PTXDIST_SYSROOT_HOST}/bin/ubootenv -s "${ENVTMPDIR}" "${IMAGEDIR}/u-boot-v2-environment"