aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-10-13 06:29:39 -0500
committerDan Murphy <dmurphy@ti.com>2020-10-13 06:29:57 -0500
commitf8073e67c19a409323fdce957f55680548967780 (patch)
tree270612810640a7bacaac5e83118778fd5fa9b7e7
parent3f36f66594d7905f7b97bc7870931173fd2466bd (diff)
downloadlinux-dt-f8073e67c19a409323fdce957f55680548967780.tar.gz
system_test: Add build label as an argument for naming modules
Signed-off-by: Dan Murphy <dmurphy@ti.com>
-rwxr-xr-xsystem_test/build_system_test.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/system_test/build_system_test.sh b/system_test/build_system_test.sh
index f24aea8..6a6bc0b 100755
--- a/system_test/build_system_test.sh
+++ b/system_test/build_system_test.sh
@@ -9,6 +9,8 @@ ARM_DT_PATH="arch/arm/boot/dts"
TMP_PREFIX=systest_builds$$
TMP_TEMPLATE="$TMP_PREFIX"_XXXXX.tmp
+BUILD_LABEL=""
+
function usage {
cat << EOF
@@ -25,6 +27,7 @@ Optional arguements:
an enviroment variable
-o - DT overlay target directory
-w - Working directory for the test scripts.
+ -l - Build label or tag to use for modules output.
Example:
./build_system_test.sh -k ~/linux_kernel/upstream/ -b ~/Desktop/build_out
@@ -153,7 +156,11 @@ function copy_needed_files() {
cp -v ${KERNEL_OUT}/${ARM_DT_PATH}/*.dtb ${BASE_OUTPUT_DIR}"/"${TESTSUITE}"/device_tree/."
cp -v ${KERNEL_OUT}/${ARM_DT_PATH}/*.dtbo ${BASE_OUTPUT_DIR}"/"${TESTSUITE}"/device_tree/."
- cp -v $TARBALL ${BASE_OUTPUT_DIR}"/"${TESTSUITE}"/modules/"${TESTSUITE}_modules.tar
+ if [ ${BUILD_LABEL} = "" ]; then
+ cp -v $TARBALL ${BASE_OUTPUT_DIR}"/"${TESTSUITE}"/modules/"${TESTSUITE}_modules.tar
+ else
+ cp -v $TARBALL ${BASE_OUTPUT_DIR}"/"${TESTSUITE}"/modules/"${BUILD_LABEL}_modules.tar
+ fi
fi
cp -v ${KERNEL_OUT}/.config ${BASE_OUTPUT_DIR}"/"${TESTSUITE}"/built_defconfig.txt"
}
@@ -170,7 +177,7 @@ function copy_overlay_files() {
cp -v ${OVERLAY_DIR}/*.dtbo ${BASE_OUTPUT_DIR}"/"${TESTSUITE}/device_tree/.
}
-while getopts "a:k:t:w:b:d:o:" OPTION
+while getopts "a:k:t:w:b:d:o:l:" OPTION
do
case $OPTION in
a)
@@ -187,6 +194,8 @@ do
DEFCONFIG_BASE=$OPTARG;;
o)
OVERLAY_BASE_DIR=$OPTARG;;
+ l)
+ BUILD_LABEL=$OPTARG;;
?)
usage
exit;;