diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-07-23 10:43:22 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-07-29 10:16:14 +0100 |
commit | a73c25d2ded3a72159f2ce527e7307808c734686 (patch) | |
tree | 5e27f29a2b6c6b91cf20a64508878646013e2ba7 /meta/recipes-devtools/rpm/rpmresolve_1.0.bb | |
parent | 656726ad6044d8b7e5661251a985770c93cb9242 (diff) | |
download | poky-a73c25d2ded3a72159f2ce527e7307808c734686.tar.gz |
classes/rootfs_rpm: improve speed of RPM rootfs construction
Improve the performance of the RPM backend during do_rootfs by
performing most of the package name to file resolution in a separate
utility written in C, processing the entire list of packages at once
rather than running rpm on the command line which loads the RPM database
for every package.
(From OE-Core rev: 9135d351ba7cb21e50239d2b310565680bd4fdca)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rpm/rpmresolve_1.0.bb')
-rw-r--r-- | meta/recipes-devtools/rpm/rpmresolve_1.0.bb | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-devtools/rpm/rpmresolve_1.0.bb b/meta/recipes-devtools/rpm/rpmresolve_1.0.bb new file mode 100644 index 0000000000..f8750e02ba --- /dev/null +++ b/meta/recipes-devtools/rpm/rpmresolve_1.0.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | SUMMARY = "OpenEmbedded RPM resolver utility" | ||
2 | DESCRIPTION = "OpenEmbedded RPM resolver - performs RPM database lookups in batches to avoid \ | ||
3 | repeated invocations of rpm on the command line." | ||
4 | DEPENDS = "rpm" | ||
5 | LICENSE = "GPLv2" | ||
6 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" | ||
7 | PR = "r0" | ||
8 | |||
9 | SRC_URI = "file://rpmresolve.c" | ||
10 | |||
11 | S = "${WORKDIR}" | ||
12 | |||
13 | do_compile() { | ||
14 | ${CC} ${CFLAGS} -ggdb -I${STAGING_INCDIR}/rpm ${LDFLAGS} rpmresolve.c -o rpmresolve -lrpmbuild -lrpm -lrpmio -lrpmdb -lpopt | ||
15 | } | ||
16 | |||
17 | do_install() { | ||
18 | install -d ${D}${bindir} | ||
19 | install -m 0755 rpmresolve ${D}${bindir} | ||
20 | } | ||
21 | |||
22 | BBCLASSEXTEND = "native" | ||