common: separate handling of aarch64 and amd64 images, for now

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-02-28 11:33:35 +01:00
parent 759f8aa589
commit 046b15fbc0
+13 -9
View File
@@ -4,14 +4,18 @@
common=$(dirname "$(readlink -f "$0")")
imgdir=$1
arch=$2
signkey=$3
# Temporary, separate handling of aarch64 and amd64 images.
# Best would be to have the same for both, i.e., boot GNS3
# with u-boot.
if [ "$BR2_ARCH" = "aarch64" ]; then
# shellcheck disable=SC2034
imgdir=$1
arch=$2
signkey=$3
$common/sign.sh $arch $signkey
$common/mkfit.sh
$common/mkmmc.sh
if [ "$BR2_ARCH" = "x86_64" ]; then
"$common/mkgns3a.sh"
$common/sign.sh $arch $signkey
$common/mkfit.sh
$common/mkmmc.sh
elif [ "$BR2_ARCH" = "x86_64" ]; then
"$common/mkgns3a.sh"
fi