[PATCH v2 0/2] build golang tools

Nick Rosbrook posted 2 patches 4 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/xen tags/patchew/cover.1587695896.git.rosbrookn@ainfosec.com
Maintainers: Jan Beulich <jbeulich@suse.com>, Andrew Cooper <andrew.cooper3@citrix.com>, Wei Liu <wl@xen.org>, Ian Jackson <ian.jackson@eu.citrix.com>, Stefano Stabellini <sstabellini@kernel.org>, George Dunlap <george.dunlap@citrix.com>, Julien Grall <julien@xen.org>
.gitignore                           |    3 +
.hgignore                            |    2 +
config/Tools.mk.in                   |    1 +
m4/golang.m4                         |    4 +
tools/Rules.mk                       |    2 -
tools/configure                      |  138 +
tools/configure.ac                   |   12 +
tools/golang/xenlight/Makefile       |    1 +
tools/golang/xenlight/helpers.gen.go | 4722 --------------------------
tools/golang/xenlight/types.gen.go   | 1225 -------
10 files changed, 161 insertions(+), 5949 deletions(-)
create mode 100644 m4/golang.m4
delete mode 100644 tools/golang/xenlight/helpers.gen.go
delete mode 100644 tools/golang/xenlight/types.gen.go
[PATCH v2 0/2] build golang tools
Posted by Nick Rosbrook 4 years ago
These patches add support for the golang tools in the build system.

The behavior of configure with respect to the make variable,
CONFIG_GOLANG is copied from other components, such as the Ocaml
tools. Namely, build the tools by default if the go compiler is found.

Changes in v2:
 - Change make variable to CONFIG_GOLANG, and use `golang` rather
   than golang_tools to avoid mixing underscores and hyphens in 
   configure flags.

Nick Rosbrook (2):
  tools: build golang tools if go compiler is present
  golang/xenlight: stop tracking generated files

 .gitignore                           |    3 +
 .hgignore                            |    2 +
 config/Tools.mk.in                   |    1 +
 m4/golang.m4                         |    4 +
 tools/Rules.mk                       |    2 -
 tools/configure                      |  138 +
 tools/configure.ac                   |   12 +
 tools/golang/xenlight/Makefile       |    1 +
 tools/golang/xenlight/helpers.gen.go | 4722 --------------------------
 tools/golang/xenlight/types.gen.go   | 1225 -------
 10 files changed, 161 insertions(+), 5949 deletions(-)
 create mode 100644 m4/golang.m4
 delete mode 100644 tools/golang/xenlight/helpers.gen.go
 delete mode 100644 tools/golang/xenlight/types.gen.go

-- 
2.17.1