summaryrefslogtreecommitdiff
path: root/meta-xilinx/meta-xilinx-standalone/recipes-devtools/gcc/gcc-cross-canadian_%.bbappend
blob: 152348486023b316448949d6a05ddeb926e24dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require gcc-configure-xilinx-standalone.inc
require gcc-xilinx-standalone.inc

# We want to use the stock multilib configs, when available
EXTRACONFFUNCS_xilinx-standalone = ""

EXTRA_OECONF_append_xilinx-standalone = " \
        --enable-multilib \
"

# Temporary hack to build gcc cross canadian for tclibc-newlib as --with-sysroot=/not/exist
# has been removed from TARGET_OS for elf and eabi in gcc-cross-canadian.inc

python() {
    if 'xilinx-standalone' in d.getVar("DISTROOVERRIDES").split(':'):
        extraoeconfgcc = d.getVar('EXTRA_OECONF')
        extraoeconfgcc += " --with-sysroot=/not/exist"
        d.delVar('EXTRA_OECONF')
        d.setVar('EXTRA_OECONF', extraoeconfgcc)
}