Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | require go-${PV}.inc |
| 2 | require go-target.inc |
| 3 | |
| 4 | export GOBUILDMODE="" |
Andrew Geissler | b7d2861 | 2020-07-24 16:15:54 -0500 | [diff] [blame] | 5 | export CGO_ENABLED_riscv64 = "" |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 6 | # 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. |
| 9 | python() { |
| 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 | } |