Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a480cc78 authored by David Anderson's avatar David Anderson Committed by Automerger Merge Worker
Browse files

Merge "Add an __ANDROID_RAMDISK__ preprocessor define." am: 73097427 am:...

Merge "Add an __ANDROID_RAMDISK__ preprocessor define." am: 73097427 am: 6a3b6096 am: 13f34bef

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1989090

Change-Id: Ibbd1c1130c90f28aa5822fe73c907d55bfd14df1
parents 32c94a20 13f34bef
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -406,6 +406,10 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
		flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_RECOVERY__")
	}

	if ctx.inRecovery() || ctx.inRamdisk() || ctx.inVendorRamdisk() {
		flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_RAMDISK__")
	}

	if ctx.apexVariationName() != "" {
		flags.Global.CommonFlags = append(flags.Global.CommonFlags, "-D__ANDROID_APEX__")
		if ctx.Device() {