Add custom fstab and profile for Visstrim_M10 board.
authorJavier Martin <javier.martin@vista-silicon.com>
Wed, 9 Feb 2011 17:37:12 +0000 (17:37 +0000)
committerTom Rini <tom_rini@mentor.com>
Sat, 12 Feb 2011 15:03:51 +0000 (08:03 -0700)
Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/base-files/base-files/visstrim_m10/fstab [new file with mode: 0644]
recipes/base-files/base-files/visstrim_m10/profile [new file with mode: 0644]
recipes/base-files/base-files_3.0.14.bb

diff --git a/recipes/base-files/base-files/visstrim_m10/fstab b/recipes/base-files/base-files/visstrim_m10/fstab
new file mode 100644 (file)
index 0000000..c50280c
--- /dev/null
@@ -0,0 +1,9 @@
+# Visstrim_M10 fstab
+
+proc                 /proc                proc       defaults              0  0
+sys                  /sys                 sysfs      defaults              0  0
+usbfs                /proc/bus/usb        usbfs      defaults              0  0
+tmpfs                /media/ram           tmpfs      defaults              0  0
+devpts               /dev/pts             devpts     defaults              0  0
+
+/dev/mmcblk0p1       /opt                 auto       defaults,sync,noauto  0  0
diff --git a/recipes/base-files/base-files/visstrim_m10/profile b/recipes/base-files/base-files/visstrim_m10/profile
new file mode 100644 (file)
index 0000000..7ae3dfb
--- /dev/null
@@ -0,0 +1,34 @@
+# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
+# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
+
+PATH="/opt/usr/bin:/opt/bin:/opt/sbin:/usr/local/bin:/usr/bin:/bin"
+EDITOR="/bin/vi"                       # needed for packages like cron
+test -z "$TERM" && TERM="vt100"        # Basic terminal capab. For screen etc.
+
+if [ ! -e /etc/localtime -a ! -e /etc/TZ ]; then
+       TZ="UTC"                # Time Zone. Look at http://theory.uwinnipeg.ca/gnu/glibc/libc_303.html
+                               # for an explanation of how to set this to your local timezone.
+       export TZ
+fi
+
+if [ "`id -u`" -eq 0 ]; then
+   PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
+fi
+if [ "$PS1" ]; then
+# works for bash and ash (no other shells known to be in use here)
+   PS1='\u@\h:\w\$ '
+fi
+
+if [ -d /etc/profile.d ]; then
+  for i in /etc/profile.d/*.sh; do
+    if [ -r $i ]; then
+      . $i
+    fi
+  done
+  unset i
+fi
+
+export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
+
+umask 022
+
index 2d6d926..302f68d 100644 (file)
@@ -165,6 +165,11 @@ do_install_append_tb5200l() {
        ln -s var/tmp ${D}/tmp
 }
 
+do_install_append_visstrim_m10() {
+       mkdir -p ${D}/opt
+       mkdir -p ${D}/mnt/jffs2
+       mkdir -p ${D}/mnt/defaults/etc
+}
 
 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}"
 FILES_${PN} = "/*"