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

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

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

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

Change-Id: Ie5bde3262b38612c1a3c9bfac8a8e366a416de38
parents 8d0b528a 73097427
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() {