Commit 282692bc184747732b9ecdfdc5ca6c57e2bb2dd4

Authored by Silvan Calarco
1 parent ef3286542e
Exists in master

diskimg: added support for aarch64 rpi target passing new option -rpi64 to rootfsinstall

Showing 1 changed file with 13 additions and 5 deletions Side-by-side Diff

platforms/diskimg/pre.inc.sh
  1 +DEVICEARCH=$ARCH
1 2 case $VARIANT in
2   - baytrail) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-baytrail"; DEVICEARCH=x86_64; MEDIA_SIZE=5120 ;;
3   - bananapi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-bpi"; DEVICEARCH=arm; MEDIA_SIZE=4192 ;;
4   - raspberrypi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-rpi"; DEVICEARCH=arm; MEDIA_SIZE=6144 ;;
5   - cubox) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-cubox" DEVICEARCH=arm; MEDIA_SIZE=4192 ;;
  3 + baytrail) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-baytrail"; MEDIA_SIZE=5120 ;;
  4 + bananapi) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-bpi"; MEDIA_SIZE=4192 ;;
  5 + cubox) MODE=rootfsinstall; ROOTFSINSTALL_ADD="-cubox"; MEDIA_SIZE=4192 ;;
6 6 livecd) MODE=usbinstall; ROOTFSINSTALL_ADD= ;;
7   - *) MODE=rootfsinstall; ROOTFSINSTALL_ADD= ; DEVICEARCH=$ARCH ;;
  7 + raspberrypi)
  8 + MODE=rootfsinstall
  9 + if [ "$ARCH" == "aarch64" ]; then
  10 + ROOTFSINSTALL_ADD="-rpi64"
  11 + else
  12 + ROOTFSINSTALL_ADD="-rpi"
  13 + fi
  14 + MEDIA_SIZE=6144 ;;
  15 + *) MODE=rootfsinstall; ROOTFSINSTALL_ADD= ;;
8 16 esac