-
Notifications
You must be signed in to change notification settings - Fork 1
/
mkbootimg.mk
17 lines (14 loc) · 920 Bytes
/
mkbootimg.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Boot image maker for Samsung YP-GS1
LOCAL_PATH := $(call my-dir)
MASTER_BOOTSTRAP := $(PRODUCT_OUT)/bootstrap.cpio.gz
$(MASTER_BOOTSTRAP): $(INSTALLED_RAMDISK_TARGET) $(recovery_ramdisk) $(HOST_OUT)/bin/mkbootfs $(PRODUCT_OUT)/utilities/busybox
$(call pretty,"Bootstrap: $@")
cp -r device/samsung/aalto/bootstrap $(PRODUCT_OUT)
cp -r device/samsung/aalto/bootstrap.sh $(PRODUCT_OUT)
$(PRODUCT_OUT)/bootstrap.sh
INSTALLED_BOOTIMAGE_TARGET := $(PRODUCT_OUT)/boot.img
$(INSTALLED_BOOTIMAGE_TARGET): $(TARGET_PREBUILT_KERNEL) $(MASTER_BOOTSTRAP)
$(call pretty,"Boot image: $@")
$(HOST_OUT)/bin/mkbootimg --kernel $(TARGET_PREBUILT_KERNEL) --ramdisk $(MASTER_BOOTSTRAP) --cmdline "$(BOARD_KERNEL_CMDLINE)" --base $(BOARD_KERNEL_BASE) --pagesize $(BOARD_KERNEL_PAGESIZE) --ramdiskaddr 0x82800000 --output $@
$(INSTALLED_RECOVERYIMAGE_TARGET): $(INSTALLED_BOOTIMAGE_TARGET)
$(ACP) $(INSTALLED_BOOTIMAGE_TARGET) $@