summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/opkg
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r--meta/recipes-devtools/opkg/opkg.inc11
1 files changed, 4 insertions, 7 deletions
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc
index 416fb549f7..1076472779 100644
--- a/meta/recipes-devtools/opkg/opkg.inc
+++ b/meta/recipes-devtools/opkg/opkg.inc
@@ -68,6 +68,10 @@ do_install_append() {
68 -e 's,@SYSTEMD_UNITDIR@,${systemd_unitdir},g' \ 68 -e 's,@SYSTEMD_UNITDIR@,${systemd_unitdir},g' \
69 ${D}${systemd_unitdir}/system/opkg-configure.service 69 ${D}${systemd_unitdir}/system/opkg-configure.service
70 fi 70 fi
71
72 # The installed binary is 'opkg-cl' but people and scripts often expect
73 # it to just be 'opkg'
74 ln -sf opkg-cl ${D}${bindir}/opkg
71} 75}
72 76
73do_install_append_class-native() { 77do_install_append_class-native() {
@@ -96,13 +100,6 @@ rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
96fi 100fi
97} 101}
98 102
99inherit update-alternatives
100
101ALTERNATIVE_PRIORITY = "100"
102ALTERNATIVE_${PN} = "opkg"
103ALTERNATIVE_LINK_NAME[opkg] = "${bindir}/opkg"
104ALTERNATIVE_TARGET[opkg] = "${bindir}/opkg-cl"
105
106BBCLASSEXTEND = "native nativesdk" 103BBCLASSEXTEND = "native nativesdk"
107 104
108# Define a variable to allow distros to run configure earlier. 105# Define a variable to allow distros to run configure earlier.