Skip to content

Commit

Permalink
build.img: tag arm64 added in filenames for 64bit mages
Browse files Browse the repository at this point in the history
  • Loading branch information
mkreisl committed Jan 16, 2024
1 parent 087d5eb commit 94f23ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion build.img
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,11 @@ for dir in $(find build/ -mindepth 1 -maxdepth 1 -type d | sort); do
export config_platform_branch=$opt_arch
export config_branch=${opt_arch##*-}

export IMGNAME=${config_img_name}_$(date +%Y.%m.%d)_$(basename $dir).img
case ${config_distro_arch} in
arm64) export config_arch="${config_distro_arch}_" ;;
*) export config_arch='' ;;
esac
export IMGNAME=${config_img_name}_$(date +%Y.%m.%d)_${config_arch}$(basename $dir | sed "s/-64//g").img

touch $XBIANPKGDIR/build.~lock
trap "kill_gitbuilder; sync; clean_tmp; clean_all; clean_loopd; rm -f $XBIANPKGDIR/build.~lock" EXIT TERM
Expand Down
8 changes: 4 additions & 4 deletions xbian-build-img/hooks.d/post-img.d/xbian-files4noobs
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@ if [ -n $config_fstype_boot ] && ! echo $IMGNAME | grep -qE "devel|staging|test|

(
cd ..
dd if=/dev/mapper/${loopd}p2 | xz --threads=0 -z > xbianroot-$config_platform.xz
sha512sum xbianroot-$config_platform.xz > xbianroot-$config_platform.xz.sha512
dd if=/dev/mapper/${loopd}p2 | xz --threads=0 -z > xbianroot-${config_arch}${config_platform}.xz
sha512sum xbianroot-${config_arch}${config_platform}.xz > xbianroot-${config_arch}${config_platform}.xz.sha512
)

mkdir -p ./boot
mount /dev/mapper/${loopd}p1 ./boot

(
cd ./boot
tar -cJf ../../xbianboot-$config_platform.tar.xz *
tar -cJf ../../xbianboot-${config_arch}${config_platform}.tar.xz *
cd ../..
sha512sum xbianboot-$config_platform.tar.xz > xbianboot-$config_platform.tar.xz.sha512
sha512sum xbianboot-${config_arch}${config_platform}.tar.xz > xbianboot-${config_arch}${config_platform}.tar.xz.sha512
)

umount ./boot
Expand Down

0 comments on commit 94f23ca

Please sign in to comment.