From: Gary Thomas <gary@mlbassoc.com>
To: Poky Project <poky@yoctoproject.org>
Subject: [PATCH] Update poky-feed-config-opkg to generate a useful package setup
Date: Fri, 02 Sep 2011 10:46:29 -0600 [thread overview]
Message-ID: <4E610865.1000305@mlbassoc.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 970 bytes --]
The current poky-feed-config-opkg package only generates a skeleton for the
opkg setups. In particular, the base configuration file /etc/opkg/base-files.conf
is not filled in at all.
The attached patch fills this file in, using variables set by the
user (local.conf, site.conf, etc). If left unset, the behaviour will
be the same as current.
One thing I found is that opkg is very noisy if there are databases
mentioned in base-files.conf that don't exist. For example, on ARM
platforms, there are a large number of possibilities (arm, armv5, armv6, ...)
that are never populated in .../tmp/deploy/ipk. The changes to this
recipe will prune the file to only include those ipk databases which
have actual files present.
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
[-- Attachment #2: 0001-Generate-useful-opkg-setup.patch --]
[-- Type: text/plain, Size: 1933 bytes --]
From 5f2702b306f5595e6d66b756776a8c8bcc905149 Mon Sep 17 00:00:00 2001
From: Gary Thomas <gary@mlbassoc.com>
Date: Fri, 2 Sep 2011 10:40:43 -0600
Subject: [PATCH] Generate useful opkg setup
Signed-off-by: Gary Thomas <gary@mlbassoc.com>
---
.../feed-config/poky-feed-config-opkg_1.0.bb | 20 ++++++++++++++------
1 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb b/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb
index fc223c9..30b5e2e 100644
--- a/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb
+++ b/meta/recipes-core/feed-config/poky-feed-config-opkg_1.0.bb
@@ -1,12 +1,12 @@
DESCRIPTION = "Poky example feed configuration"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
-PR = "r1"
+PR = "r2"
PACKAGE_ARCH = "${MACHINE_ARCH}"
INHIBIT_DEFAULT_DEPS = "1"
-#FEEDNAMEPREFIX ?= "INVALID"
-#FEEDURIPREFIX ?= "INVALID"
+FEEDNAMEPREFIX ?= "INVALID"
+FEEDURIPREFIX ?= "INVALID"
do_compile() {
mkdir -p ${S}/${sysconfdir}/opkg/
@@ -26,11 +26,19 @@ do_compile() {
rm -f $basefeedconf
touch $basefeedconf
- #for arch in $ipkgarchs; do
- # echo "src/gz ${FEEDNAMEPREFIX}-$arch http://pokylinux.org/${FEEDURIPREFIX}$arch" >> $basefeedconf
- #done
+ if [ "${FEEDNAMEPREFIX}" != "INVALID" ]; then
+ for arch in $ipkgarchs; do
+ # Only export real directories
+ if [ -d "${DEPLOY_DIR}/ipk/${arch}" ]; then
+ echo "src/gz ${FEEDNAMEPREFIX}-$arch ${FEEDURIPREFIX}/$arch" >> $basefeedconf
+ fi
+ done
+ fi
}
+# This should ensure that all active architectures are represented above
+do_compile[depends] += "base-files:do_package"
+do_compile[depends] += "virtual/kernel:do_package"
do_install () {
install -d ${D}${sysconfdir}/opkg
--
1.7.6
next reply other threads:[~2011-09-02 16:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-02 16:46 Gary Thomas [this message]
2011-09-02 17:04 ` [PATCH] Update poky-feed-config-opkg to generate a useful package setup Richard Purdie
2011-09-02 17:10 ` Gary Thomas
2011-09-02 17:34 ` Richard Purdie
2011-09-02 19:52 ` Gary Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E610865.1000305@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=poky@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.