diff options
author | Colin Cross <ccross@android.com> | 2018-10-04 08:21:18 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2018-10-04 08:21:18 -0700 |
commit | a242defb480d6c5c0ff578427df17595c2b84550 (patch) | |
tree | 9120a8a5327a92c02646c4bc40031b011bd67490 | |
parent | 80cc88dc8abb5be77b2c1461766bd034a264c86e (diff) | |
download | bonito-a242defb480d6c5c0ff578427df17595c2b84550.tar.gz |
Recreate product symlink on other devices
Change Ice58f446fcc5bb0e57287b085a5a8faef22b74f8 removed the product
partition and used a CleanSpec.mk to clean it up in the build, but
the CleanSpec.mk affected all devices. That left those devices
missing their $OUT/root/product symlink, but the build system has
no dependency to be able to recreate it if it is missing. Add a
CleanSpec.mk to remove $OUT/root/init.environ.rc, which is the
rule that creates the $OUT/root/product symlink.
Bug: 116661769
Test: rm $OUT/root/product && m
Change-Id: I3814ff2fd434b7e4236a9588a73f4c4b6efc3fab
-rw-r--r-- | CleanSpec.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CleanSpec.mk b/CleanSpec.mk index 2a3e8560..7523ede1 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -128,3 +128,5 @@ $(call add-clean-step, rm -rf $(PRODUCT_OUT)/product) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/product) $(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/product) +# Remove init.environ.rc to force product to be recreated on other devices +$(call add-clean-step, rm -rf $(PRODUCT_OUT)/root/init.environ.rc) |