mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-29 20:23:01 +02:00
Add support for firmware updates via RAUC on aarch64. The created RAUC bundle (images/infix-$BR2_ARCH.pkg) is signed with the same key used to sign the raw FIT image.
34 lines
649 B
Bash
Executable File
34 lines
649 B
Bash
Executable File
#!/bin/sh
|
|
|
|
common=$(dirname "$(readlink -f "$0")")
|
|
. $common/lib.sh
|
|
|
|
load_cfg BR2_EXTERNAL_INFIX_PATH
|
|
|
|
load_cfg BR2_ARCH
|
|
load_cfg SIGN_KEY
|
|
|
|
ixmsg "Signing SquashFS Image"
|
|
$common/sign.sh $BR2_ARCH $SIGN_KEY
|
|
|
|
ixmsg "Creating RAUC Update Bundle"
|
|
$common/mkrauc.sh $BR2_ARCH $SIGN_KEY
|
|
|
|
load_cfg DISK_IMAGE
|
|
if [ "$DISK_IMAGE" = "y" ]; then
|
|
ixmsg "Creating Disk Image"
|
|
$common/mkdisk.sh -a $BR2_ARCH
|
|
fi
|
|
|
|
load_cfg GNS3_APPLIANCE
|
|
if [ "$GNS3_APPLIANCE" = "y" ]; then
|
|
ixmsg "Creating GNS3 Appliance"
|
|
$common/mkgns3a.sh
|
|
fi
|
|
|
|
load_cfg FIT_IMAGE
|
|
if [ "$FIT_IMAGE" = "y" ]; then
|
|
ixmsg "Creating Traditional FIT Image"
|
|
$common/mkfit.sh
|
|
fi
|