diff options
author | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
---|---|---|
committer | Jonathan Bauer | 2014-03-25 15:24:04 +0100 |
commit | 3d1235af060955e271be68240c0ca46bc6d81b03 (patch) | |
tree | ef02dcc4bb8476cfeef07e2df6a38b4c29d350df /remote/modules/busybox | |
parent | [rootfs-stage32] /var/log/openslx in tmpfiles.d (diff) | |
download | tm-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/modules/busybox')
-rw-r--r-- | remote/modules/busybox/module.build | 26 | ||||
-rw-r--r-- | remote/modules/busybox/module.conf | 9 |
2 files changed, 35 insertions, 0 deletions
diff --git a/remote/modules/busybox/module.build b/remote/modules/busybox/module.build new file mode 100644 index 00000000..727a334c --- /dev/null +++ b/remote/modules/busybox/module.build @@ -0,0 +1,26 @@ + +fetch_source() { + git clone "${REQUIRED_GIT}" src || perror "Could not clone busybox git" + cd src || perror "Could not cd to src" + git checkout "$REQUIRED_BRANCH" || perror "Could not checkout requested branch" + # Patch image centering if not patched yet + if ! grep -q "bcenter_image" "miscutils/fbsplash.c"; then + git apply "../fbsplash-center.patch" || perror "Could not apply busybox patch for fbsplash image centering" + fi + cd .. || perror "cd .. failed" +} + +build() { + cp "openslx-busybox-config" "src/.config" + cd src || perror "Could not cd to src" + pinfo "Running make (if this hangs, check for unset options, ie. when you increased the REQUIRED_BRANCH)" + make || perror "failed." + pinfo "Running make install" + make CONFIG_PREFIX="$MODULE_BUILD_DIR" install || perror "failed" + rm "$MODULE_BUILD_DIR/bin/mount" "$MODULE_BUILD_DIR/bin/umount" "$MODULE_BUILD_DIR/bin/bash" + cd - &> /dev/null +} + +post_copy() { + : +} diff --git a/remote/modules/busybox/module.conf b/remote/modules/busybox/module.conf new file mode 100644 index 00000000..d2536ac9 --- /dev/null +++ b/remote/modules/busybox/module.conf @@ -0,0 +1,9 @@ +REQUIRED_GIT="git://git.busybox.net/busybox" +REQUIRED_BRANCH="1_22_1" +REQUIRED_BINARIES="busybox" +REQUIRED_DIRECTORIES=" + /bin + /sbin + /usr/bin + /usr/sbin +" |