Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 1 | # We have a conf and classes directory, add to BBPATH |
| 2 | BBPATH .= ":${LAYERDIR}" |
| 3 | |
| 4 | # We have recipes-* directories, add to BBFILES |
Brad Bishop | 471cfce | 2018-08-31 06:25:51 -0400 | [diff] [blame] | 5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ |
| 6 | ${LAYERDIR}/recipes-*/*/*.bbappend" |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 7 | |
Brad Bishop | a594e7d | 2018-06-18 23:09:13 -0400 | [diff] [blame] | 8 | BBFILE_COLLECTIONS += "phosphor-layer" |
| 9 | BBFILE_PATTERN_phosphor-layer = "^${LAYERDIR}/" |
| 10 | LAYERVERSION_phosphor-layer = "1" |
Brad Bishop | 696da8f | 2019-04-04 13:25:02 -0400 | [diff] [blame] | 11 | LAYERSERIES_COMPAT_phosphor-layer = "thud warrior" |
Brad Bishop | 93fb535 | 2015-09-09 03:59:20 +0000 | [diff] [blame] | 12 | |
| 13 | # Provide a variable that points the base of the phosphor layer. |
| 14 | PHOSPHORBASE = '${@os.path.normpath("${LAYERDIR}/")}' |
Yong Li | 52e09b5 | 2017-12-19 22:06:00 +0800 | [diff] [blame] | 15 | |
| 16 | IMAGE_FEATURES[validitems] += "tools-profile" |
| 17 | |
Brad Bishop | 1bddfb1 | 2018-03-23 23:32:26 -0400 | [diff] [blame] | 18 | # Let us add layer-specific bbappends which are only applied when that |
| 19 | # layer is included in our configuration |
| 20 | BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bbappend' % layer \ |
| 21 | for layer in BBFILE_COLLECTIONS.split())}" |
| 22 | # Add layer-specific bb files too |
| 23 | BBFILES += "${@' '.join('${LAYERDIR}/%s/recipes*/*/*.bb' % layer \ |
| 24 | for layer in BBFILE_COLLECTIONS.split())}" |