platform.sh 575 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #
  2. # Copyright (C) 2014 OpenWrt.org
  3. #
  4. . /lib/socfpga.sh
  5. RAMFS_COPY_BIN="/bin/mkdir /bin/touch /bin/mknod"
  6. RAMFS_COPY_DATA=/lib/socfpga.sh
  7. platform_check_image() {
  8. local board=$(socfpga_board_name)
  9. [ "$#" -gt 1 ] && return 1
  10. case "$board" in
  11. "socfpga-sockit")
  12. platform_do_check_sockit "$ARGV"
  13. return 0;
  14. ;;
  15. esac
  16. echo "Sysupgrade is not yet supported on $board."
  17. return 1
  18. }
  19. platform_do_upgrade() {
  20. local board=$(socfpga_board_name)
  21. case "$board" in
  22. "socfpga-sockit")
  23. platform_do_upgrade_sockit "$ARGV"
  24. ;;
  25. *)
  26. default_do_upgrade "$ARGV"
  27. ;;
  28. esac
  29. }