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

Commit c2477e82 authored by Paul Duffin's avatar Paul Duffin Committed by Gerrit Code Review
Browse files

Merge "Remove special handling of frameworks/base/config/boot-profile.txt"

parents 9abfff52 2ac45f01
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -865,24 +865,12 @@ func bootFrameworkProfileRule(ctx android.ModuleContext, image *bootImageConfig)
		return nil
	}

	// Some branches like master-art-host don't have frameworks/base, so manually
	// handle the case that the default is missing.  Those branches won't attempt to build the profile rule,
	// and if they do they'll get a missing deps error.
	defaultProfile := "frameworks/base/config/boot-profile.txt"
	path := android.ExistentPathForSource(ctx, defaultProfile)
	var bootFrameworkProfile android.Path
	var missingDeps []string
	if path.Valid() {
		bootFrameworkProfile = path.Path()
	} else {
		missingDeps = append(missingDeps, defaultProfile)
		bootFrameworkProfile = android.PathForOutput(ctx, "missing", defaultProfile)
	}
	bootFrameworkProfile := android.PathForSource(ctx, defaultProfile)

	profile := image.dir.Join(ctx, "boot.bprof")

	rule := android.NewRuleBuilder(pctx, ctx)
	rule.MissingDeps(missingDeps)
	rule.Command().
		Text(`ANDROID_LOG_TAGS="*:e"`).
		Tool(globalSoong.Profman).
+2 −0
Original line number Diff line number Diff line
@@ -46,6 +46,8 @@ func TestSnapshotWithBootclasspathFragment_ImageName(t *testing.T) {
				],
			}
		`),
		// Needed for platform_bootclasspath
		android.FixtureAddFile("frameworks/base/config/boot-profile.txt", nil),

		java.FixtureConfigureBootJars("com.android.art:mybootlib"),
		android.FixtureWithRootAndroidBp(`