mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 15:32:14 +02:00
goarch.bbclass: Stop passing True as second argument of d.getVar
The d.getVar has the second argument as True by default, avoid passing it here. (From OE-Core rev: 1a5026db41929d42bece22bd0ae60c13219a98f5) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
9cc5cf0a64
commit
b34479ee9f
@@ -1,15 +1,15 @@
|
||||
BUILD_GOOS = "${@go_map_os(d.getVar('BUILD_OS', True), d)}"
|
||||
BUILD_GOARCH = "${@go_map_arch(d.getVar('BUILD_ARCH', True), d)}"
|
||||
BUILD_GOOS = "${@go_map_os(d.getVar('BUILD_OS'), d)}"
|
||||
BUILD_GOARCH = "${@go_map_arch(d.getVar('BUILD_ARCH'), d)}"
|
||||
BUILD_GOTUPLE = "${BUILD_GOOS}_${BUILD_GOARCH}"
|
||||
HOST_GOOS = "${@go_map_os(d.getVar('HOST_OS', True), d)}"
|
||||
HOST_GOARCH = "${@go_map_arch(d.getVar('HOST_ARCH', True), d)}"
|
||||
HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH', True), d.getVar('TUNE_FEATURES', True), d)}"
|
||||
HOST_GOOS = "${@go_map_os(d.getVar('HOST_OS'), d)}"
|
||||
HOST_GOARCH = "${@go_map_arch(d.getVar('HOST_ARCH'), d)}"
|
||||
HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
||||
HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}"
|
||||
TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS', True), d)}"
|
||||
TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH', True), d)}"
|
||||
TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH', True), d.getVar('TUNE_FEATURES', True), d)}"
|
||||
TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}"
|
||||
TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}"
|
||||
TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
||||
TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
|
||||
GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE',True) == d.getVar('HOST_GOTUPLE',True)]}"
|
||||
GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}"
|
||||
|
||||
# define here because everybody inherits this class
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user