From d0cb4fb3aab1d6041f88fa564e5d745629316ae2 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Fri, 19 Dec 2014 17:31:16 +0000 Subject: opkg-arch-config: Renamed from opkg-config-base The name 'opkg-arch-config' is much more descriptive. Signed-off-by: Paul Barker --- meta/conf/layer.conf | 2 +- meta/recipes-devtools/opkg/opkg-arch-config_1.0.bb | 33 ++++++++++++++++++++++ meta/recipes-devtools/opkg/opkg-config-base_1.0.bb | 30 -------------------- meta/recipes-devtools/opkg/opkg.inc | 2 +- 4 files changed, 35 insertions(+), 32 deletions(-) create mode 100644 meta/recipes-devtools/opkg/opkg-arch-config_1.0.bb delete mode 100644 meta/recipes-devtools/opkg/opkg-config-base_1.0.bb diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf index de96548bd2..4fd3a16cec 100644 --- a/meta/conf/layer.conf +++ b/meta/conf/layer.conf @@ -18,7 +18,7 @@ COREBASE = '${@os.path.normpath("${LAYERDIR}/../")}' SIGGEN_EXCLUDERECIPES_ABISAFE += " \ sysvinit-inittab \ shadow-securetty \ - opkg-config-base \ + opkg-arch-config \ netbase \ init-ifupdown \ connman-conf \ diff --git a/meta/recipes-devtools/opkg/opkg-arch-config_1.0.bb b/meta/recipes-devtools/opkg/opkg-arch-config_1.0.bb new file mode 100644 index 0000000000..4540de2daf --- /dev/null +++ b/meta/recipes-devtools/opkg/opkg-arch-config_1.0.bb @@ -0,0 +1,33 @@ +SUMMARY = "Architecture-dependent configuration for opkg" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" +PACKAGE_ARCH = "${MACHINE_ARCH}" +PR = "r1" + +do_compile() { + mkdir -p ${S}/${sysconfdir}/opkg/ + + archconf=${S}/${sysconfdir}/opkg/arch.conf + + rm -f $archconf + ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}" + priority=1 + for arch in $ipkgarchs; do + echo "arch $arch $priority" >> $archconf + priority=$(expr $priority + 5) + done +} + + +do_install () { + install -d ${D}${sysconfdir}/opkg + install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ +} + +FILES_${PN} = "${sysconfdir}/opkg/ " + +CONFFILES_${PN} += "${sysconfdir}/opkg/arch.conf" + +RREPLACES_${PN} = "opkg-config-base" +RCONFLICTS_${PN} = "opkg-config-base" +RPROVIDES_${PN} = "opkg-config-base" diff --git a/meta/recipes-devtools/opkg/opkg-config-base_1.0.bb b/meta/recipes-devtools/opkg/opkg-config-base_1.0.bb deleted file mode 100644 index acbe1296bf..0000000000 --- a/meta/recipes-devtools/opkg/opkg-config-base_1.0.bb +++ /dev/null @@ -1,30 +0,0 @@ -SUMMARY = "Base configuration files for opkg" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" -PACKAGE_ARCH = "${MACHINE_ARCH}" -PR = "r1" - -do_compile() { - mkdir -p ${S}/${sysconfdir}/opkg/ - - archconf=${S}/${sysconfdir}/opkg/arch.conf - - rm -f $archconf - ipkgarchs="${ALL_MULTILIB_PACKAGE_ARCHS}" - priority=1 - for arch in $ipkgarchs; do - echo "arch $arch $priority" >> $archconf - priority=$(expr $priority + 5) - done -} - - -do_install () { - install -d ${D}${sysconfdir}/opkg - install -m 0644 ${S}/${sysconfdir}/opkg/* ${D}${sysconfdir}/opkg/ -} - -FILES_${PN} = "${sysconfdir}/opkg/ " - -CONFFILES_${PN} += "${sysconfdir}/opkg/arch.conf" - diff --git a/meta/recipes-devtools/opkg/opkg.inc b/meta/recipes-devtools/opkg/opkg.inc index 56c54b6ab7..991c114fd4 100644 --- a/meta/recipes-devtools/opkg/opkg.inc +++ b/meta/recipes-devtools/opkg/opkg.inc @@ -38,7 +38,7 @@ EXTRA_OECONF = "\ --with-opkglibdir=${OPKGLIBDIR} \ " -RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-config-base run-postinsts" +RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives} opkg-arch-config run-postinsts" RDEPENDS_${PN}_class-native = "" RDEPENDS_${PN}_class-nativesdk = "" RREPLACES_${PN} = "opkg-nogpg" -- cgit v1.2.3