diff options
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc index db17ae4685..d3875c94d3 100644 --- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc +++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc | |||
| @@ -139,6 +139,29 @@ do_install () { | |||
| 139 | chown -R root:root ${D} | 139 | chown -R root:root ${D} |
| 140 | 140 | ||
| 141 | cross_canadian_bindirlinks | 141 | cross_canadian_bindirlinks |
| 142 | |||
| 143 | for i in linux ${CANADIANEXTRAOS} | ||
| 144 | do | ||
| 145 | for v in ${CANADIANEXTRAVENDOR} | ||
| 146 | do | ||
| 147 | d=${D}${bindir}/../${TARGET_ARCH}$v-$i | ||
| 148 | install -d $d | ||
| 149 | for j in ${TARGET_PREFIX}gcc${EXEEXT} ${TARGET_PREFIX}g++${EXEEXT} | ||
| 150 | do | ||
| 151 | p=${TARGET_ARCH}$v-$i-`echo $j | sed -e s,${TARGET_PREFIX},,` | ||
| 152 | case $i in | ||
| 153 | *musl*) | ||
| 154 | rm -rf $d/$p | ||
| 155 | echo "#!/usr/bin/env sh" > $d/$p | ||
| 156 | echo "exec \`dirname \$0\`/../${TARGET_SYS}/$j -mmusl \$@" >> $d/$p | ||
| 157 | chmod 0755 $d/$p | ||
| 158 | ;; | ||
| 159 | *) | ||
| 160 | ;; | ||
| 161 | esac | ||
| 162 | done | ||
| 163 | done | ||
| 164 | done | ||
| 142 | } | 165 | } |
| 143 | 166 | ||
| 144 | ELFUTILS = "nativesdk-elfutils" | 167 | ELFUTILS = "nativesdk-elfutils" |
