blob: 2d7bd40438f4f0e319a1057fad19b96327c51609 [file] [log] [blame]
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -04001LOCAL_PATH := $(call my-dir)
2
3## Build and run dtbtool
4INSTALLED_DTIMAGE_TARGET := $(LOCAL_PATH)/dt.img
5
6ifneq ($(TARGET_KERNEL_ARCH),)
7KERNEL_ARCH := $(TARGET_KERNEL_ARCH)
8else
9KERNEL_ARCH := $(TARGET_ARCH)
10endif
11## Overload bootimg generation: Same as the original, + --dt arg
12$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES) $(INSTALLED_DTIMAGE_TARGET)
13 $(call pretty,"Target boot image: $@")
14 $(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) \
Zvikomborero VIncent Zvikarambab88b6352016-08-21 23:30:25 -040015 --base $(BOARD_KERNEL_BASE) --pagesize $(BOARD_KERNEL_PAGESIZE) \
16 --dt $(INSTALLED_DTIMAGE_TARGET) --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --output $@
17 @echo -e ${CL_CYN}"Making image SEAndroid Enforcing..."${CL_RST}
18 echo -n "SEANDROIDENFORCE" >> $@
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040019 $(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
20 @echo -e ${CL_CYN}"Made boot image: $@"${CL_RST}
21
22## Overload recoveryimg generation: Same as the original, + --dt arg
23$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) $(INSTALLED_DTIMAGE_TARGET) \
24 $(recovery_ramdisk) \
25 $(recovery_kernel)
26 @echo -e ${CL_CYN}"----- Making recovery image ------"${CL_RST}
27 $(hide) $(MKBOOTIMG) $(INTERNAL_RECOVERYIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) \
Zvikomborero VIncent Zvikarambab88b6352016-08-21 23:30:25 -040028 --base $(BOARD_KERNEL_BASE) --pagesize $(BOARD_KERNEL_PAGESIZE) \
29 --dt $(INSTALLED_DTIMAGE_TARGET) --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --output $@
30 @echo -e ${CL_CYN}"Making image SEAndroid Enforcing..."${CL_RST}
31 echo -n "SEANDROIDENFORCE" >> $@
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040032 $(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
33 @echo -e ${CL_CYN}"Made recovery image: $@"${CL_RST}
34
Zvikomborero VIncent Zvikarambaa25011a2016-07-21 16:32:35 -040035