Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
Zvikomborero VIncent Zvikaramba | 27c5fc1 | 2016-08-13 23:54:58 -0400 | [diff] [blame^] | 3 | ifeq ($(TARGET_DEVICE),gprimeltecan) |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 4 | ## Build and run dtbtool |
| 5 | INSTALLED_DTIMAGE_TARGET := $(LOCAL_PATH)/dt.img |
| 6 | |
| 7 | ifneq ($(TARGET_KERNEL_ARCH),) |
| 8 | KERNEL_ARCH := $(TARGET_KERNEL_ARCH) |
| 9 | else |
| 10 | KERNEL_ARCH := $(TARGET_ARCH) |
| 11 | endif |
| 12 | ## Overload bootimg generation: Same as the original, + --dt arg |
| 13 | $(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(INSTALLED_DTIMAGE_TARGET) |
| 14 | $(call pretty,"Target boot image: $@") |
| 15 | $(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) \ |
| 16 | --base $(BOARD_KERNEL_BASE) --pagesize $(BOARD_KERNEL_PAGESIZE) --dt $(INSTALLED_DTIMAGE_TARGET) --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --output $@ |
| 17 | # --second_offset $(BOARD_SECOND_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) \ |
| 18 | $(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw) |
| 19 | @echo -e ${CL_CYN}"Made boot image: $@"${CL_RST} |
| 20 | |
| 21 | ## Overload recoveryimg generation: Same as the original, + --dt arg |
| 22 | $(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) \ |
| 23 | $(recovery_ramdisk) \ |
| 24 | $(recovery_kernel) |
| 25 | @echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST} |
| 26 | $(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) \ |
| 27 | --base $(BOARD_KERNEL_BASE) --pagesize $(BOARD_KERNEL_PAGESIZE) --dt $(INSTALLED_DTIMAGE_TARGET) --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --output $@ |
| 28 | # --second_offset $(BOARD_SECOND_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET) \ |
| 29 | $(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw) |
| 30 | @echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST} |
| 31 | |
Zvikomborero VIncent Zvikaramba | 27c5fc1 | 2016-08-13 23:54:58 -0400 | [diff] [blame^] | 32 | endif |
Zvikomborero VIncent Zvikaramba | a25011a | 2016-07-21 16:32:35 -0400 | [diff] [blame] | 33 | |