summaryrefslogtreecommitdiff
path: root/boot_img.mk
diff options
context:
space:
mode:
authorFengwei Yin <fengwei.yin@linaro.org>2016-02-18 21:27:36 +0800
committerFengwei Yin <fengwei.yin@linaro.org>2016-02-20 17:03:37 +0800
commitc2602c5d8d77d5cb0a8e40e5162cec76c4a209e6 (patch)
tree57e7f117de47bd7129c5be056169f82bda3389f6 /boot_img.mk
parent9edc02d4c644ee43c94ea26305ef4e4a01b71667 (diff)
downloadgeneric-c2602c5d8d77d5cb0a8e40e5162cec76c4a209e6.tar.gz
Change the base mk file
Diffstat (limited to 'boot_img.mk')
-rw-r--r--boot_img.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/boot_img.mk b/boot_img.mk
new file mode 100644
index 0000000..43ed701
--- /dev/null
+++ b/boot_img.mk
@@ -0,0 +1,14 @@
+boot_img: bootimage all_dtbs
+ mkdir -p $(PRODUCT_OUT)/dtbs
+ cp -f $(KERNEL_OUT)/arch/$(ARCH)/boot/msm8916-mtp.dtb $(PRODUCT_OUT)/dtbs
+ cp -f $(KERNEL_OUT)/arch/$(ARCH)/boot/apq8016-sbc.dtb $(PRODUCT_OUT)/dtbs
+ $(TOP)/external/skales/dtbTool -o $(PRODUCT_OUT)/dt.img -s 2048 $(PRODUCT_OUT)/dtbs
+ $(TOP)/external/skales/mkbootimg \
+ --kernel $(PRODUCT_OUT)/kernel \
+ --ramdisk $(PRODUCT_OUT)/ramdisk.img \
+ --output $(PRODUCT_OUT)/boot-db410c.img \
+ --dt $(PRODUCT_OUT)/dt.img \
+ --pagesize "2048" \
+ --base "0x80000000" \
+ --cmdline "$(BOARD_KERNEL_CMDLINE)"
+droidcore: boot_img