Fix path to notice file
Make expects notice files paths to be from the root of the tree.
Test: m -j checkbuild
Change-Id: Ic280a8a97797b9a088aeb4e4a52b79816d2d4197
diff --git a/android/androidmk.go b/android/androidmk.go
index 9e541fe..a403d8c 100644
--- a/android/androidmk.go
+++ b/android/androidmk.go
@@ -233,7 +233,7 @@
fmt.Fprintln(&data.preamble, "LOCAL_MODULE_OWNER :=", *amod.commonProperties.Owner)
}
if amod.commonProperties.Notice != nil {
- fmt.Fprintln(&data.preamble, "LOCAL_NOTICE_FILE :=", *amod.commonProperties.Notice)
+ fmt.Fprintln(&data.preamble, "LOCAL_NOTICE_FILE :=", "$(LOCAL_PATH)/"+*amod.commonProperties.Notice)
}
}