diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-11-09 13:44:31 -0800 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2012-11-09 13:44:31 -0800 |
commit | 3a76d47297e43c4b5f1e5dcb5459e0b6baad2ffb (patch) | |
tree | 2324f62d14c34a3ce32f50d76541e3d9d455b2b7 | |
parent | 78d7285d56e64442fcc4fd735cf9cdf51caa5b4b (diff) | |
download | meta-common-3a76d47297e43c4b5f1e5dcb5459e0b6baad2ffb.tar.gz meta-common-3a76d47297e43c4b5f1e5dcb5459e0b6baad2ffb.tar.bz2 meta-common-3a76d47297e43c4b5f1e5dcb5459e0b6baad2ffb.zip |
add scripts
21 files changed, 80 insertions, 0 deletions
diff --git a/image-configs/custom/part/custom b/image-configs/custom/part/custom new file mode 100644 index 0000000..d6c8b6b --- /dev/null +++ b/image-configs/custom/part/custom @@ -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 index 0000000..fce8a34 --- /dev/null +++ b/image-configs/custom/part/n900-2G @@ -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 index 0000000..be10ccf --- /dev/null +++ b/image-configs/custom/part/n900-4G @@ -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 index 0000000..1756909 --- /dev/null +++ b/image-configs/custom/part/tizen-arm @@ -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 index 0000000..12df959 --- /dev/null +++ b/image-configs/custom/part/tizen-handset @@ -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 index 0000000..dc08af1 --- /dev/null +++ b/image-configs/custom/part/tizen-ivi @@ -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 index 0000000..955f819 --- /dev/null +++ b/image-configs/custom/scripts/arch-armv7hl.post @@ -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 index 0000000..495d1af --- /dev/null +++ b/image-configs/custom/scripts/boot-graphical-ivi.post @@ -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 index 0000000..4a99772 --- /dev/null +++ b/image-configs/custom/scripts/boot-multiuser-ivi.post @@ -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 index 0000000..544a400 --- /dev/null +++ b/image-configs/custom/scripts/buildname.nochroot @@ -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 index 0000000..d7c0ecd --- /dev/null +++ b/image-configs/custom/scripts/cleanup.post @@ -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 index 0000000..107bd06 --- /dev/null +++ b/image-configs/custom/scripts/cogl.post @@ -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 index 0000000..73bb7e5 --- /dev/null +++ b/image-configs/custom/scripts/inittab.post @@ -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 index 0000000..527548c --- /dev/null +++ b/image-configs/custom/scripts/prelink.post @@ -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 index 0000000..62707bd --- /dev/null +++ b/image-configs/custom/scripts/rpm.post @@ -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 index 0000000..9ac3936 --- /dev/null +++ b/image-configs/custom/scripts/udev.post @@ -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 index 0000000..f8cb35d --- /dev/null +++ b/image-configs/custom/scripts/update.post @@ -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 index 0000000..5f5f4b1 --- /dev/null +++ b/image-configs/custom/scripts/usb-networking.post @@ -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 index 0000000..f1b4c4e --- /dev/null +++ b/image-configs/custom/scripts/users.post @@ -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 index 0000000..1c9bd92 --- /dev/null +++ b/image-configs/custom/scripts/uxlaunch-symlink-ivi.post @@ -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 index 0000000..cfa310a --- /dev/null +++ b/image-configs/custom/scripts/uxlaunch-symlink-nb.post @@ -0,0 +1,2 @@ +# Set symlink pointing to .desktop file +ln -sf dawati.desktop /usr/share/xsessions/default.desktop |