From c0ad894bfadcce4be4778e1773aeb09f8f19ef47 Mon Sep 17 00:00:00 2001 From: Amit Pundir Date: Tue, 14 Dec 2021 19:45:56 +0530 Subject: db845c: Add rb5 support in db845c-userdebug build target * Enabled multiple appended DTBs support to allow db845c boot.img/vendor_boot.img to boot on rb5 as well. * Introduced a vendor.hw property which will be used to run device specific services. * Folded Caleb's HDMI audio routing fix. Signed-off-by: Amit Pundir Change-Id: I779d01946ae359d5c405d959419e29460083e5df --- build/tasks/kernel.mk | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 build/tasks/kernel.mk (limited to 'build') diff --git a/build/tasks/kernel.mk b/build/tasks/kernel.mk new file mode 100644 index 0000000..959347b --- /dev/null +++ b/build/tasks/kernel.mk @@ -0,0 +1,8 @@ +ifneq ($(filter db845c, $(TARGET_DEVICE)),) + +$(PRODUCT_OUT)/dtb.img: $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb + -cat $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb $(DB845C_KERNEL_DIR)/qrb5165-rb5.dtb > $@ + +droidcore: $(PRODUCT_OUT)/dtb.img + +endif -- cgit v1.2.3 From e8b96e36869eae7f4bef8d6616429ad0c0d92d74 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 2 Feb 2022 11:38:11 -0800 Subject: Factor out the full device configuration. In an upcoming patch we are going to add "mini" device configurations that avoid most of the usual driver dependencies. This requires splitting out the device-specific configuration from the configuration required for a full device image. Bug: 217455793 Change-Id: Id17d162d142a2595e54e163f5faaf7dcf9b68e35 --- build/tasks/kernel.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build') diff --git a/build/tasks/kernel.mk b/build/tasks/kernel.mk index 959347b..a16c54f 100644 --- a/build/tasks/kernel.mk +++ b/build/tasks/kernel.mk @@ -1,7 +1,7 @@ ifneq ($(filter db845c, $(TARGET_DEVICE)),) -$(PRODUCT_OUT)/dtb.img: $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb - -cat $(DB845C_KERNEL_DIR)/sdm845-db845c.dtb $(DB845C_KERNEL_DIR)/qrb5165-rb5.dtb > $@ +$(PRODUCT_OUT)/dtb.img: $(TARGET_KERNEL_DIR)/sdm845-db845c.dtb $(wildcard $(TARGET_KERNEL_DIR)/qrb5165-rb5.dtb) + cat $^ > $@ droidcore: $(PRODUCT_OUT)/dtb.img -- cgit v1.2.3 From c7a8d59d894f572da1a519970897c2a99d120523 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 2 Feb 2022 11:25:06 -0800 Subject: Create a mini configuration for the dragonboards. The goal of the mini configuration is to define a device configuration with minimal driver dependencies. The only strict requirements are storage (UFS) and USB which provides an ADB connection. This also implies software crypto for userdata because drivers for the hardware crypto engine are not necessarily available. This allows for development of low level pieces of the stack such as the kernel and libc on hardware which does not have a full set of drivers available in the mainline kernel. Currently this implies no zygote because of a lack of support for headless mode. This limits the amount of testing possible but if this becomes possible in the future we could add the zygote to the mini configuration. To show what this would look like for existing devices, add db845c_mini and rb5_mini targets. Bug: 217455793 Tested: db845c and db845c_mini boot tested, rb5 and rb5_mini build tested Change-Id: I8f8b467a4dfad68f6e2e53954b5944c6155de782 --- build/tasks/kernel.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build') diff --git a/build/tasks/kernel.mk b/build/tasks/kernel.mk index a16c54f..7723dc3 100644 --- a/build/tasks/kernel.mk +++ b/build/tasks/kernel.mk @@ -1,4 +1,4 @@ -ifneq ($(filter db845c, $(TARGET_DEVICE)),) +ifneq ($(filter db845c db845c_mini, $(TARGET_DEVICE)),) $(PRODUCT_OUT)/dtb.img: $(TARGET_KERNEL_DIR)/sdm845-db845c.dtb $(wildcard $(TARGET_KERNEL_DIR)/qrb5165-rb5.dtb) cat $^ > $@ -- cgit v1.2.3