1*4882a593Smuzhiyunrequire go-${PV}.inc 2*4882a593Smuzhiyunrequire go-target.inc 3*4882a593Smuzhiyun 4*4882a593Smuzhiyuninherit linuxloader 5*4882a593Smuzhiyun 6*4882a593Smuzhiyunexport GOBUILDMODE="" 7*4882a593Smuzhiyunexport GO_LDSO = "${@get_linuxloader(d)}" 8*4882a593Smuzhiyunexport CC_FOR_TARGET = "gcc" 9*4882a593Smuzhiyunexport CXX_FOR_TARGET = "g++" 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun# mips/rv64 doesn't support -buildmode=pie, so skip the QA checking for mips/riscv32 and its 12*4882a593Smuzhiyun# variants. 13*4882a593Smuzhiyunpython() { 14*4882a593Smuzhiyun if 'mips' in d.getVar('TARGET_ARCH') or 'riscv32' in d.getVar('TARGET_ARCH'): 15*4882a593Smuzhiyun d.appendVar('INSANE_SKIP:%s' % d.getVar('PN'), " textrel") 16*4882a593Smuzhiyun} 17*4882a593Smuzhiyun 18