diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-01-29 12:21:32 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-01-29 12:21:32 +0000 |
commit | 9737011e5f5bbe58463e74f1cde43a3b71845215 (patch) | |
tree | b72113cdf9837a371cd070eab4923c7d99c558ef /meta/packages/opkg | |
parent | eb6d6f3dc1bceda83d2c8f557a415c87c692f99a (diff) | |
download | poky-9737011e5f5bbe58463e74f1cde43a3b71845215.tar.gz |
opkg: We must always include a valid arch.conf file
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/opkg')
-rw-r--r-- | meta/packages/opkg/opkg-config-base_1.0.bb | 28 | ||||
-rw-r--r-- | meta/packages/opkg/opkg_svn.bb | 4 |
2 files changed, 30 insertions, 2 deletions
diff --git a/meta/packages/opkg/opkg-config-base_1.0.bb b/meta/packages/opkg/opkg-config-base_1.0.bb new file mode 100644 index 0000000000..e766f0c7b5 --- /dev/null +++ b/meta/packages/opkg/opkg-config-base_1.0.bb | |||
@@ -0,0 +1,28 @@ | |||
1 | DESCRIPTION = "Base configuration files for opkg" | ||
2 | |||
3 | PACKAGE_ARCH = "${MACHINE_ARCH}" | ||
4 | |||
5 | do_compile() { | ||
6 | mkdir -p ${S}/${sysconfdir}/opkg/ | ||
7 | |||
8 | archconf=${S}/${sysconfdir}/opkg/arch.conf | ||
9 | |||
10 | rm -f $archconf | ||
11 | ipkgarchs="${PACKAGE_ARCHS}" | ||
12 | priority=1 | ||
13 | for arch in $ipkgarchs; do | ||
14 | echo "arch $arch $priority" >> $archconf | ||
15 | priority=$(expr $priority + 5) | ||
16 | done | ||
17 | } | ||
18 | |||
19 | |||
20 | do_install () { | ||
21 | install -d ${D}${sysconfdir}/opkg | ||
22 | install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ | ||
23 | } | ||
24 | |||
25 | FILES_${PN} = "${sysconfdir}/opkg/ " | ||
26 | |||
27 | CONFFILES_${PN} += "${sysconfdir}/opkg/arch.conf" | ||
28 | |||
diff --git a/meta/packages/opkg/opkg_svn.bb b/meta/packages/opkg/opkg_svn.bb index 9df8cf3561..9d8bec8187 100644 --- a/meta/packages/opkg/opkg_svn.bb +++ b/meta/packages/opkg/opkg_svn.bb | |||
@@ -3,12 +3,12 @@ require opkg.inc | |||
3 | PROVIDES += "virtual/update-alternatives" | 3 | PROVIDES += "virtual/update-alternatives" |
4 | RPROVIDES_update-alternatives-cworth += "update-alternatives" | 4 | RPROVIDES_update-alternatives-cworth += "update-alternatives" |
5 | RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg" | 5 | RCONFLICTS_update-alternatives-cworth = "update-alternatives-dpkg" |
6 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}" | 6 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base" |
7 | RDEPENDS_${PN}_virtclass-native = "" | 7 | RDEPENDS_${PN}_virtclass-native = "" |
8 | RDEPENDS_${PN}_virtclass-nativesdk = "" | 8 | RDEPENDS_${PN}_virtclass-nativesdk = "" |
9 | PACKAGE_ARCH_update-alternatives-cworth = "all" | 9 | PACKAGE_ARCH_update-alternatives-cworth = "all" |
10 | 10 | ||
11 | PR = "r11" | 11 | PR = "r12" |
12 | 12 | ||
13 | PACKAGES =+ "libopkg-dev libopkg update-alternatives-cworth" | 13 | PACKAGES =+ "libopkg-dev libopkg update-alternatives-cworth" |
14 | 14 | ||