diff options
| author | Tom Zanussi <tom.zanussi@intel.com> | 2012-01-24 00:29:02 -0600 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-22 19:21:15 +0000 |
| commit | c01dec88190ecd6c2851ffc7633d5f4cc9f52836 (patch) | |
| tree | 5e5cd8a20735b2f03b51fb3df3806d9e4df471a2 /scripts/lib | |
| parent | 095c80b2be35153060753c17cee4b47207d0286e (diff) | |
| download | poky-c01dec88190ecd6c2851ffc7633d5f4cc9f52836.tar.gz | |
yocto-bsp: add some useful constants
Some constants used by the templating engine.
Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/bsp/tags.py | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/scripts/lib/bsp/tags.py b/scripts/lib/bsp/tags.py new file mode 100644 index 0000000000..869b1d065a --- /dev/null +++ b/scripts/lib/bsp/tags.py | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | # ex:ts=4:sw=4:sts=4:et | ||
| 2 | # -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- | ||
| 3 | # | ||
| 4 | # Copyright (c) 2012, Intel Corporation. | ||
| 5 | # All rights reserved. | ||
| 6 | # | ||
| 7 | # This program is free software; you can redistribute it and/or modify | ||
| 8 | # it under the terms of the GNU General Public License version 2 as | ||
| 9 | # published by the Free Software Foundation. | ||
| 10 | # | ||
| 11 | # This program is distributed in the hope that it will be useful, | ||
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | # GNU General Public License for more details. | ||
| 15 | # | ||
| 16 | # You should have received a copy of the GNU General Public License along | ||
| 17 | # with this program; if not, write to the Free Software Foundation, Inc., | ||
| 18 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
| 19 | # | ||
| 20 | # DESCRIPTION | ||
| 21 | # This module provides a place to define common constants for the | ||
| 22 | # Yocto BSP Tools. | ||
| 23 | # | ||
| 24 | # AUTHORS | ||
| 25 | # Tom Zanussi <tom.zanussi (at] intel.com> | ||
| 26 | # | ||
| 27 | |||
| 28 | OPEN_TAG = "{{" | ||
| 29 | CLOSE_TAG = "}}" | ||
| 30 | ASSIGN_TAG = "{{=" | ||
| 31 | INPUT_TAG = "input" | ||
| 32 | IF_TAG = "if" | ||
| 33 | |||
| 34 | INDENT_STR = " " | ||
| 35 | |||
| 36 | BLANKLINE_STR = "of.write(\"\\n\")" | ||
| 37 | NORMAL_START = "of.write" | ||
| 38 | OPEN_START = "of = open" | ||
| 39 | |||
| 40 | INPUT_TYPE_PROPERTY = "type" | ||
| 41 | |||
| 42 | SRC_URI_FILE = "file://" | ||
| 43 | |||
| 44 | |||
| 45 | |||
| 46 | |||
| 47 | |||
