diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2011-03-15 21:59:16 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-16 16:44:59 +0000 |
commit | ff03a5167c9ea7c7096be8dec6350b919bc31927 (patch) | |
tree | 782c676246da11c14f9f9facd906fc72de81630f /meta/classes/rootfs_rpm.bbclass | |
parent | b26640f30a4c80fcedda0d19bcf96ed412062a33 (diff) | |
download | poky-ff03a5167c9ea7c7096be8dec6350b919bc31927.tar.gz |
rootfs_rpm.bbclass: Add additional system configuration to RPM space
The additional configuration should have been there from the beginning. The
purpose of these config files is to have a consistent Berkeley DB configuration
even if the underlying RPM version changes -- or the RPM macros change.
This likely would not cause any problems until we attempted an upgrade of
either BDB or RPM.
(From OE-Core rev: a0682191e0743ed8ec1d30567eb26d4cde864ee8)
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/rootfs_rpm.bbclass')
-rw-r--r-- | meta/classes/rootfs_rpm.bbclass | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/classes/rootfs_rpm.bbclass b/meta/classes/rootfs_rpm.bbclass index caafbdc721..04ccabd5f4 100644 --- a/meta/classes/rootfs_rpm.bbclass +++ b/meta/classes/rootfs_rpm.bbclass | |||
@@ -46,6 +46,32 @@ fakeroot rootfs_rpm_do_rootfs () { | |||
46 | # Setup base system configuration | 46 | # Setup base system configuration |
47 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ | 47 | mkdir -p ${IMAGE_ROOTFS}/etc/rpm/ |
48 | 48 | ||
49 | mkdir -p ${IMAGE_ROOTFS}${rpmlibdir} | ||
50 | mkdir -p ${IMAGE_ROOTFS}${rpmlibdir}/log | ||
51 | cat > ${IMAGE_ROOTFS}${rpmlibdir}/DB_CONFIG << EOF | ||
52 | # ================ Environment | ||
53 | set_data_dir . | ||
54 | set_create_dir . | ||
55 | set_lg_dir ./log | ||
56 | set_tmp_dir ./tmp | ||
57 | |||
58 | # -- thread_count must be >= 8 | ||
59 | set_thread_count 64 | ||
60 | |||
61 | # ================ Logging | ||
62 | |||
63 | # ================ Memory Pool | ||
64 | set_mp_mmapsize 268435456 | ||
65 | |||
66 | # ================ Locking | ||
67 | set_lk_max_locks 16384 | ||
68 | set_lk_max_lockers 16384 | ||
69 | set_lk_max_objects 16384 | ||
70 | mutex_set_max 163840 | ||
71 | |||
72 | # ================ Replication | ||
73 | EOF | ||
74 | |||
49 | #install pacakges | 75 | #install pacakges |
50 | export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}" | 76 | export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}" |
51 | export INSTALL_PLATFORM_RPM="${TARGET_ARCH}" | 77 | export INSTALL_PLATFORM_RPM="${TARGET_ARCH}" |