summaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorErico Nunes <nunes.erico@gmail.com>2015-06-21 23:54:16 (GMT)
committerErico Nunes <nunes.erico@gmail.com>2015-06-21 23:54:16 (GMT)
commit14cc1cb28e37d5e6ce0b01990445de493ec7a967 (patch)
tree5b8f1bad81f1ea86a20967092b25052557d0301b /scripts/functions
parent11646447fa2c43310f9edcd050d703debb11e6a2 (diff)
functions: write permission in config.{guess,sub}
avr-libc doesn't have write permissions in these by default in the 1.8.1 tar release, this caused an error during build with CT_OVERIDE_CONFIG_GUESS_SUB enabled. chmod u+w them before overriding to avoid an this error. Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/functions b/scripts/functions
index 6429aa8..8665346 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -1132,7 +1132,9 @@ CT_Patch() {
eval ${cfg}="${CT_LIB_DIR}/scripts/${cfg/_/.}"
[ -e "${CT_TOP_DIR}/scripts/${cfg/_/.}" ] && eval ${cfg}="${CT_TOP_DIR}/scripts/${cfg/_/.}"
# Can't use CT_DoExecLog because of the '{} \;' to be passed un-mangled to find
- find . -type f -name "${cfg/_/.}" -exec cp -v "${!cfg}" {} \; |CT_DoLog ALL
+ find . -type f -name "${cfg/_/.}" \
+ -exec chmod -v u+w {} \; \
+ -exec cp -v "${!cfg}" {} \; |CT_DoLog ALL
done
fi