diff options
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/classes-recipe/go.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes-recipe/go.bbclass b/meta/classes-recipe/go.bbclass index c81d946069..e0f667373e 100644 --- a/meta/classes-recipe/go.bbclass +++ b/meta/classes-recipe/go.bbclass | |||
| @@ -7,6 +7,9 @@ | |||
| 7 | inherit goarch | 7 | inherit goarch |
| 8 | inherit linuxloader | 8 | inherit linuxloader |
| 9 | 9 | ||
| 10 | # if the GO_IMPORT is not set in recipe generate an error | ||
| 11 | GO_IMPORT ??= "${@bb.fatal("The recipe needs to set GO_IMPORT for go.bbclass to work")}" | ||
| 12 | |||
| 10 | GO_PARALLEL_BUILD ?= "${@oe.utils.parallel_make_argument(d, '-p %d')}" | 13 | GO_PARALLEL_BUILD ?= "${@oe.utils.parallel_make_argument(d, '-p %d')}" |
| 11 | 14 | ||
| 12 | export GODEBUG = "gocachehash=1" | 15 | export GODEBUG = "gocachehash=1" |
