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

Commit 7ef7684d authored by Cole Faust's avatar Cole Faust Committed by Gerrit Code Review
Browse files

Merge "Always package NOTICE.xml.gz" into main

parents ffb0c42f 2598bb96
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@ import (
	"path/filepath"

	"android/soong/android"

	"github.com/google/blueprint"
)

@@ -63,7 +64,6 @@ type NoticeXmlModule struct {
	props noticeXmlProperties

	outputFile android.OutputPath
	installPath android.InstallPath
}

type noticeXmlProperties struct {
@@ -86,10 +86,8 @@ func (nx *NoticeXmlModule) GenerateAndroidBuildActions(ctx android.ModuleContext

	nx.outputFile = output.OutputPath

	if android.Bool(ctx.Config().ProductVariables().UseSoongSystemImage) {
		nx.installPath = android.PathForModuleInPartitionInstall(ctx, nx.props.Partition_name, "etc")
		ctx.InstallFile(nx.installPath, "NOTICE.xml.gz", nx.outputFile)
	}
	installPath := android.PathForModuleInPartitionInstall(ctx, nx.props.Partition_name, "etc")
	ctx.PackageFile(installPath, "NOTICE.xml.gz", nx.outputFile)
}

func (nx *NoticeXmlModule) AndroidMkEntries() []android.AndroidMkEntries {