From 866810db9f2328fd14b4572f86a365a31ba714b0 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Tue, 4 Apr 2017 14:13:45 -0700 Subject: [PATCH] Exclude ndk stubs from notice file list Set LOCAL_NO_NOTICE_FILE so that we don't list them in the third party notices: out/soong/ndk/platforms/android-10/arch-arm/usr/lib/libc.so out/soong/ndk/platforms/android-10/arch-arm/usr/lib/liblog.so ... These are just stub libraries, and aren't distributed on the device. The real versions of these libraries will be distributed on the device, and already have the license information. Bug: 36867708 Test: Diff aosp_arm's system/etc/NOTICE.html.gz file before/after Change-Id: Ib647c64e9ce55f700738b00d2ff685e784ed3801 --- cc/androidmk.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cc/androidmk.go b/cc/androidmk.go index 705ac90aa..50e97b128 100644 --- a/cc/androidmk.go +++ b/cc/androidmk.go @@ -294,6 +294,7 @@ func (c *stubDecorator) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkDa fmt.Fprintln(w, "LOCAL_MODULE_SUFFIX := "+outputFile.Ext()) fmt.Fprintln(w, "LOCAL_MODULE_PATH := "+path) fmt.Fprintln(w, "LOCAL_MODULE_STEM := "+stem) + fmt.Fprintln(w, "LOCAL_NO_NOTICE_FILE := true") // Prevent make from installing the libraries to obj/lib (since we have // dozens of libraries with the same name, they'll clobber each other