summaryrefslogtreecommitdiff
path: root/db845c
diff options
context:
space:
mode:
authorJohn Stultz <john.stultz@linaro.org>2020-01-14 00:10:06 +0000
committerJohn Stultz <john.stultz@linaro.org>2020-01-14 00:50:59 +0000
commitf36354e97f79eb8f53c70b654c38f2ce7dcc3fb5 (patch)
treeafff93644b9809ce45c5e704daf4261ed4a014f5 /db845c
parent0cc0a3bb8a1c415f0be7764533b2a379f71b1fec (diff)
db845c: Update userland build to use dragonboard-kernel project and build boot.img
This patch updates the userland build to built a boot.img from prebuilt kernel/modules in the dragonboard-kernel project. At the moment, there is nothing in the dragonboard-kernel project, but once we do add the prebuilt files, we'll want this change. Change-Id: I6b9ce745c378ea50e176e9c8ed67336953766fa2 Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'db845c')
-rw-r--r--db845c/BoardConfig.mk9
-rw-r--r--db845c/device.mk2
2 files changed, 11 insertions, 0 deletions
diff --git a/db845c/BoardConfig.mk b/db845c/BoardConfig.mk
index ffc6047..0af0aaf 100644
--- a/db845c/BoardConfig.mk
+++ b/db845c/BoardConfig.mk
@@ -4,6 +4,15 @@ include device/linaro/dragonboard/BoardConfigCommon.mk
TARGET_BOOTLOADER_BOARD_NAME := db845c
TARGET_BOARD_PLATFORM := db845c
+TARGET_NO_KERNEL := false
+BOARD_INCLUDE_DTB_IN_BOOTIMG := true
+BOARD_BOOT_HEADER_VERSION := 2
+BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
+BOARD_KERNEL_BASE := 0x80000000
+BOARD_KERNEL_PAGESIZE := 2048
+BOARD_KERNEL_CMDLINE := firmware_class.path=/vendor/firmware/ androidboot.hardware=db845c
+BOARD_KERNEL_CMDLINE += init=/init androidboot.boot_devices=soc/1d84000.ufshc printk.devkmsg=on
+
# Image Configuration
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864 #64M
BOARD_USERDATAIMAGE_PARTITION_SIZE := 21474836480 #20G
diff --git a/db845c/device.mk b/db845c/device.mk
index d15e188..be50f51 100644
--- a/db845c/device.mk
+++ b/db845c/device.mk
@@ -18,6 +18,8 @@
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
PRODUCT_COPY_FILES := \
+ $(DB845C_KERNEL_DIR)/Image.gz:kernel \
+ $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb:dtb.img \
device/linaro/dragonboard/fstab.ramdisk.common:$(TARGET_COPY_OUT_RAMDISK)/fstab.db845c \
device/linaro/dragonboard/fstab.ramdisk.common:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.db845c \
device/linaro/dragonboard/fstab.common:$(TARGET_COPY_OUT_VENDOR)/etc/init/fstab.db845c \