summaryrefslogtreecommitdiff
path: root/CleanSpec.mk
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2018-10-04 08:21:18 -0700
committerColin Cross <ccross@android.com>2018-10-04 08:21:18 -0700
commita242defb480d6c5c0ff578427df17595c2b84550 (patch)
tree9120a8a5327a92c02646c4bc40031b011bd67490 /CleanSpec.mk
parent80cc88dc8abb5be77b2c1461766bd034a264c86e (diff)
downloadbonito-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
Diffstat (limited to 'CleanSpec.mk')
-rw-r--r--CleanSpec.mk2
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)