add scripts
authorAnas Nashif <anas.nashif@intel.com>
Fri, 9 Nov 2012 21:44:31 +0000 (13:44 -0800)
committerAnas Nashif <anas.nashif@intel.com>
Fri, 9 Nov 2012 21:44:31 +0000 (13:44 -0800)
21 files changed:
image-configs/custom/part/custom [new file with mode: 0644]
image-configs/custom/part/n900-2G [new file with mode: 0644]
image-configs/custom/part/n900-4G [new file with mode: 0644]
image-configs/custom/part/tizen-arm [new file with mode: 0644]
image-configs/custom/part/tizen-handset [new file with mode: 0644]
image-configs/custom/part/tizen-ivi [new file with mode: 0644]
image-configs/custom/scripts/arch-armv7hl.post [new file with mode: 0644]
image-configs/custom/scripts/boot-graphical-ivi.post [new file with mode: 0644]
image-configs/custom/scripts/boot-multiuser-ivi.post [new file with mode: 0644]
image-configs/custom/scripts/buildname.nochroot [new file with mode: 0644]
image-configs/custom/scripts/cleanup.post [new file with mode: 0644]
image-configs/custom/scripts/cogl.post [new file with mode: 0644]
image-configs/custom/scripts/inittab.post [new file with mode: 0644]
image-configs/custom/scripts/prelink.post [new file with mode: 0644]
image-configs/custom/scripts/rpm.post [new file with mode: 0644]
image-configs/custom/scripts/udev.post [new file with mode: 0644]
image-configs/custom/scripts/update.post [new file with mode: 0644]
image-configs/custom/scripts/usb-networking.post [new file with mode: 0644]
image-configs/custom/scripts/users.post [new file with mode: 0644]
image-configs/custom/scripts/uxlaunch-symlink-ivi.post [new file with mode: 0644]
image-configs/custom/scripts/uxlaunch-symlink-nb.post [new file with mode: 0644]

