Debian Codegraph @

util/intelp2m/generator/header/header.go

raw symbols SCIP
1 package header
2
3 import (
4 "fmt"
5
6 "review.coreboot.org/coreboot.git/util/intelp2m/config/p2m"
7 )
8
9 const fileHeader string = `/* SPDX-License-Identifier: GPL-2.0-only */
10
11 #ifndef CFG_GPIO_H
12 #define CFG_GPIO_H
13
14 #include <gpio.h>
15
16 /* Pad configuration was generated automatically using intelp2m %s */
17 static const struct pad_config gpio_table[] = {`
18
19 const completion string = `};
20
21 #endif /* CFG_GPIO_H */
22 `
23
24 func Add(lines []string) []string {
25 wrapper := make([]string, 0)
26 wrapper = append(wrapper, fmt.Sprintf(fileHeader, p2m.Config.Version))
27 wrapper = append(wrapper, lines...)
28 wrapper = append(wrapper, completion)
29 return wrapper
30 }