OSDN Git Service

Restrict vendor modules to help AOSP product distribution.
authorYing Wang <wangying@google.com>
Fri, 9 Dec 2011 23:11:57 +0000 (15:11 -0800)
committerYing Wang <wangying@google.com>
Mon, 12 Dec 2011 22:17:55 +0000 (14:17 -0800)
commitdbb31be41302aa4426006685e9c652de8074906a
tree766f0860e64415508de9e2dd5569572b9f5e515e
parentd2972716be3435771833972981b6225abb6ccdc0
Restrict vendor modules to help AOSP product distribution.

Bug: 5692177

If you set "PRODUCT_RESTRICT_VENDOR_FILES := true" in a product
configuration, this changes restricts that:
- No overlays in the vendor tree.
- No PRODUCT_COPY_FILES coming from the vendor tree.
- Any referenced package with Android.mk in the vendor tree must have
  LOCAL_MODULE_OWNER set to a value that's compared against a whitelist
  stored in the core build system.

Change-Id: I172b84c7c853e9a04bf9879ea8dec90bd5054230
core/base_rules.mk
core/clear_vars.mk
core/product.mk
core/tasks/module_owner_check.mk [new file with mode: 0644]