commit | d21e7dc8334528247ae47ddb7a0f7fb52f387576 | [log] [tgz] |
---|---|---|
author | Yo Chiang <yochiang@google.com> | Thu Dec 10 18:42:47 2020 +0800 |
committer | Yo Chiang <yochiang@google.com> | Thu Dec 17 11:07:04 2020 +0800 |
tree | 3085ab91f9b274054d25edc4c2e9f999e42c2a0a | |
parent | 98b7ac4602ef891605c12e365bc7d5e2d6d95b59 [diff] |
Add support for packing multiple vendor ramdisks in vendor_boot Add support for partitioning the vendor_boot kernel modules into multiple vendor ramdisk fragments. The partition granularity is kernel module directory. This mechanism builds upon the existing BOARD_KERNEL_MODULE_DIRS mechanism. For example, say we have three kernel module directories: BOARD_KERNEL_MODULE_DIRS := foo bar baz We can then define a vendor ramdisk fragment: BOARD_MKBOOTIMG_ARGS += --header_version 4 BOARD_VENDOR_RAMDISK_FRAGMENTS := dlkm_foobar And let said ramdisk to contain the DLKM directories "foo" and "bar": BOARD_VENDOR_RAMDISK_FRAGMENT.dlkm_foobar.KERNEL_MODULE_DIRS := foo bar BOARD_VENDOR_RAMDISK_FRAGMENT.dlkm_foobar.MKBOOTIMG_ARGS := <mkbootimg args> The built vendor_boot image would contain two ramdisks. The first one being the "default" ramdisk, which contains DLKM directory "baz" and the rest of the files that get's installed to $(TARGET_VENDOR_RAMDISK_OUT). The second one is the "dlkm_foobar" ramdisk, which contains the two DLKM directories. Design doc: go/vendor-boot-v4 Bug: 162864255 Test: Modify BoardConfig.mk to have a product build v4 vendor_boot Test: Use unpack_bootimg to verify the vendor_boot image Test: Teach a bootloader how to handle v4 boot image, flash boot & vendor_boot and boot device Change-Id: Ibb1bbd7ebe36430c55ec6c4818c1d3888a319089
This is the Makefile-based portion of the Android Build System.
For documentation on how to run a build, see Usage.txt
For a list of behavioral changes useful for Android.mk writers see Changes.md
For an outdated reference on Android.mk files, see build-system.html. Our Android.mk files look similar, but are entirely different from the Android.mk files used by the NDK build system. When searching for documentation elsewhere, ensure that it is for the platform build system -- most are not.
This Makefile-based system is in the process of being replaced with Soong, a new build system written in Go. During the transition, all of these makefiles are read by Kati, and generate a ninja file instead of being executed directly. That's combined with a ninja file read by Soong so that the build graph of the two systems can be combined and run as one.