diff options
author | Simon Rettberg | 2019-11-26 15:10:29 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-11-26 15:10:29 +0100 |
commit | 49bb18e8d8728aa177095adade1a5ead690c9151 (patch) | |
tree | e5b48da78da656c29b8812ba86e24ab9e00bd3ad /core/modules/busybox | |
parent | [rootfs-stage32] Add missing quotes (diff) | |
download | mltk-49bb18e8d8728aa177095adade1a5ead690c9151.tar.gz mltk-49bb18e8d8728aa177095adade1a5ead690c9151.tar.xz mltk-49bb18e8d8728aa177095adade1a5ead690c9151.zip |
[*] cd <...> || perror --> cde <...>
Diffstat (limited to 'core/modules/busybox')
-rw-r--r-- | core/modules/busybox/module.build | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/modules/busybox/module.build b/core/modules/busybox/module.build index 9214a484..a6954efd 100644 --- a/core/modules/busybox/module.build +++ b/core/modules/busybox/module.build @@ -4,7 +4,7 @@ fetch_source() { if ! [ -d "src/.git" ]; then git clone --depth 1 "${REQUIRED_GIT}" --branch "$REQUIRED_BRANCH" src || perror "Could not clone busybox git" fi - cd src || perror "Could not cd to src" + cde src # Patch image centering and background filling if not patched yet if ! grep -q "bcenter_image" "miscutils/fbsplash.c"; then git apply "${MODULE_DIR}/fbsplash-center.patch" || perror "Could not apply busybox patch for fbsplash image centering" @@ -19,19 +19,17 @@ fetch_source() { if [ -n "$CC" ]; then sed -i -r 's/^CC\s*=\s*(\S)/CC ?= \1/' Makefile || perror "Could not patch Makefile" fi - cd .. || perror "cd .. failed" } build() { cp "${MODULE_DIR}/openslx-busybox-config" "src/.config" - cd src || perror "Could not cd to src" + cde src yes '' | make oldconfig 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 -f "$MODULE_BUILD_DIR/bin/mount" "$MODULE_BUILD_DIR/bin/umount" "$MODULE_BUILD_DIR/bin/bash" - cd - &> /dev/null } post_copy() { |