summaryrefslogtreecommitdiffstats
path: root/scripts/lib/bsp/tags.py
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2014-12-16 18:41:00 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-18 10:08:37 +0000
commited99aeeb682ed0ab04e2a02ece88b6d90059b774 (patch)
tree0d9127e351868a814a3c577975c2afbdae82dfe4 /scripts/lib/bsp/tags.py
parent8657c2fd57600e0b0eaf2a14692de7453c78e1bb (diff)
downloadpoky-ed99aeeb682ed0ab04e2a02ece88b6d90059b774.tar.gz
yocto-bsp: Add a processing pass to get rid of 'strange' filenames
Operating systems that can't handle filenames containing anything but uppercase letters don't like to see 'strange' characters in filenames such as the file and directory names yocto-bsp uses as part of its templating mechanism. To fix this, we essentially add another level of metadata into the template files themselves rather than into their names, and add a processing pass that internally gives us what we had before. Specifically: - strange characters in filenames are moved inside the files they apply to, to the first line of the file prepended with '# yocto-bsp-filename {{...}} filename | this' - strange characters in directory names are moved inside a new file of the same name but ending in .noinstall and with the first (and only) line of the file prepended with '# yocto-bsp-dirname {{...}} dirname' If the new filename contained in the yocto-bsp-* tag is 'this', the filename is the existing name of the file. For a dirname, this would be the filename with .noinstall removed. "Fixes" [YOCTO #5312]. (From meta-yocto rev: 3dad2decbd682713f717950fc39fa0f63f1b8c98) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/bsp/tags.py')
-rw-r--r--scripts/lib/bsp/tags.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/lib/bsp/tags.py b/scripts/lib/bsp/tags.py
index 6d5feb0a59..3719427884 100644
--- a/scripts/lib/bsp/tags.py
+++ b/scripts/lib/bsp/tags.py
@@ -25,11 +25,13 @@
25# Tom Zanussi <tom.zanussi (at] intel.com> 25# Tom Zanussi <tom.zanussi (at] intel.com>
26# 26#
27 27
28OPEN_TAG = "{{" 28OPEN_TAG = "{{"
29CLOSE_TAG = "}}" 29CLOSE_TAG = "}}"
30ASSIGN_TAG = "{{=" 30ASSIGN_TAG = "{{="
31INPUT_TAG = "input" 31INPUT_TAG = "input"
32IF_TAG = "if" 32IF_TAG = "if"
33FILENAME_TAG = "yocto-bsp-filename"
34DIRNAME_TAG = "yocto-bsp-dirname"
33 35
34INDENT_STR = " " 36INDENT_STR = " "
35 37