-
Notifications
You must be signed in to change notification settings - Fork 1
/
bcm21553-bootimg.mk
20 lines (17 loc) · 1.06 KB
/
bcm21553-bootimg.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
LOCAL_PATH := $(call my-dir)
$(INSTALLED_RAMDISK_TARGET): $(MKBOOTFS) $(INTERNAL_RAMDISK_FILES) $(TARGET_RECOVERY_ROOT_TIMESTAMP) | $(MINIGZIP)
$(hide) mkdir -p $(TARGET_ROOT_OUT)/merge
$(hide) cp -a $(TARGET_RECOVERY_ROOT_OUT)/* $(TARGET_ROOT_OUT)/merge/
$(hide) mv $(TARGET_ROOT_OUT)/merge/default.prop $(TARGET_ROOT_OUT)/default.prop.recovery
$(hide) mv $(TARGET_ROOT_OUT)/merge/init.rc $(TARGET_ROOT_OUT)/recovery.rc
$(hide) cp -a $(TARGET_ROOT_OUT)/merge/* $(TARGET_ROOT_OUT)/
$(hide) rm -r $(TARGET_ROOT_OUT)/merge
$(call pretty,"Target ram disk [boot & recovery merged]: $@")
$(hide) $(MKBOOTFS) $(TARGET_ROOT_OUT) | $(MINIGZIP) > $@
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES)
$(call pretty,"Target boot image: $@")
$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) $(BOARD_MKBOOTIMG_ARGS) --output $@
$(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)
@echo -e ${CL_CYN}"Made boot image: $@"${CL_RST}
$(INSTALLED_RECOVERYIMAGE_TARGET): $(INSTALLED_BOOTIMAGE_TARGET)
$(ACP) $(INSTALLED_BOOTIMAGE_TARGET) $@