Guest User

N900 QMLViewer Kickstarter

a guest
Feb 13th, 2012
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.81 KB | None | 0 0
  1. # -*-mic2-options-*- -f raw --save-kernel --record-pkgs=name --pkgmgr=yum --arch=armv7hl -*-mic2-options-*-
  2. #
  3. # Do not Edit! Generated by:
  4. # kickstarter.py
  5. #
  6.  
  7. lang en_US.UTF-8
  8. keyboard us
  9. timezone --utc America/Los_Angeles
  10. part / --size=3600 --ondisk mmcblk0p --fstype=ext4
  11.  
  12. # This is not used currently. It is here because the /boot partition
  13. # needs to be the partition number 3 for the u-boot usage.
  14. part swap --size=8 --ondisk mmcblk0p --fstype=swap
  15.  
  16. # This partition is made so that u-boot can find the kernel
  17. part /boot --size=64 --ondisk mmcblk0p --fstype=vfat
  18.  
  19. rootpw meego
  20.  
  21. user --name meego --groups audio,video --password meego
  22.  
  23. repo --name=mer-core --baseurl=http://releases.merproject.org/releases/latest/builds/armv7hl/packages/ --save --debuginfo --source
  24. repo --name=ce-utils --baseurl=http://repo.pub.meego.com/CE:/Utils/Mer_Core_armv7hl/ --save --debuginfo --source
  25. repo --name=ce-mw-shared --baseurl=http://repo.pub.meego.com/CE:/MW:/Shared/Mer_Core_armv7hl/ --save --debuginfo --source
  26. repo --name=ce-mw-mtf --baseurl=http://repo.pub.meego.com/CE:/MW:/MTF/CE_MW_Shared_armv7hl/ --save --debuginfo --source
  27. repo --name=ce-apps --baseurl=http://repo.pub.meego.com/CE:/Apps/CE_MW_Shared_armv7hl/ --save --debuginfo --source
  28. repo --name=ce-apps-mtf --baseurl=http://repo.pub.meego.com/CE:/Apps:/MTF/CE_MW_MTF_armv7hl/ --save --debuginfo --source
  29. repo --name=ce-ux-mtf --baseurl=http://repo.pub.meego.com/CE:/UX:/MTF/CE_MW_MTF_armv7hl/ --save --debuginfo --source
  30. repo --name=ce-mtf-tracker-related-apps --baseurl=http://repo.pub.meego.com/Project:/MTF:/Tracker/CE_UX_MTF_armv7hl/ --save --debuginfo --source
  31. repo --name=ce-adaptation-n9xx-common --baseurl=http://repo.pub.meego.com/CE:/Adaptation:/N9xx-common/Mer_Core_armv7hl/ --save --debuginfo --source
  32. repo --name=ce-adaptation-n900 --baseurl=http://repo.pub.meego.com/CE:/Adaptation:/N900/CE_Adaptation_N9xx-common_armv7hl/ --save --debuginfo --source
  33.  
  34. %packages
  35.  
  36. @Mer Core
  37. @Mer Graphics Common
  38. @Mer Connectivity
  39. # @Nemo Middleware Shared
  40. # @Nemo Utils
  41. # @Nemo Apps
  42. # @Nemo Apps MTF
  43. # @MTF Handset UX
  44. # @MTF Tracker Related Apps
  45. @Nokia N900 Support
  46. @Nokia N900 Proprietary Support
  47.  
  48. kernel-adaptation-n900
  49. openssh-clients
  50. openssh-server
  51. xterm
  52. plymouth-lite
  53. nano
  54. contextkit-maemo-mce
  55. usb-moded-config-n900
  56. policy-settings-basic-n900
  57. mce
  58. xorg-x11-xauth
  59. qt-qmlviewer
  60.  
  61. # ce-backgrounds
  62. # meego-handset-camera
  63. %end
  64.  
  65. %post
  66.  
  67. # save a little bit of space at least...
  68. rm -f /boot/initrd*
  69.  
  70. # make sure there aren't core files lying around
  71. rm -f /core*
  72.  
  73. # work around for poor key import UI in PackageKit
  74. rm -f /var/lib/rpm/__db*
  75. rpm --rebuilddb
  76.  
  77. # Prelink can reduce boot time
  78. if [ -x /usr/sbin/prelink ]; then
  79. /usr/sbin/prelink -aRqm
  80. fi
  81.  
  82.  
  83. # Hack to fix the plymouth based splash screen on N900
  84. mv /usr/bin/ply-image /usr/bin/ply-image-real
  85. cat > /usr/bin/ply-image << EOF
  86. #!/bin/sh
  87. echo 32 > /sys/class/graphics/fb0/bits_per_pixel
  88. exec /usr/bin/ply-image-real $@
  89. EOF
  90.  
  91. chmod +x /usr/bin/ply-image
  92. # Remove cursor from showing during startup BMC#14991
  93. echo "xopts=-nocursor" >> /etc/sysconfig/uxlaunch
  94.  
  95. # Create a session file for MTF.
  96. cat > /usr/share/xsessions/X-MEEGO-HS.desktop << EOF
  97. [Desktop Entry]
  98. Version=1.0
  99. Name=mtf compositor session
  100. Exec=/usr/bin/mcompositor
  101. Type=Application
  102. EOF
  103.  
  104. # Set symlink pointing to .desktop file
  105. ln -sf X-MEEGO-HS.desktop /usr/share/xsessions/default.desktop
  106.  
  107.  
  108.  
  109. cat > /usr/share/xsessions/x-meego-qmlviewer.desktop << EOF
  110. [Desktop Entry]
  111. Version=1.0
  112. Name=qmlviewer session
  113. Exec=/usr/bin/qmlviewer
  114. Type=Application
  115. EOF
  116.  
  117. # Set symlink pointing to .desktop file
  118. # ln -sf x-meego-qmlviewer.desktop /usr/share/xsessions/default.desktop
  119.  
  120. # Use eMMC swap partition as MeeGo swap as well.
  121. # Because of the 2nd partition is swap for the partition numbering
  122. # we can just change the current fstab entry to match the eMMC partition.
  123. sed -i 's/mmcblk0p2/mmcblk1p3/g' /etc/fstab
  124.  
  125. # This causes problems with the bme in N900 images so removing for now.
  126. rm -f /lib/modules/*/kernel/drivers/power/bq27x00_battery.ko
  127. # Without this line the rpm don't get the architecture right.
  128. echo -n 'armv7hl-meego-linux' > /etc/rpm/platform
  129.  
  130. # Also libzypp has problems in autodetecting the architecture so we force tha as well.
  131. # https://bugs.meego.com/show_bug.cgi?id=11484
  132. echo 'arch = armv7hl' >> /etc/zypp/zypp.conf
  133.  
  134. # Set up proper target for libmeegotouch
  135. Config_Src=`gconftool-2 --get-default-source`
  136. gconftool-2 --direct --config-source $Config_Src -s -t string /meegotouch/target/name N900
  137.  
  138.  
  139. # Wait a bit more than the default 5s when starting application.
  140. mkdir -p /etc/xdg/mcompositor/
  141. echo "close-timeout-ms 15000;" > /etc/xdg/mcompositor/new-mcompositor.conf
  142.  
  143.  
  144. %end
  145.  
  146. %post --nochroot
  147. if [ -n "$IMG_NAME" ]; then
  148. echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
  149. fi
  150.  
  151.  
  152. %end
Advertisement
Add Comment
Please, Sign In to add comment