diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-12-22 17:43:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-02 05:52:06 -0700 |
commit | ad23395cd1f6c0cbfcc6980b6071d589f9f6cde0 (patch) | |
tree | 9965e27a93c73af1ccf9cdb24c588faabc90370a /meta/recipes-devtools/opkg | |
parent | 58a8a38aa294edb74dde70d70a7e5faf49444b78 (diff) | |
download | poky-ad23395cd1f6c0cbfcc6980b6071d589f9f6cde0.tar.gz |
nativesdk: Switch to using nativesdk as a prefix, not a suffix
As discussed on the mailing lists, using a suffix to package names is
hard and has lead to many recipes having to do PKGSUFFIX games. Its
looking extremely hard to scale nativesdk much further without hacking
many recipes.
By comparison, using a prefix like multilib does works much better and
doesn't involve "hacking" as many recipes. This change converts nativesdk
to use a prefix using the existing multilib infrastructure.
(From OE-Core rev: 81813c0e322dc04ce4b069117188d8a54dfddb8c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/opkg')
-rw-r--r-- | meta/recipes-devtools/opkg/opkg.inc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index 5c7cad3665..10cd9d8f30 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc | |||
@@ -8,7 +8,7 @@ LICENSE = "GPLv2+" | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ | 8 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \ |
9 | file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba" | 9 | file://src/opkg-cl.c;beginline=1;endline=20;md5=321f658c3f6b6c832e25c8850b5dffba" |
10 | DEPENDS_virtclass-native = "curl-native" | 10 | DEPENDS_virtclass-native = "curl-native" |
11 | DEPENDS_virtclass-nativesdk = "curl-nativesdk" | 11 | DEPENDS_virtclass-nativesdk = "nativesdk-curl" |
12 | 12 | ||
13 | PE = "1" | 13 | PE = "1" |
14 | INC_PR = "r10" | 14 | INC_PR = "r10" |
@@ -41,12 +41,12 @@ RDEPENDS_${PN}_virtclass-nativesdk = "" | |||
41 | PACKAGE_ARCH_update-alternatives-cworth = "all" | 41 | PACKAGE_ARCH_update-alternatives-cworth = "all" |
42 | RREPLACES_${PN} = "opkg-nogpg" | 42 | RREPLACES_${PN} = "opkg-nogpg" |
43 | 43 | ||
44 | PACKAGES =+ "libopkg${PKGSUFFIX}-dev libopkg${PKGSUFFIX}-staticdev libopkg${PKGSUFFIX} update-alternatives-cworth${PKGSUFFIX}" | 44 | PACKAGES =+ "libopkg-dev libopkg-staticdev libopkg update-alternatives-cworth" |
45 | 45 | ||
46 | FILES_update-alternatives-cworth${PKGSUFFIX} = "${bindir}/update-alternatives" | 46 | FILES_update-alternatives-cworth = "${bindir}/update-alternatives" |
47 | FILES_libopkg${PKGSUFFIX}-dev = "${libdir}/*.la ${libdir}/*.so" | 47 | FILES_libopkg-dev = "${libdir}/*.la ${libdir}/*.so" |
48 | FILES_libopkg${PKGSUFFIX}-staticdev = "${libdir}/*.a" | 48 | FILES_libopkg-staticdev = "${libdir}/*.a" |
49 | FILES_libopkg${PKGSUFFIX} = "${libdir}/*.so.* ${localstatedir}/lib/opkg/" | 49 | FILES_libopkg = "${libdir}/*.so.* ${localstatedir}/lib/opkg/" |
50 | 50 | ||
51 | # We need to create the lock directory | 51 | # We need to create the lock directory |
52 | do_install_append() { | 52 | do_install_append() { |
@@ -75,9 +75,6 @@ ALTERNATIVE_TARGET[opkg] = "${bindir}/opkg-cl" | |||
75 | 75 | ||
76 | BBCLASSEXTEND = "native nativesdk" | 76 | BBCLASSEXTEND = "native nativesdk" |
77 | 77 | ||
78 | PKGSUFFIX = "" | ||
79 | PKGSUFFIX_virtclass-nativesdk = "-nativesdk" | ||
80 | |||
81 | # Define a variable to allow distros to run configure earlier. | 78 | # Define a variable to allow distros to run configure earlier. |
82 | # (for example, to enable loading of ethernet kernel modules before networking starts) | 79 | # (for example, to enable loading of ethernet kernel modules before networking starts) |
83 | POSTINSTALL_INITPOSITION ?= "98" | 80 | POSTINSTALL_INITPOSITION ?= "98" |