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>
This commit is contained in:
Khem Raj 2020-01-26 11:27:47 -08:00 committed by Richard Purdie
parent 7a9bb69f08
commit 40bfcd11ad

View File

@ -147,7 +147,7 @@ INSANE_SKIP_${PN} += "ldflags"
# doesn't support -buildmode=pie, so skip the QA checking for mips and its
# variants.
python() {
if 'mips' in d.getVar('TARGET_ARCH'):
if 'mips' in d.getVar('TARGET_ARCH') or 'riscv' in d.getVar('TARGET_ARCH'):
d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel")
else:
d.appendVar('GOBUILDFLAGS', ' -buildmode=pie')