-
Notifications
You must be signed in to change notification settings - Fork 0
/
custombootimg.mk
executable file
·23 lines (20 loc) · 1.28 KB
/
custombootimg.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
MKBOOTIMG_BIN := out/host/linux-x86/bin/mkbootimg
$(INSTALLED_RECOVERYIMAGE_TARGET): $(MKBOOTIMG) \
$(recovery_ramdisk) \
$(recovery_kernel)
@echo ----- Creating ramdisk ------
#rm -f out/target/product/v2awifi/recovery/root/init
#cp device/samsung/v2awifi/recovery/init out/target/product/v2awifi/recovery/root/init
chmod 644 out/target/product/v2awifi/recovery/root/init.rc
chmod 644 out/target/product/v2awifi/recovery/root/default.prop
chmod 644 out/target/product/v2awifi/recovery/root/init.recovery.universal5420.rc
(cd out/target/product/v2awifi/recovery/root/ && find * | sort | cpio -o -H newc) | gzip > $(recovery_ramdisk)
@echo ----- Making recovery image ------
$(MKBOOTIMG_BIN) --kernel $(TARGET_PREBUILT_KERNEL) --ramdisk $(recovery_ramdisk) --base $(BOARD_KERNEL_BASE) --pagesize $(BOARD_KERNEL_PAGESIZE) $(BOARD_MKBOOTIMG_ARGS) --output $@
@echo ----- Made recovery image -------- $@
$(hide) $(call assert-max-image-size,$@,$(BOARD_RECOVERYIMAGE_PARTITION_SIZE),raw)
$(INSTALLED_BOOTIMAGE_TARGET): $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_FILES)
$(call pretty,"Target boot image: $@")
$(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) --output $@
#$(hide) $(MKBOOTIMG) $(INTERNAL_BOOTIMAGE_ARGS) --output $@
$(hide) $(call assert-max-image-size,$@,$(BOARD_BOOTIMAGE_PARTITION_SIZE),raw)