diff --git a/image-configs/custom/part/custom b/image-configs/custom/part/custom
new file mode 100644 (file)
index 0000000..d6c8b6b
--- /dev/null
@@ -0,0 +1,2 @@
+part / --size 1300 --ondisk sda --grow --maxsize=1450 --fstype=ext3
+#part /home --size 1000  --grow --maxsize=1450 --ondisk sdb --fstype=ext3
diff --git a/image-configs/custom/part/n900-2G b/image-configs/custom/part/n900-2G
new file mode 100644 (file)
index 0000000..fce8a34
--- /dev/null
@@ -0,0 +1,8 @@
+part / --size=1750  --ondisk mmcblk0p --fstype=ext4
+
+# This is not used currently. It is here because the /boot partition
+# needs to be the partition number 3 for the u-boot usage.
+part swap --size=8 --ondisk mmcblk0p --fstype=swap
+
+# This partition is made so that u-boot can find the kernel
+part /boot --size=32 --ondisk mmcblk0p --fstype=vfat
diff --git a/image-configs/custom/part/n900-4G b/image-configs/custom/part/n900-4G
new file mode 100644 (file)
index 0000000..be10ccf
--- /dev/null
@@ -0,0 +1,8 @@
+part / --size=3400  --ondisk mmcblk0p --fstype=ext3
+
+# This is not used currently. It is here because the /boot partition
+# needs to be the partition number 3 for the u-boot usage.
+part swap --size=256 --ondisk mmcblk0p --fstype=swap
+
+# This partition is made so that u-boot can find the kernel
+part /boot --size=64 --ondisk mmcblk0p --fstype=vfat
diff --git a/image-configs/custom/part/tizen-arm b/image-configs/custom/part/tizen-arm
new file mode 100644 (file)
index 0000000..1756909
--- /dev/null
@@ -0,0 +1,4 @@
+# ROOT fs partition
+part / --size=800 --ondisk mmcblk0p --fstype=ext4 --label=platform
+# DATA partition
+part /opt/ --size=1800 --ondisk mmcblk0p --fstype=ext4 --label=data
diff --git a/image-configs/custom/part/tizen-handset b/image-configs/custom/part/tizen-handset
new file mode 100644 (file)
index 0000000..12df959
--- /dev/null
@@ -0,0 +1,3 @@
+part /boot --size 32 --ondisk sdb --fstype=ext2
+part /opt --size 300 --ondisk sdb --fstype=ext3
+part / --size 1024 --ondisk sdb --fstype=ext3
diff --git a/image-configs/custom/part/tizen-ivi b/image-configs/custom/part/tizen-ivi
new file mode 100644 (file)
index 0000000..dc08af1
--- /dev/null
@@ -0,0 +1,3 @@
+part /boot --size 32 --ondisk sdb --fstype=ext2
+part /opt --size 300 --ondisk sdb --fstype=ext4
+part / --size 1024 --ondisk sdb --fstype=ext4
diff --git a/image-configs/custom/scripts/arch-armv7hl.post b/image-configs/custom/scripts/arch-armv7hl.post
new file mode 100644 (file)
index 0000000..955f819
--- /dev/null
@@ -0,0 +1,6 @@
+# Without this line the rpm don't get the architecture right.
+echo -n 'armv7hl-tizen-linux' > /etc/rpm/platform
+# Also libzypp has problems in autodetecting the architecture so we force tha as well.
+# https://bugs.meego.com/show_bug.cgi?id=11484
+echo 'arch = armv7hl' >> /etc/zypp/zypp.conf
diff --git a/image-configs/custom/scripts/boot-graphical-ivi.post b/image-configs/custom/scripts/boot-graphical-ivi.post
new file mode 100644 (file)
index 0000000..495d1af
--- /dev/null
@@ -0,0 +1,3 @@
+# Boot with full UX. 
+ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
+
diff --git a/image-configs/custom/scripts/boot-multiuser-ivi.post b/image-configs/custom/scripts/boot-multiuser-ivi.post
new file mode 100644 (file)
index 0000000..4a99772
--- /dev/null
@@ -0,0 +1,3 @@
+# Boot multi-user with no UX. (Sort of like init runlevel 3.) 
+ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
+
diff --git a/image-configs/custom/scripts/buildname.nochroot b/image-configs/custom/scripts/buildname.nochroot
new file mode 100644 (file)
index 0000000..544a400
--- /dev/null
@@ -0,0 +1,3 @@
+if [ -n "$IMG_NAME" ]; then
+    echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/tizen-release
+fi
diff --git a/image-configs/custom/scripts/cleanup.post b/image-configs/custom/scripts/cleanup.post
new file mode 100644 (file)
index 0000000..d7c0ecd
--- /dev/null
@@ -0,0 +1,2 @@
+# save a little bit of space at least...
+rm -f /boot/initrd*
diff --git a/image-configs/custom/scripts/cogl.post b/image-configs/custom/scripts/cogl.post
new file mode 100644 (file)
index 0000000..107bd06
--- /dev/null
@@ -0,0 +1,7 @@
+# Create /etc/cogl.conf file to load proper GL libraries on Cedartrail
+mkdir /etc/xdg/cogl
+echo "[global]" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_DRIVER=gles2" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_RENDERER=EGL" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_DEBUG=disable-atlas" >>/etc/xdg/cogl/cogl.conf
+
diff --git a/image-configs/custom/scripts/inittab.post b/image-configs/custom/scripts/inittab.post
new file mode 100644 (file)
index 0000000..73bb7e5
--- /dev/null
@@ -0,0 +1,3 @@
+sed -i s/ENGINE=gl/ENGINE=fb/ /etc/profile.d/menu-screen.sh
+
+echo "s1:12345:respawn:/sbin/agetty -L 115200 ttyMFD3 vt100" >> /etc/inittab
diff --git a/image-configs/custom/scripts/prelink.post b/image-configs/custom/scripts/prelink.post
new file mode 100644 (file)
index 0000000..527548c
--- /dev/null
@@ -0,0 +1,4 @@
+# Prelink can reduce boot time
+if [ -x /usr/sbin/prelink ]; then
+    /usr/sbin/prelink -aRqm
+fi
diff --git a/image-configs/custom/scripts/rpm.post b/image-configs/custom/scripts/rpm.post
new file mode 100644 (file)
index 0000000..62707bd
--- /dev/null
@@ -0,0 +1,2 @@
+rm -f /var/lib/rpm/__db*
+rpm --rebuilddb
diff --git a/image-configs/custom/scripts/udev.post b/image-configs/custom/scripts/udev.post
new file mode 100644 (file)
index 0000000..9ac3936
--- /dev/null
@@ -0,0 +1 @@
+echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
diff --git a/image-configs/custom/scripts/update.post b/image-configs/custom/scripts/update.post
new file mode 100644 (file)
index 0000000..f8cb35d
--- /dev/null
@@ -0,0 +1 @@
+cat /etc/pki/tls/certs/download.saobs.jf.intel.com >> /etc/pki/tls/certs/ca-bundle.crt
diff --git a/image-configs/custom/scripts/usb-networking.post b/image-configs/custom/scripts/usb-networking.post
new file mode 100644 (file)
index 0000000..5f5f4b1
--- /dev/null
@@ -0,0 +1,8 @@
+# enable USB networking with IP address 192.168.1.1 by default
+cat >/etc/rc.d/rc3.d/S99usbnet.sh <<END
+#!/bin/sh
+echo rndis > /sys/class/android_usb/android0/functions
+echo 1 > /sys/class/android_usb/android0/enable
+ifconfig rndis0 192.168.100.1
+END
+chmod 777 /etc/rc.d/rc3.d/S99usbnet.sh
diff --git a/image-configs/custom/scripts/users.post b/image-configs/custom/scripts/users.post
new file mode 100644 (file)
index 0000000..f1b4c4e
--- /dev/null
@@ -0,0 +1,5 @@
+mkdir -p /opt/home/app
+chown inhouse: /opt/home/app
+mkdir -p /home
+ln -s /opt/home/app /home/app
+ln -sf /opt/home/root /root
diff --git a/image-configs/custom/scripts/uxlaunch-symlink-ivi.post b/image-configs/custom/scripts/uxlaunch-symlink-ivi.post
new file mode 100644 (file)
index 0000000..1c9bd92
--- /dev/null
@@ -0,0 +1,2 @@
+# Set symlink pointing to .desktop file 
+ln -sf x-meego-ivi.desktop /usr/share/xsessions/default.desktop
diff --git a/image-configs/custom/scripts/uxlaunch-symlink-nb.post b/image-configs/custom/scripts/uxlaunch-symlink-nb.post
new file mode 100644 (file)
index 0000000..cfa310a
--- /dev/null
@@ -0,0 +1,2 @@
+# Set symlink pointing to .desktop file 
+ln -sf dawati.desktop /usr/share/xsessions/default.desktop