diff options
-rw-r--r-- | meta/recipes-devtools/binutils/binutils.inc | 18 | ||||
-rw-r--r-- | meta/recipes-devtools/binutils/binutils_2.22.bb | 2 |
2 files changed, 11 insertions, 9 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc index 552b80871b..2440509207 100644 --- a/meta/recipes-devtools/binutils/binutils.inc +++ b/meta/recipes-devtools/binutils/binutils.inc | |||
@@ -146,12 +146,14 @@ do_install_virtclass-native () { | |||
146 | rmdir ${D}/${libdir}64 || : | 146 | rmdir ${D}/${libdir}64 || : |
147 | } | 147 | } |
148 | 148 | ||
149 | pkg_postinst_${PN}-symlinks () { | 149 | inherit update-alternatives |
150 | update-alternatives --install ${bindir}/ar ar ${TARGET_PREFIX}ar 100 | ||
151 | update-alternatives --install ${bindir}/strings strings ${TARGET_PREFIX}strings 100 | ||
152 | } | ||
153 | 150 | ||
154 | pkg_prerm_${PN}-symlinks () { | 151 | ALTERNATIVE_PRIORITY = "100" |
155 | update-alternatives --remove ar ${TARGET_PREFIX}ar | 152 | |
156 | update-alternatives --remove strings ${TARGET_PREFIX}strings | 153 | ALTERNATIVE_${PN}-symlinks = "ar strings" |
157 | } | 154 | |
155 | ALTERNATIVE_LINK_NAME[ar] = "${bindir}/ar" | ||
156 | ALTERNATIVE_TARGET[ar] = "${bindir}/${TARGET_PREFIX}ar" | ||
157 | |||
158 | ALTERNATIVE_LINK_NAME[strings] = "${bindir}/strings" | ||
159 | ALTERNATIVE_TARGET[strings] = "${bindir}/${TARGET_PREFIX}strings" | ||
diff --git a/meta/recipes-devtools/binutils/binutils_2.22.bb b/meta/recipes-devtools/binutils/binutils_2.22.bb index ae15e82eb0..9f62883ff3 100644 --- a/meta/recipes-devtools/binutils/binutils_2.22.bb +++ b/meta/recipes-devtools/binutils/binutils_2.22.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require binutils.inc | 1 | require binutils.inc |
2 | 2 | ||
3 | PR = "r7" | 3 | PR = "r8" |
4 | 4 | ||
5 | LIC_FILES_CHKSUM="\ | 5 | LIC_FILES_CHKSUM="\ |
6 | file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ | 6 | file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\ |