summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2011-03-15 21:59:16 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-16 16:41:09 +0000
commita0682191e0743ed8ec1d30567eb26d4cde864ee8 (patch)
treeaa8878e64e0f0209f798cb0df2b0ef0b5a7acb03 /meta/classes
parent4c60eed742344014cdc9657cdbfebfd8691b3351 (diff)
downloadopenembedded-core-a0682191e0743ed8ec1d30567eb26d4cde864ee8.tar.gz
openembedded-core-a0682191e0743ed8ec1d30567eb26d4cde864ee8.tar.bz2
openembedded-core-a0682191e0743ed8ec1d30567eb26d4cde864ee8.zip
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. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
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 () {
# Setup base system configuration
mkdir -p ${IMAGE_ROOTFS}/etc/rpm/
+ mkdir -p ${IMAGE_ROOTFS}${rpmlibdir}
+ mkdir -p ${IMAGE_ROOTFS}${rpmlibdir}/log
+ cat > ${IMAGE_ROOTFS}${rpmlibdir}/DB_CONFIG << EOF
+# ================ Environment
+set_data_dir .
+set_create_dir .
+set_lg_dir ./log
+set_tmp_dir ./tmp
+
+# -- thread_count must be >= 8
+set_thread_count 64
+
+# ================ Logging
+
+# ================ Memory Pool
+set_mp_mmapsize 268435456
+
+# ================ Locking
+set_lk_max_locks 16384
+set_lk_max_lockers 16384
+set_lk_max_objects 16384
+mutex_set_max 163840
+
+# ================ Replication
+EOF
+
#install pacakges
export INSTALL_ROOTFS_RPM="${IMAGE_ROOTFS}"
export INSTALL_PLATFORM_RPM="${TARGET_ARCH}"