summaryrefslogtreecommitdiff
path: root/fsgen
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2025-03-03 14:13:17 -0800
committer Spandan Das <spandandas@google.com> 2025-03-03 23:57:52 +0000
commit21c11463ea0456f0592415bc381095347b84ed0e (patch)
treefd2aa4678a38b13e4d8dc8ad015bd16c6e18c0cb /fsgen
parenta6ef795f375f5249d70b94f90070adf567e7f388 (diff)
Dist kernel_version.txt in soong-only builds
This ports some of the kernel version/config extraction code from make, and updates our handling of kernel_version_for_uffd_gc.txt as well. There are a number of differences in the implementation vs how make implements it. See comments in the source code for more information. Bug: 398023642 Test: m dist, see kernel_version.txt Change-Id: I53c9ef12912683585e45da04a44890fff1381398
Diffstat (limited to 'fsgen')
-rw-r--r--fsgen/filesystem_creator.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/fsgen/filesystem_creator.go b/fsgen/filesystem_creator.go
index d286c6641..937882236 100644
--- a/fsgen/filesystem_creator.go
+++ b/fsgen/filesystem_creator.go
@@ -425,6 +425,7 @@ func (f *filesystemCreator) createDeviceModule(
Ab_ota_postinstall_config: ctx.Config().ProductVariables().PartitionVarsForSoongMigrationOnlyDoNotUse.AbOtaPostInstallConfig,
Ramdisk_node_list: proptools.StringPtr(":ramdisk_node_list"),
Android_info: proptools.StringPtr(":" + generatedModuleName(ctx.Config(), "android_info.prop{.txt}")),
+ Kernel_version: ctx.Config().ProductVariables().BoardKernelVersion,
}
if bootloader, ok := f.createBootloaderFilegroup(ctx); ok {