-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootimg.mk
17 lines (14 loc) · 941 Bytes
/
bootimg.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LOCAL_PATH := $(call my-dir)
FLASH_IMAGE_TARGET ?= $(PRODUCT_OUT)/recovery.tar
ifdef TARGET_PREBUILT_DTB
BOARD_MKBOOTIMG_ARGS += --dt $(TARGET_PREBUILT_DTB)
endif
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) $(recovery_kernel) $(recovery_ramdisk)
@echo -e ${CL_GRN}"----- Making recovery image ------"${CL_RST}
$(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@ --ramdisk $(recovery_ramdisk)
@echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST}
@echo -e ${CL_GRN}"----- Lying about SEAndroid state to Samsung(lyf) bootloader ------"${CL_RST}
$(hide) echo -n "SEANDROIDENFORCE" >> $(INSTALLED_RECOVERYIMAGE_TARGET)
$(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
$(hide) tar -C $(PRODUCT_OUT) -H ustar -c recovery.img > $(FLASH_IMAGE_TARGET)
@echo -e ${CL_CYN}"Made Odin flashable recovery tar: ${FLASH_IMAGE_TARGET}"${CL_RST}