|
|
|
@ -494,9 +494,11 @@ case $IMAGEFORMAT in
|
|
|
|
|
# classic images
|
|
|
|
|
|
|
|
|
|
# Certain models have different names but are built from the same source gadget tree
|
|
|
|
|
BRANCH="classic"
|
|
|
|
|
case $MODEL in
|
|
|
|
|
pi-arm64|pi3-arm64)
|
|
|
|
|
pi|pi-arm64|pi3-arm64)
|
|
|
|
|
MODEL=pi
|
|
|
|
|
BRANCH="classic-22.04"
|
|
|
|
|
;;
|
|
|
|
|
intel-iot)
|
|
|
|
|
MODEL=pc
|
|
|
|
@ -515,7 +517,6 @@ case $IMAGEFORMAT in
|
|
|
|
|
# We need to look in two places for the gadget tree:
|
|
|
|
|
# - Launchpad hosted gadgets will be in the snap-gadget repo
|
|
|
|
|
# - Github hosted gadgets are mirrored into a github-mirror repo
|
|
|
|
|
BRANCH="classic"
|
|
|
|
|
git clone git://git.launchpad.net/~canonical-foundations/snap-$MODEL/+git/snap-$MODEL -b $BRANCH config/$PREFIX-gadget || git clone git://git.launchpad.net/~canonical-foundations/snap-$MODEL/+git/github-mirror -b $BRANCH config/$PREFIX-gadget || git clone git://git.launchpad.net/~canonical-foundations/snap-$MODEL/+git/github-mirror-$ARCH -b $BRANCH config/$PREFIX-gadget
|
|
|
|
|
|
|
|
|
|
echo "IMAGEFORMAT=$IMAGEFORMAT" >> config/common
|
|
|
|
|