forked from waleedq/android_device_samsung_galaxysl
-
Notifications
You must be signed in to change notification settings - Fork 27
/
shbootimg.mk
17 lines (14 loc) · 1.17 KB
/
shbootimg.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LOCAL_PATH := $(call my-dir)
MASTER_BOOTSTRAP := $(PRODUCT_OUT)/bootstrap.cpio.gz
$(MASTER_BOOTSTRAP): $(INSTALLED_RAMDISK_TARGET) $(recovery_ramdisk) $(PRODUCT_OUT)/utilities/flash_image $(PRODUCT_OUT)/utilities/busybox $(PRODUCT_OUT)/utilities/make_ext4fs $(PRODUCT_OUT)/utilities/erase_image
$(call pretty,"Bootstrap: $@")
cp -r device/samsung/galaxysl/bootstrap $(PRODUCT_OUT)
cd $(PRODUCT_OUT)/root/; chmod 0644 *.rc default.prop; find . | cpio -o -H newc | gzip > ../bootstrap/ramdisk.cpio.gz
cd $(PRODUCT_OUT)/recovery/root/; chmod 0644 *.rc default.prop; find . | cpio -o -H newc | gzip > ../../bootstrap/ramdisk-recovery.cpio.gz
cd $(PRODUCT_OUT)/bootstrap/; find . | cpio -o -H newc | gzip > ../bootstrap.cpio.gz
INSTALLED_BOOTIMAGE_TARGET := $(PRODUCT_OUT)/boot.img
$(INSTALLED_BOOTIMAGE_TARGET): $(TARGET_PREBUILT_KERNEL) $(MASTER_BOOTSTRAP)
$(call pretty,"Boot image: $@")
$(HOST_OUT)/bin/mkbootimg --kernel $(PRODUCT_OUT)/kernel --ramdisk $(MASTER_BOOTSTRAP) --cmdline "$(BOARD_KERNEL_CMDLINE)" --base $(BOARD_KERNEL_BASE) --pagesize $(BOARD_KERNEL_PAGESIZE) --output $@
$(INSTALLED_RECOVERYIMAGE_TARGET): $(INSTALLED_BOOTIMAGE_TARGET)
$(ACP) $(INSTALLED_BOOTIMAGE_TARGET) $@