]> code.ossystems Code Review - openembedded-core.git/commit
package-index.bb: add support for deb and rpm.
authorDexuan Cui <dexuan.cui@intel.com>
Wed, 18 May 2011 04:09:01 +0000 (12:09 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 May 2011 11:36:32 +0000 (12:36 +0100)
commit01e34bdb43e0cc27c1cfffd6730c384f40c404c1
treeb39ea5c7ef61d0a64320e3ec538c8d0a03e99c55
parent4bfd2441904f8ef33fa48a72bb950070d99dede1
package-index.bb: add support for deb and rpm.

[YOCTO #1024]
Currently package-index.bb only supports ipk. This commit adds the support
for rpm and deb, too.

------------------------------
How to generate and use repos:

1) run "bitbake package-index" after building some target,
e.g., core-image-sato-sdk;

2) export ${DEPLOY_DIR_RPM}, ${DEPLOY_DIR_IPK} and ${DEPLOY_DIR_DEB} by a
webserver on the host, assuming the host IP is 192.168.7.1, at
http://192.168.7.1/rpm
http://192.168.7.1/ipk
http://192.168.7.1/deb

3) inside the target, according to the packaging system (rpm, ipk or deb) used
when we generate the target image, we can use different ways to manage
packages:

3.1) RPM
    run "zypper addrepo http://192.168.7.1/rpm main; zypper refresh"
    to retrieve info about the repo; next, we can use "zypper install/remove"
    to manage packages.

3.2) IPK
    add the repo info into opkg config file, i.e., in
    /etc/opkg/arch.conf, we can add something like
    "src i586 http://192.168.7.1/ipk/i586", and next, we run "opkg update" to
    make opkg update the list of available packages. And later, we can use
    "opkg install/remove" to manage packages.

3.3) DEB
    Currently in target, some important config files, like
/var/lib/dpkg/status and /etc/apt/sources.list, for deb/apt are missing. So
we can't install/remove package in target at present.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
meta/classes/package_deb.bbclass
meta/classes/package_ipk.bbclass
meta/classes/package_rpm.bbclass
meta/recipes-core/meta/package-index.bb