util/x86/x86_page_tables: add command line to generated files
In order to help the reader understand where things are generated from add a comment string that is composed of the command line used to generate the files. BUG=b:72728953 Change-Id: I1b93923f8b08192448ab19226fd27661cc09e853 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/25834 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
parent
7ca400665e
commit
94984a8461
|
@ -23,6 +23,7 @@ import "fmt"
|
|||
import "io"
|
||||
import "log"
|
||||
import "os"
|
||||
import "path/filepath"
|
||||
import "sort"
|
||||
import "strconv"
|
||||
import "strings"
|
||||
|
@ -176,6 +177,11 @@ func (cw *cWriter) WritePageEntry(data interface{}) error {
|
|||
if _, err := fmt.Fprint(cw.wr, generatedCodeLicense); err != nil {
|
||||
return err
|
||||
}
|
||||
if _, err := fmt.Fprintf(cw.wr, "/* Generated by:\n util/x86/%s %s\n */\n",
|
||||
filepath.Base(os.Args[0]),
|
||||
strings.Join(os.Args[1:], " ")); err != nil {
|
||||
return err
|
||||
}
|
||||
includes := []string{
|
||||
"stdint.h",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue