summaryrefslogtreecommitdiffstats
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:44:59 +0000
commitff03a5167c9ea7c7096be8dec6350b919bc31927 (patch)
tree782c676246da11c14f9f9facd906fc72de81630f
parentb26640f30a4c80fcedda0d19bcf96ed412062a33 (diff)
downloadpoky-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>
-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}"