From aeb38e003dc5e11008e301a584e93351745ef6e7 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 26 Jan 2020 11:27:47 -0800 Subject: [PATCH] go.bbclass: Disable PIE on riscv Its not _yet_ supported for riscv Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- meta/classes/go.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" # 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') -- 2.40.1