From 6ec1fcfa1df006c9ba1d84abaa08716c5a649f31 Mon Sep 17 00:00:00 2001 From: Spandan Das Date: Tue, 11 Feb 2025 22:51:51 +0000 Subject: Export SOONG_DEFINED_SYSTEM_IMAGE_PATH to make This makes the make packaging system resilient to filename changes. Test: lunch aosp_cf_x86_64_phone-userdebug && m systemimage Change-Id: I166d78cd49f72a875b9648ca9285f7ebc2307a76 --- filesystem/filesystem.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'filesystem/filesystem.go') diff --git a/filesystem/filesystem.go b/filesystem/filesystem.go index 9f2b239a0..ecc152475 100644 --- a/filesystem/filesystem.go +++ b/filesystem/filesystem.go @@ -1373,3 +1373,9 @@ func addAutogeneratedRroDeps(ctx android.BottomUpMutatorContext) { return true }) } + +func (f *filesystem) MakeVars(ctx android.MakeVarsModuleContext) { + if f.Name() == ctx.Config().SoongDefinedSystemImage() { + ctx.StrictRaw("SOONG_DEFINED_SYSTEM_IMAGE_PATH", f.output.String()) + } +} -- cgit v1.2.3-59-g8ed1b