summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-03-15 21:59:16 -0500
committerSaul Wold <sgw@linux.intel.com>2011-03-16 18:12:08 -0700
commit387e05af6d6f71b43c677983668da418a1633e0d (patch)
tree1b47a77e984c11937edd0bc55ab1b072e459decb /meta/classes
parent806df0f8de01b6fbe0e53b2d3b226f31fca7fc5c (diff)
downloadpoky-387e05af6d6f71b43c677983668da418a1633e0d.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')
-rw-r--r--meta/classes/rootfs_rpm.bbclass26
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
53set_data_dir .
54set_create_dir .
55set_lg_dir ./log
56set_tmp_dir ./tmp
57
58# -- thread_count must be >= 8
59set_thread_count 64
60
61# ================ Logging
62
63# ================ Memory Pool
64set_mp_mmapsize 268435456
65
66# ================ Locking
67set_lk_max_locks 16384
68set_lk_max_lockers 16384
69set_lk_max_objects 16384
70mutex_set_max 163840
71
72# ================ Replication
73EOF
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}"