/
gcc_%.bbappend
55 lines (43 loc) · 1.25 KB
/
gcc_%.bbappend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
updateMips () {
:
}
updateMips_linux-gnun32 () {
cd ${B}
cat > gcc/config/mips/t-linux64 << EOF
MULTILIB_OPTIONS = mabi=64/mabi=n32
MULTILIB_DIRNAMES = . 32
MULTILIB_OSDIRNAMES = ../lib64 ../lib32
EOF
}
EXTRACONFFUNCS += "updateMips"
do_install_append () {
rm -f ${D}${bindir}/gcc
rm -f ${D}${bindir}/cpp
rm -f ${D}${bindir}/g++
}
ALLOW_EMPTY_cpp-symlinks = "1"
ALTERNATIVE_PRIORITY='${@oe.utils.conditional("PN", d.getVar("BPN", True), "110", "100", d)}'
pkg_postinst_gcc-symlinks () {
#!/bin/sh
update-alternatives --install ${bindir}/gcc gcc ${TARGET_PREFIX}gcc ${ALTERNATIVE_PRIORITY}
}
pkg_prerm_gcc-symlinks () {
#!/bin/sh
update-alternatives --remove gcc ${TARGET_PREFIX}gcc ${ALTERNATIVE_PRIORITY}
}
pkg_postinst_g++-symlinks () {
#!/bin/sh
update-alternatives --install ${bindir}/g++ g++ ${TARGET_PREFIX}g++ ${ALTERNATIVE_PRIORITY}
}
pkg_prerm_g++-symlinks () {
#!/bin/sh
update-alternatives --remove g++ ${TARGET_PREFIX}g++ ${ALTERNATIVE_PRIORITY}
}
pkg_postinst_cpp-symlinks () {
#!/bin/sh
update-alternatives --install ${bindir}/cpp cpp ${TARGET_PREFIX}cpp ${ALTERNATIVE_PRIORITY}
}
pkg_prerm_cpp-symlinks() {
#!/bin/sh
update-alternatives --remove cpp ${TARGET_PREFIX}cpp ${ALTERNATIVE_PRIORITY}
}