summaryrefslogtreecommitdiff
path: root/filesystem/filesystem.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-11-07 16:56:45 -0800
committer Cole Faust <colefaust@google.com> 2024-11-11 14:33:38 -0800
commit76a6e9596de569007603982c8ad27c894ce315c0 (patch)
tree4ae40abccfd37ae11601e9105a882696da828ee2 /filesystem/filesystem.go
parent624180a8ffe4c8047b5c757b4e79d171de38ce17 (diff)
Build ramdisk with soong
This is the first step to build the ramdisk, it still has some diffs with with the make-generated ramdisk though. Bug: 378146476 Test: m soong_generated_ramdisk_filesystem_test Change-Id: I767ea9d09e4d6413c2ec5af3120595e2001c9bb7
Diffstat (limited to 'filesystem/filesystem.go')
-rw-r--r--filesystem/filesystem.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go
index f72cf1715..16bc2e067 100644
--- a/filesystem/filesystem.go
+++ b/filesystem/filesystem.go
@@ -292,10 +292,14 @@ func (f *filesystem) partitionName() string {
func (f *filesystem) FilterPackagingSpec(ps android.PackagingSpec) bool {
// Filesystem module respects the installation semantic. A PackagingSpec from a module with
// IsSkipInstall() is skipped.
+ if ps.SkipInstall() {
+ return false
+ }
if proptools.Bool(f.properties.Is_auto_generated) { // TODO (spandandas): Remove this.
- return !ps.SkipInstall() && (ps.Partition() == f.PartitionType())
+ pt := f.PartitionType()
+ return pt == "ramdisk" || ps.Partition() == pt
}
- return !ps.SkipInstall()
+ return true
}
var pctx = android.NewPackageContext("android/soong/filesystem")
@@ -664,6 +668,7 @@ var validPartitions = []string{
"vendor_dlkm",
"odm_dlkm",
"system_dlkm",
+ "ramdisk",
}
func (f *filesystem) addMakeBuiltFiles(ctx android.ModuleContext, builder *android.RuleBuilder, rootDir android.Path) {