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

Commit 73097427 authored by David Anderson's avatar David Anderson Committed by Gerrit Code Review
Browse files

Merge "Add an __ANDROID_RAMDISK__ preprocessor define."

parents a5969bec 2c8075cd
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() {