Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 364bdd80 authored by Ahmed Harhash's avatar Ahmed Harhash Committed by Rohit Sekhar
Browse files

flash: Support macOS

* From r33.0.3
parent 57607b48
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ INCLUDE_IN_IMG_PACKAGE += $(LOCAL_PATH)/factory.common
INCLUDE_IN_IMG_PACKAGE += $(LOCAL_PATH)/$(TARGET_DEVICE)/flash_$(TARGET_DEVICE)_factory.sh
INCLUDE_IN_IMG_PACKAGE += $(LOCAL_PATH)/fastboot/bin-msys
INCLUDE_IN_IMG_PACKAGE += $(LOCAL_PATH)/fastboot/bin-linux-x86
INCLUDE_IN_IMG_PACKAGE += $(LOCAL_PATH)/fastboot/bin-darwin
endif

$(INSTALLED_IMG_PACKAGE_TARGET): $(INCLUDE_IN_IMG_PACKAGE) $(INSTALLED_RADIOIMAGE_TARGET) $(SOONG_ZIP)
+6 −2
Original line number Diff line number Diff line
@@ -224,12 +224,16 @@ os_checks() {
      FASTBOOT_BIN="${ROOT_DIR}/bin-linux-x86/fastboot"
      ;;
    msys|MINGW*)
      echo "INFO: You are using MinGW on Windows"
      echo "INFO: You are using MinGW on Windows."
      FASTBOOT_BIN="${ROOT_DIR}/bin-msys/fastboot.exe"
      ;;
    Darwin)
      echo "INFO: You are using MacOS."
      FASTBOOT_BIN="${ROOT_DIR}/bin-darwin/fastboot"
      ;;
    *)
      echo "ERROR: Unsupported operating system (${OSTYPE})."
      echo "ERROR: Only GNU/Linux, and MinGW on Windows are currently supported."
      echo "ERROR: Only GNU/Linux, MacOS and MinGW on Windows are currently supported."
      abort_now
      ;;
  esac
+3.13 MiB

File added.

No diff preview for this file type.

+4.15 MiB

File added.

No diff preview for this file type.

+1.56 MiB

File added.

No diff preview for this file type.

Loading