|
|
@ -376,7 +376,10 @@ case $PROJECT:$SUBPROJECT in
|
|
|
|
armhf)
|
|
|
|
armhf)
|
|
|
|
subarches="generic raspi2"
|
|
|
|
subarches="generic raspi2"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
i386|amd64|arm64|powerpc|ppc64el)
|
|
|
|
arm64)
|
|
|
|
|
|
|
|
subarches="generic dragonboard"
|
|
|
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
i386|amd64|powerpc|ppc64el)
|
|
|
|
subarches="generic"
|
|
|
|
subarches="generic"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
@ -401,6 +404,12 @@ case $PROJECT:$SUBPROJECT in
|
|
|
|
amd64)
|
|
|
|
amd64)
|
|
|
|
linux_package="linux-signed-generic"
|
|
|
|
linux_package="linux-signed-generic"
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
arm64)
|
|
|
|
|
|
|
|
if [ "$devarch" = "dragonboard" ]; then
|
|
|
|
|
|
|
|
# ugly hack til we have a metapackage
|
|
|
|
|
|
|
|
linux_package="$(apt-cache search generic-dragon410c|grep linux-image|tail -1|sed 's/ .*$//g') dragon410c-firmware"
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
# make sure all virtual filesystems are available
|
|
|
|
# make sure all virtual filesystems are available
|
|
|
@ -461,6 +470,9 @@ case $PROJECT:$SUBPROJECT in
|
|
|
|
rm -rf $TMPDIR/assets/dtbs/overlays
|
|
|
|
rm -rf $TMPDIR/assets/dtbs/overlays
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
;;
|
|
|
|
;;
|
|
|
|
|
|
|
|
dragonboard)
|
|
|
|
|
|
|
|
cp $TMPDIR/assets/dtbs/qcom/apq8016-sbc-snappy.dtb $TMPDIR/assets/dtbs/apq8016-sbc.dtb
|
|
|
|
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -495,6 +507,9 @@ EOF
|
|
|
|
if [ "$devarch" = "raspi2" ];then
|
|
|
|
if [ "$devarch" = "raspi2" ];then
|
|
|
|
tarname="raspi2.$tarname"
|
|
|
|
tarname="raspi2.$tarname"
|
|
|
|
manifestname="$devarch.$manifestname"
|
|
|
|
manifestname="$devarch.$manifestname"
|
|
|
|
|
|
|
|
elif [ "$devarch" = "dragonboard" ];then
|
|
|
|
|
|
|
|
tarname="$devarch.$tarname"
|
|
|
|
|
|
|
|
manifestname="$devarch.$manifestname"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
# create tarfile
|
|
|
|
# create tarfile
|
|
|
|
tar -c -z -f $HERE/$PREFIX.$tarname system assets hardware.yaml
|
|
|
|
tar -c -z -f $HERE/$PREFIX.$tarname system assets hardware.yaml
|
|
|
@ -523,6 +538,9 @@ EOF
|
|
|
|
snapname="$devarch.kernel.snap"
|
|
|
|
snapname="$devarch.kernel.snap"
|
|
|
|
elif [ "$devarch" = "generic" ] && [ "$ARCH" = "armhf" ];then
|
|
|
|
elif [ "$devarch" = "generic" ] && [ "$ARCH" = "armhf" ];then
|
|
|
|
metaname=canonical-bbb-linux
|
|
|
|
metaname=canonical-bbb-linux
|
|
|
|
|
|
|
|
elif [ "$devarch" = "dragonboard" ] && [ "$ARCH" = "arm64" ];then
|
|
|
|
|
|
|
|
metaname=canonical-dragon-linux
|
|
|
|
|
|
|
|
snapname="$devarch.kernel.snap"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
rm -rf $HERE/snap || true
|
|
|
|
rm -rf $HERE/snap || true
|
|
|
@ -551,6 +569,9 @@ initrd: $(ls initrd.img-*)
|
|
|
|
modules: $(ls -d lib/modules/*)
|
|
|
|
modules: $(ls -d lib/modules/*)
|
|
|
|
firmware: lib/firmware
|
|
|
|
firmware: lib/firmware
|
|
|
|
EOF
|
|
|
|
EOF
|
|
|
|
|
|
|
|
if [ -d dtbs ]; then
|
|
|
|
|
|
|
|
printf "dtbs: dtbs/ \n" >> meta/snap.yaml
|
|
|
|
|
|
|
|
fi
|
|
|
|
cd $HERE
|
|
|
|
cd $HERE
|
|
|
|
|
|
|
|
|
|
|
|
apt-get -y install ubuntu-snappy-cli
|
|
|
|
apt-get -y install ubuntu-snappy-cli
|
|
|
|