platform.sh 474 B

123456789101112131415161718192021222324252627
  1. PART_NAME=firmware
  2. REQUIRE_IMAGE_METADATA=1
  3. platform_check_image() {
  4. return 0
  5. }
  6. platform_pre_upgrade() {
  7. local board=$(board_name)
  8. case "$board" in
  9. BTHOMEHUBV2B|BTHOMEHUBV3A|BTHOMEHUBV5A|P2812HNUF* )
  10. nand_do_upgrade $1
  11. ;;
  12. esac
  13. }
  14. # use default for platform_do_upgrade()
  15. disable_watchdog() {
  16. killall watchdog
  17. ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && {
  18. echo 'Could not disable watchdog'
  19. return 1
  20. }
  21. }
  22. append sysupgrade_pre_upgrade disable_watchdog