2013-12-19 15:13:01 +00:00
|
|
|
SUMMARY = "Rebuilds the package index"
|
2005-08-31 10:45:47 +00:00
|
|
|
LICENSE = "MIT"
|
|
|
|
|
|
|
|
INHIBIT_DEFAULT_DEPS = "1"
|
|
|
|
PACKAGES = ""
|
|
|
|
|
2010-11-28 16:17:27 +00:00
|
|
|
do_fetch[noexec] = "1"
|
|
|
|
do_unpack[noexec] = "1"
|
|
|
|
do_patch[noexec] = "1"
|
|
|
|
do_configure[noexec] = "1"
|
|
|
|
do_compile[noexec] = "1"
|
|
|
|
do_install[noexec] = "1"
|
|
|
|
do_package[noexec] = "1"
|
2013-01-23 14:27:33 +00:00
|
|
|
do_packagedata[noexec] = "1"
|
2010-11-28 16:17:27 +00:00
|
|
|
do_package_write[noexec] = "1"
|
|
|
|
do_package_write_ipk[noexec] = "1"
|
|
|
|
do_package_write_rpm[noexec] = "1"
|
|
|
|
do_package_write_deb[noexec] = "1"
|
|
|
|
do_populate_sysroot[noexec] = "1"
|
2005-08-31 10:45:47 +00:00
|
|
|
|
2010-11-28 16:17:27 +00:00
|
|
|
do_package_index[nostamp] = "1"
|
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.
(From OE-Core rev: 01e34bdb43e0cc27c1cfffd6730c384f40c404c1)
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-18 04:09:01 +00:00
|
|
|
do_package_index[depends] += "${PACKAGEINDEXDEPS}"
|
2011-03-15 09:37:11 +00:00
|
|
|
|
2010-11-28 16:17:27 +00:00
|
|
|
do_package_index() {
|
2005-08-31 10:45:47 +00:00
|
|
|
set -ex
|
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.
(From OE-Core rev: 01e34bdb43e0cc27c1cfffd6730c384f40c404c1)
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-05-18 04:09:01 +00:00
|
|
|
${PACKAGEINDEXES}
|
2005-08-31 10:45:47 +00:00
|
|
|
set +ex
|
|
|
|
}
|
2010-11-28 16:17:27 +00:00
|
|
|
addtask do_package_index before do_build
|
2009-08-19 20:05:53 +00:00
|
|
|
EXCLUDE_FROM_WORLD = "1"
|