Tell the build system to copy notice files.
By default the build system only looks for $(LOCAL_PATH)/NOTICE.
In this case we need to explicitly set LOCAL_NOTICE_FILE.
Bug: 27844589
Change-Id: Ia6d19e50b132e1bd9f8f3b82e5d66280638ad867
diff --git a/iptables/Android.mk b/iptables/Android.mk
index efe6526..d0fd7d3 100644
--- a/iptables/Android.mk
+++ b/iptables/Android.mk
@@ -34,6 +34,8 @@
ln -sf iptables $(TARGET_OUT)/bin/iptables-save; \
ln -sf iptables $(TARGET_OUT)/bin/iptables-restore
+LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE
+
include $(BUILD_EXECUTABLE)
#----------------------------------------------------------------
@@ -69,6 +71,8 @@
ln -sf ip6tables $(TARGET_OUT)/bin/ip6tables-save; \
ln -sf ip6tables $(TARGET_OUT)/bin/ip6tables-restore
+LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE
+
include $(BUILD_EXECUTABLE)