tmore variables for zuper debugging - arm-sdk - os build toolkit for various embedded devices HTML git clone https://git.parazyd.org/arm-sdk DIR Log DIR Files DIR Refs DIR Submodules DIR README DIR LICENSE --- DIR commit 5bf8a3a10ce397dd3ef13f71600794b2194ec7ca DIR parent 7edf6ca1dcdbaa3b830e48fbba2cea117f5a6bff HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 21 Apr 2016 18:06:49 +0200 more variables for zuper debugging Diffstat: M arm/init-arm | 2 +- M arm/profiles/common-devuan | 2 +- M sdk | 8 ++++++-- 3 files changed, 8 insertions(+), 4 deletions(-) --- DIR diff --git a/arm/init-arm b/arm/init-arm t@@ -46,7 +46,7 @@ init() { common="$R/arm/profiles/common-${os}" [[ -f $common ]] || { error "No valid distro specified"; return 1 } - [[-f $arm_build_device ]] || { error "No valid device specified"; return 1 } + [[ -f $arm_build_device ]] || { error "No valid device specified"; return 1 } source ${arm_build_device} } DIR diff --git a/arm/profiles/common-devuan b/arm/profiles/common-devuan t@@ -249,7 +249,7 @@ ${device_name}-thirdstage() { sudo -E mount -o bind /dev/pts ${strapdir}/dev/pts && notice "Mounted dev/pts..." notice "Chrooting..." - LANG=C sudo -E chroot $strapdir /third-stage + LANG=C sudo -E chroot ${strapdir} /third-stage [[ $? = 0 ]] || { error "Failed at third-stage" return 1 DIR diff --git a/sdk b/sdk t@@ -39,8 +39,12 @@ vars+=(os mirror release section version) # global variables vars+=(R sdk_loaded) # script variables -vars+=(strapdir writebase device_name image_name) -vars+=(loopdevice mappdevice ) +vars+=(workdir strapdir writebase) +vars+=(loopdevice mappdevice) +vars+=(arm_build_device) +# script locals +vars+=(device_name image_name arch size) +vars+=(inittab) # we assume source sdk is always run from the source dir # which is the "root" of the program, $R, or env DEVUAN_SDK