arch/arm64: Support FEAT_CCIDX
[coreboot2.git] / util / intelp2m / platforms / cnl / template.go
blobb38d9689f4265c08d1b908837e5fbbee9f8c81a8
1 package cnl
3 import "review.coreboot.org/coreboot.git/util/intelp2m/platforms/common"
5 type InheritanceTemplate interface {
6 KeywordCheck(line string) bool
9 // GroupNameExtract - This function extracts the group ID, if it exists in a row
10 // line : string from the configuration file
11 // return
12 // bool : true if the string contains a group identifier
13 // string : group identifier
14 func (PlatformSpecific) GroupNameExtract(line string) (bool, string) {
15 return common.KeywordsCheck(line,
16 "GPP_A", "GPP_B", "GPP_G", "GPP_D", "GPP_F", "GPP_H", "GPD", "GPP_C", "GPP_E")
19 // KeywordCheck - This function is used to filter parsed lines of the configuration file and
20 // returns true if the keyword is contained in the line.
21 // line : string from the configuration file
22 func (platform PlatformSpecific) KeywordCheck(line string) bool {
23 return platform.InheritanceTemplate.KeywordCheck(line)