summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorJonathan Bauer2014-03-25 15:24:04 +0100
committerJonathan Bauer2014-03-25 15:24:04 +0100
commit3d1235af060955e271be68240c0ca46bc6d81b03 (patch)
treeef02dcc4bb8476cfeef07e2df6a38b4c29d350df /remote/setup_target
parent[rootfs-stage32] /var/log/openslx in tmpfiles.d (diff)
downloadtm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.gz
tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.tar.xz
tm-scripts-3d1235af060955e271be68240c0ca46bc6d81b03.zip
[modules] new module naming convention
rename $MODULE.{conf,build} to module.{conf,build}
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target10
1 files changed, 5 insertions, 5 deletions
diff --git a/remote/setup_target b/remote/setup_target
index f9e91f96..f11de86c 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -22,8 +22,8 @@
# can process any module, as long as following requirements are met:
#
# - Modules need to have a build-script and a config file,
-# i.e. remote/module/kernel/kernel.build
-# and remote/module/kernel/kernel.conf
+# i.e. remote/module/kernel/module.build
+# and remote/module/kernel/module.conf
# as these will be read by 'process_module'.
#
# - Modules need to generate a 'build'-directory in their
@@ -73,7 +73,7 @@ read_config () {
unset $VARNAME
done
- local MODULE_CONFIG="${MODULE_DIR}/${MODULE}.conf"
+ local MODULE_CONFIG="${MODULE_DIR}/module.conf"
# sanity checks
[ ! -e "${MODULE_CONFIG}" ] && perror "Config for '$MODULE' not found."
@@ -113,7 +113,7 @@ validate_config () {
# generic function to read the build script of the current $MODULE
#
read_build () {
- local BUILD_SCRIPT="${MODULE_DIR}/${MODULE}.build"
+ local BUILD_SCRIPT="${MODULE_DIR}/module.build"
[ ! -e "${BUILD_SCRIPT}" ] && perror "Build script for specified tool not found."
@@ -430,7 +430,7 @@ process_module() {
post_copy
# Write new md5 file if not existent yet
if [ ! -f "$MD5FILE" ]; then
- md5sum "$MODULE_DIR/$MODULE".* > "$MD5FILE" || perror "Could not create $MD5FILE"
+ md5sum "$MODULE_DIR/module".* > "$MD5FILE" || perror "Could not create $MD5FILE"
fi
# Update size of target build dir
if [ -d "${TARGET_BUILD_DIR}" ]; then