Add <partition>/gpu support to fsgen

Test: m on qualcomm device with
  PRODUCT_COPY_FILES += \
    sequence_manifest.bin:$(TARGET_COPY_OUT_VENDOR)/gpu/kbc/sequence_manifest.bin
Change-Id: I9367c745862970c82bbc099dbe020dabb785ccb4
This commit is contained in:
Luca Stefani 2025-03-09 12:41:06 +01:00 committed by Michael Bestas
parent e6b299a126
commit 5daba7432c
No known key found for this signature in database
3 changed files with 12 additions and 0 deletions

View file

@ -357,6 +357,7 @@ func createPrebuiltEtcBpDefineRule() Rule {
"prebuilt_system",
"prebuilt_first_stage_ramdisk",
"prebuilt_radio",
"prebuilt_gpu",
).
DefinedInBpFile().
Because("module type not allowed to be defined in bp file")

View file

@ -63,6 +63,7 @@ func RegisterPrebuiltEtcBuildComponents(ctx android.RegistrationContext) {
ctx.RegisterModuleType("prebuilt_font", PrebuiltFontFactory)
ctx.RegisterModuleType("prebuilt_overlay", PrebuiltOverlayFactory)
ctx.RegisterModuleType("prebuilt_firmware", PrebuiltFirmwareFactory)
ctx.RegisterModuleType("prebuilt_gpu", PrebuiltGPUFactory)
ctx.RegisterModuleType("prebuilt_dsp", PrebuiltDSPFactory)
ctx.RegisterModuleType("prebuilt_rfsa", PrebuiltRFSAFactory)
ctx.RegisterModuleType("prebuilt_renderscript_bitcode", PrebuiltRenderScriptBitcodeFactory)
@ -789,6 +790,15 @@ func PrebuiltFirmwareFactory() android.Module {
return module
}
// prebuilt_gpu is for a prebuilt artifact in <partition>/gpu directory.
func PrebuiltGPUFactory() android.Module {
module := &PrebuiltEtc{}
InitPrebuiltEtcModule(module, "gpu")
// This module is device-only
android.InitAndroidArchModule(module, android.DeviceSupported, android.MultilibFirst)
return module
}
// prebuilt_dsp installs a DSP related file to <partition>/etc/dsp directory for system image.
// If soc_specific property is set to true, the DSP related file is installed to the
// vendor <partition>/dsp directory for vendor image.

View file

@ -199,6 +199,7 @@ var (
"etc/dsp": etc.PrebuiltDSPFactory,
"etc/firmware": etc.PrebuiltFirmwareFactory,
"firmware": etc.PrebuiltFirmwareFactory,
"gpu": etc.PrebuiltGPUFactory,
"first_stage_ramdisk": etc.PrebuiltFirstStageRamdiskFactory,
"fonts": etc.PrebuiltFontFactory,
"framework": etc.PrebuiltFrameworkFactory,