summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-26 11:27:47 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-27 16:48:09 +0000
commit40bfcd11ad461ce23180746d89287db82530ba8f (patch)
treefbb10f58fc7d77c2068313061a381bc02cd70fbf /meta/classes
parent7a9bb69f083c10fabeae15fbf9ebb1ffbe05ecf0 (diff)
downloadpoky-40bfcd11ad461ce23180746d89287db82530ba8f.tar.gz
go.bbclass: Disable PIE on riscv
Its not _yet_ supported for riscv (From OE-Core rev: aeb38e003dc5e11008e301a584e93351745ef6e7) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/go.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/go.bbclass b/meta/classes/go.bbclass
index e40e55689d..369652dbbd 100644
--- a/meta/classes/go.bbclass
+++ b/meta/classes/go.bbclass
@@ -147,7 +147,7 @@ INSANE_SKIP_${PN} += "ldflags"
147# doesn't support -buildmode=pie, so skip the QA checking for mips and its 147# doesn't support -buildmode=pie, so skip the QA checking for mips and its
148# variants. 148# variants.
149python() { 149python() {
150 if 'mips' in d.getVar('TARGET_ARCH'): 150 if 'mips' in d.getVar('TARGET_ARCH') or 'riscv' in d.getVar('TARGET_ARCH'):
151 d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel") 151 d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel")
152 else: 152 else:
153 d.appendVar('GOBUILDFLAGS', ' -buildmode=pie') 153 d.appendVar('GOBUILDFLAGS', ' -buildmode=pie')