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

Commit 13f34bef 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: 6a3b6096

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

Change-Id: I0e775de22b1131c9c6dedeb2aa8fad497849c254
parents 16ff38a9 6a3b6096
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() {