blob: bc90a1329e6cc0d0de280d97e19cd7444a482574 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001require go-${PV}.inc
2require go-target.inc
3
4export GOBUILDMODE=""
Andrew Geisslerb7d28612020-07-24 16:15:54 -05005export CGO_ENABLED_riscv64 = ""
Andrew Geissler82c905d2020-04-13 13:39:40 -05006# Add pie to GOBUILDMODE to satisfy "textrel" QA checking, but mips/riscv
7# doesn't support -buildmode=pie, so skip the QA checking for mips/riscv and its
8# variants.
9python() {
10 if 'mips' in d.getVar('TARGET_ARCH',True) or 'riscv' in d.getVar('TARGET_ARCH',True):
11 d.appendVar('INSANE_SKIP_%s' % d.getVar('PN',True), " textrel")
12 else:
13 d.setVar('GOBUILDMODE', 'pie')
14}