Add custom opkg settings for Visstrim_M10 board.
authorJavier Martin <javier.martin@vista-silicon.com>
Wed, 9 Feb 2011 17:37:14 +0000 (17:37 +0000)
committerTom Rini <tom_rini@mentor.com>
Sat, 12 Feb 2011 15:03:53 +0000 (08:03 -0700)
"/opt" is used in Visstrim_M10 boards as the working directory
for opkg.

Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/opkg/opkg-collateral/visstrim_m10/dest [new file with mode: 0644]
recipes/opkg/opkg-collateral/visstrim_m10/lists [new file with mode: 0644]
recipes/opkg/opkg-collateral/visstrim_m10/tmp_dir [new file with mode: 0644]
recipes/opkg/opkg_svn.bb

diff --git a/recipes/opkg/opkg-collateral/visstrim_m10/dest b/recipes/opkg/opkg-collateral/visstrim_m10/dest
new file mode 100644 (file)
index 0000000..c2b9657
--- /dev/null
@@ -0,0 +1 @@
+dest root /opt
diff --git a/recipes/opkg/opkg-collateral/visstrim_m10/lists b/recipes/opkg/opkg-collateral/visstrim_m10/lists
new file mode 100644 (file)
index 0000000..77c0834
--- /dev/null
@@ -0,0 +1,2 @@
+lists_dir ext /opt/var/lib/opkg
+
diff --git a/recipes/opkg/opkg-collateral/visstrim_m10/tmp_dir b/recipes/opkg/opkg-collateral/visstrim_m10/tmp_dir
new file mode 100644 (file)
index 0000000..b3f8d53
--- /dev/null
@@ -0,0 +1,4 @@
+# We have whole /tmp in volatile tmpfs which is better than wear leveling NAND or uSD
+# But also bad for big upgrades where tmpfs eats whole memory,
+# device starts swapping (possibly using more NAND/uSD than temporary unpack) and then segfaults because of lack of space
+option tmp_dir /tmp
index cfdf9fc..7ea1510 100644 (file)
@@ -21,3 +21,5 @@ pkg_postrm_${PN} () {
 }
 
 require update-alternatives-merge.inc
+
+EXTRA_OECONF_append_visstrim_m10 = " --with-opkglockfile=/var/lock/opkg.lock"