summaryrefslogtreecommitdiff
path: root/brillo_config
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2015-10-20 14:11:47 -0400
committerMike Frysinger <vapier@google.com>2015-10-20 14:12:40 -0400
commit27fb8f6caee6ad3731c46d6c61cf60a19b20e83e (patch)
treefd195935f1df912dfeae5e96e9769286ab0cd28b /brillo_config
parentc3788283d70eb8b0ad5b9a0e224108262beb84b5 (diff)
downloadextras-27fb8f6caee6ad3731c46d6c61cf60a19b20e83e.tar.gz
brillo_config: add missing mkdir for product rules
When doing a clean build, creating this file fails because the dir does not yet exist: echo "" > out/target/product/brilloemulator_arm/obj/ETC/product_id_intermediates/product_id /bin/bash: out/target/product/brilloemulator_arm/obj/ETC/product_id_intermediates/product_id: No such file or directory BUG: 24585672 Change-Id: I9c4a646b8d86cd303b0114f9b64d02896797f720
Diffstat (limited to 'brillo_config')
-rw-r--r--brillo_config/Android.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/brillo_config/Android.mk b/brillo_config/Android.mk
index 268692df..68032f19 100644
--- a/brillo_config/Android.mk
+++ b/brillo_config/Android.mk
@@ -28,6 +28,7 @@ include $(BUILD_SYSTEM)/base_rules.mk
# interaction will not work if this is not set correctly.
$(LOCAL_BUILT_MODULE): BRILLO_PRODUCT_ID ?= ""
$(LOCAL_BUILT_MODULE):
+ $(hide)mkdir -p $(dir $@)
echo $(BRILLO_PRODUCT_ID) > $@
include $(CLEAR_VARS)
@@ -47,6 +48,7 @@ endif
# Append BUILD_NUMBER if it is a number or a build timestamp otherwise.
# Use DATE to generate the timestamp based on BUILD_DATETIME.
$(LOCAL_BUILT_MODULE):
+ $(hide)mkdir -p $(dir $@)
ifeq ($(shell echo $(BUILD_NUMBER) | grep -E '[^0-9]'),)
echo $(BRILLO_PRODUCT_VERSION).$(BUILD_NUMBER) > $@
else