Advertisement
Guest User

Untitled

a guest
Oct 10th, 2014
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.87 KB | None | 0 0
  1. # -*-mic2-options-*- -f fs --compress-disk-image=tar.bz2 --copy-kernel --record-pkgs=name --pkgmgr=zypp --arch=armv7hl -*-mic2-options-*-
  2. #
  3. # Do not Edit! Generated by:
  4. # kickstarter.py
  5. #
  6. lang en_US.UTF-8
  7. keyboard us
  8. timezone --utc UTC
  9. part / --size 3500 --ondisk sda --fstype=ext3
  10.  
  11. rootpw nemo
  12.  
  13. user --name nemo --groups audio,video,privileged --password nemo
  14.  
  15. #repo --name=mer-core --baseurl=http://releases.merproject.org/releases/latest/builds/armv7hl/packages --debuginfo
  16. #repo --name=nemo-ux --baseurl=http://repo.merproject.org/obs/nemo:/devel:/ux/latest_armv7hl/
  17. #repo --name=nemo-apps --baseurl=http://repo.merproject.org/obs/nemo:/devel:/apps/latest_armv7hl/
  18. #repo --name=nemo-mw --baseurl=http://repo.merproject.org/obs/nemo:/devel:/mw/latest_armv7hl/
  19. #repo --name=mer-qt --baseurl=http://repo.merproject.org/obs/mer:/qt:/devel/latest_armv7hl/
  20.  
  21. repo --name=nemo-adaptation-n950-n9-testing --baseurl=http://repo.merproject.org/obs/nemo:/testing:/hw:/ti:/omap3:/n950-n9/latest_armv7hl --includepkgs=linux-firmware-ti-connectivity
  22. repo --name=nemo-adaptation-n950-n9 --baseurl=http://repo.merproject.org/obs/nemo:/devel:/hw:/ti:/omap3:/n950-n9/latest_armv7hl/
  23. repo --name=nemo-adaptation-n9xx-common --baseurl=http://repo.merproject.org/obs/nemo:/devel:/hw:/ti:/omap3:/n9xx-common/latest_armv7hl/
  24. repo --name=filippz --baseurl=http://repo.merproject.org/obs/home:/filippz/latest_armv7hl/
  25. repo --name=filippz-devel --baseurl=http://repo.merproject.org/obs/home:/filippz:/devel/latest_armv7hl/
  26.  
  27.  
  28. repo --name=jolla --baseurl=http://releases.jolla.com/releases/1.0.8.21/jolla/armv7hl/
  29. repo --name=hotfixes --baseurl=http://releases.jolla.com/releases/1.0.8.21/hotfixes/armv7hl/
  30. repo --name=apps --baseurl=http://releases.jolla.com/jolla-apps/1.0.8.21/armv7hl/
  31. #repo --name=limited-nemo-mw --baseurl=http://repo.merproject.org/obs/home:/vgrade:/branches:/nemo:/devel:/mw/latest_armv7hl/
  32. repo --name=jalnmwr --baseurl=http://repo.merproject.org/obs/home:/SourenAraya:/branches:/nemo:/devel:/mw/latest_armv7hl/
  33. #repo --name=bme-patched-service-unit --baseurl=http://repo.merproject.org/obs/home:/SourenAraya:/branches:/nemo:/devel:/hw:/ti:/omap3:/n950-n9/latest_armv7hl/ --includepkgs=bme-rm-680-bin
  34. repo --name=mer --baseurl=http://repo.merproject.org/obs/home:/vgrade:/branches:/mer-core:/devel/latest_armv7hl/
  35.  
  36. %packages
  37.  
  38. #@jolla-mw
  39. qt5-qtmultimedia-plugin-resourcepolicy-resourceqt
  40. qt5-qtmultimedia-plugin-mediaservice-gstcamerabin
  41. alsa-plugins-pulseaudio
  42. statefs-provider-connman
  43. droid-sans-fonts
  44. xdg-utils
  45. droid-sans-mono-fonts
  46. droid-serif-fonts
  47. buteo-mtp-qt5-sync-plugin
  48. jolla-keyboard
  49. bluez-configs-sailfish
  50. bluez-gstreamer
  51. ohm
  52. mce
  53. mce-tools
  54. statefs-provider-keyboard-generic
  55. jolla-firstsession
  56. statefs-provider-mce
  57. qt5-plugin-bearer-connman
  58. statefs-provider-ofono
  59. statefs-provider-profile
  60. qt5-qtsensors-plugin-sensorfw
  61. connman-configs-sailfish
  62. buteo-sync-plugins-qt5
  63. mapplauncherd-privileges-jolla
  64. jolla-preload-pictures
  65. statefs-provider-bluez
  66.  
  67. #@jolla-core
  68. fontpackages-filesystem
  69. lsb-release
  70. wireless-tools
  71. kbd
  72. wpa_supplicant
  73. #systemd-sysv
  74. iproute
  75. setup
  76. ssu
  77. ofono
  78. xdg-user-dirs
  79. e2fsprogs
  80. pam
  81. shadow-utils
  82. passwd
  83. shared-mime-info
  84. mer-release
  85. prelink
  86. iputils
  87. procps
  88. ssu-vendor-data-jolla
  89. connman
  90. connman-test
  91. connman-tools
  92. readline
  93. rootfiles
  94. rpm
  95. coreutils
  96. basesystem
  97. bash
  98. jolla-ca
  99. crda
  100. busybox-symlinks-gzip
  101. bluez
  102. boardname
  103. net-tools
  104. jolla-common-configurations
  105. nss
  106. deltarpm
  107. usbutils
  108. file
  109. time
  110. util-linux
  111. filesystem
  112. core-reducer
  113. dbus-python
  114. fftune
  115. groff
  116. pulseaudio
  117. pulseaudio-modules-nemo-mainvolume
  118. pulseaudio-modules-nemo-music
  119. pulseaudio-modules-nemo-mainvolume
  120. pulseaudio-modules-nemo-music
  121. pulseaudio-modules-nemo-parameters
  122. pulseaudio-modules-nemo-record
  123. pulseaudio-modules-nemo-stream-restore
  124. pulseaudio-modules-nemo-voice
  125. dbus
  126.  
  127.  
  128.  
  129. #=================================================
  130. #@jolla-configuration-n9
  131.  
  132. #@jolla-ui-wayland
  133. jolla-sessions-qt5
  134. lipstick-jolla-home-qt5
  135. jolla-actdead-charging
  136.  
  137. #@jolla-sailfish-applications
  138. all-translations-pack
  139. jolla-handwriting
  140. transferengine-plugins
  141. jolla-vault
  142. jolla-settings-bluetooth
  143. jolla-settings-sync
  144. jolla-contacts
  145. jolla-startupwizard
  146. jolla-settings-accounts
  147. #jolla-camera
  148. jolla-settings-accounts-extensions
  149. jolla-settings-layout
  150. jolla-settings-networking
  151. sailfish-browser
  152. jolla-settings-transferui-qt5
  153. jolla-gallery
  154. voicecall-ui-jolla
  155. jolla-messages
  156. jolla-vault-units
  157. -jolla-xt9
  158. -jolla-xt9-cp
  159. store-client
  160. jolla-settings-system
  161. jolla-hacks
  162. jolla-preload-ambiences
  163.  
  164.  
  165. #@jolla-store-applications
  166. jolla-calendar
  167. #yandex-store
  168. jolla-mediaplayer
  169. jolla-clock
  170. jolla-notes
  171. jolla-email
  172. jolla-calculator
  173. sailfish-office
  174.  
  175. #@jolla-hw-adaptation-n9
  176. #===========================================================
  177. #@nokia-n950-support-wayland
  178. bme-rm-680-bin
  179. statefs-provider-bme
  180. dsme
  181. gstreamer0.10-nokia-videosrc
  182. gst-omapfb
  183. linux-firmware-ti-connectivity
  184. kernel-adaptation-n950
  185. n950-camera-fw
  186. # nokia-n950-configs
  187. nemo-configs-n950-n9
  188. omap-update-display
  189. pulseaudio-settings-n950
  190. #systemd-console-ttyS0
  191. ti-omap3-sgx
  192. #ti-omap3-sgx-wayland-wsegl
  193. #ti-wl1271-firmware
  194. ti-wl1273-bt-firmware
  195. ti-wl1273-fm-radio-firmware
  196. udev-rules-n950
  197. wl1271-cal-bin
  198. policy-settings-basic-n950
  199.  
  200. usb-moded-config-n950-n9
  201. omap-update-display
  202. -usb-moded-settings-sailfish #debug
  203. strace #debug
  204. gdb #debug
  205. libcmtspeechdata
  206. libmeegotouchevents-qt5
  207. libngf-client
  208. #plymouth-lite
  209. #===========================================================
  210. qt5-plugin-platform-eglfs
  211. nemo-configs-n950-n9-wayland
  212. qt5-qtwayland-wayland_egl
  213. #=================================================
  214.  
  215. jolla-common-configurations
  216. libsailfishkeyprovider-data-jolla
  217. libsailfishapp
  218.  
  219. #pulseaudio-policy-enforcement
  220. jolla-developer-mode
  221. fingerterm
  222.  
  223.  
  224.  
  225.  
  226. #=== MULTIMEDIA =================================
  227. gst-av
  228. gst-plugins-bad-free
  229. gstreamer0.10-ffmpeg
  230. alsa-utils
  231. #================================================
  232.  
  233. #===== tools ===========================
  234. nano
  235. zypper
  236. #==== END tools ==============================
  237.  
  238.  
  239.  
  240. %end
  241.  
  242. %pre
  243. touch $INSTALL_ROOT/.bootstrap
  244. %end
  245.  
  246. %post
  247. rm $INSTALL_ROOT/.bootstrap
  248.  
  249. #eval `dbus-launch --auto-syntax` && dconf write /desktop/jolla/components/screen_rotation_angle 0
  250.  
  251. # Hack to fix the proximity sensor on n950
  252. cat > /usr/sbin/enable_prox << EOF
  253. #!/bin/sh
  254. echo 1 > /sys/devices/platform/i2c_omap.2/i2c-2/2-0039/prox_enable
  255. EOF
  256. chmod +x /usr/sbin/enable_prox
  257.  
  258. cat > /etc/systemd/system/proximity-fix.service << EOF
  259. [Unit]
  260. Description=Fix proximity sensor on N950
  261.  
  262. [Service]
  263. Type=oneshot
  264. ExecStart=/usr/sbin/enable_prox
  265. TimeoutSec=0
  266. StandardOutput=tty
  267. RemainAfterExit=yes
  268. SysVStartPriority=99
  269.  
  270. [Install]
  271. WantedBy=multi-user.target
  272. EOF
  273. ln -s /etc/systemd/system/proximity-fix.service /etc/systemd/system/multi-user.target.wants/
  274.  
  275. # Hack to fix Silica ApplicationWindow swapped width and height on N9
  276. # first we need framebuffer to be 480x854 and disable screen rotation - this will be done by a call from fbset-N9.service
  277. # then we need dconf write /desktop/jolla/components/screen_rotation_angle 0 - this will be done with user service
  278. # on the end we need QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="rotate=90" in var/lib/environment/compositor/60-n9-n950-ui.conf to match touchsreen dimensions to newframebuffer dimensions
  279. cat > /usr/sbin/fbset-N9 << EOF
  280. #!/bin/sh
  281.  
  282. #overlay must be disabled before changes
  283. echo "0" > /sys/devices/platform/omapdss/overlay0/enabled
  284.  
  285. #kernel sets it rotated (1) trough board-rm680.c basically we get 480x854 + 90 degrees = 854x480. Values are 0/1/2/3 for 0/90/180/270 rotation
  286. echo "0" > /sys/devices/platform/omapdss/display0/rotate
  287.  
  288. #colorspace settings, and set (-g) x,y sizes, x,y virtual size and bpp - must match display above
  289. /usr/sbin/fbset -rgba 8/16,8/8,8/0,8/24 -g 480 854 480 856 32
  290.  
  291. #enable overlay
  292. echo "1" > /sys/devices/platform/omapdss/overlay0/enabled
  293. EOF
  294. chmod +x /usr/sbin/fbset-N9
  295.  
  296. sed -i 's/ExecStart=.*/ExecStart=\/usr\/sbin\/fbset-N9/' /lib/systemd/system/fbset-n9.service
  297.  
  298. # Hack to set dconf write /desktop/jolla/components/screen_rotation_angle 0
  299. # It's not set by default but needs to be set on N9
  300. cat > /usr/sbin/screen_rotation_angle-N9 << EOF
  301. #!/bin/sh
  302. dconf write /desktop/jolla/components/screen_rotation_angle 0
  303. EOF
  304. chmod +x /usr/sbin/screen_rotation_angle-N9
  305. chown 100000:100000 /usr/sbin/screen_rotation_angle-N9
  306.  
  307. cat > /usr/lib/systemd/user/screen_rotation_angle-N9.service << EOF
  308. [Unit]
  309. Description=Fix /desktop/jolla/components/screen_rotation_angle N9
  310. Before=lipstick.service
  311.  
  312. [Service]
  313. Type=oneshot
  314. ExecStart=/usr/sbin/screen_rotation_angle-N9
  315. TimeoutSec=0
  316. RemainAfterExit=yes
  317. SysVStartPriority=99
  318.  
  319. [Install]
  320. WantedBy=user-session.target
  321. EOF
  322. ln -s /usr/lib/systemd/user/screen_rotation_angle-N9.service /usr/lib/systemd/user/user-session.target.wants/
  323.  
  324. #Hack Toucshscreen needs to be rotated to match screen dimensions, and PRE_USER_SESSION_DISPLAY_OPTIONS should be empty
  325. sed -i 's/QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=.*/QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS="rotate=90"/' /var/lib/environment/compositor/60-n9-n950-ui.conf
  326. sed -i 's/PRE_USER_SESSION_DISPLAY_OPTIONS=.*/PRE_USER_SESSION_DISPLAY_OPTIONS=/' /var/lib/environment/compositor/60-n9-n950-ui.conf
  327.  
  328. ## fix permissions
  329. chown -R 100000:100000 /home/nemo
  330.  
  331. # developer mode password workaround
  332. sed -i 's/system/privileged/' /etc/dbus-1/system.d/org.nemo.passwordmanager.conf
  333.  
  334.  
  335.  
  336. ## rpm-rebuilddb.post from mer-kickstarter-configs package
  337. # Rebuild db using target's rpm
  338. echo -n "Rebuilding db using target rpm.."
  339. rm -f /var/lib/rpm/__db*
  340. rpm --rebuilddb
  341. echo "done"
  342. ## end rpm-rebuilddb.post
  343.  
  344. #if [ "@SSU_RELEASE_TYPE@" = "rnd" ]; then
  345. # [ -n "@NEMO_RELEASE@" ] && ssu release -r @NEMO_RELEASE@
  346. # [ -n "@FLAVOUR@" ] && ssu flavour @FLAVOUR@
  347. # ssu mode 2
  348. #else
  349. # [ -n "@NEMO_RELEASE@" ] && ssu release @NEMO_RELEASE@
  350. # ssu mode 4
  351. #fi
  352.  
  353. ## arch-armv7hl.post from mer-kickstarter-configs package
  354. # Without this line the rpm don't get the architecture right.
  355. echo -n 'armv7hl-meego-linux' > /etc/rpm/platform
  356.  
  357. # Also libzypp has problems in autodetecting the architecture so we force tha as well.
  358. # https://bugs.meego.com/show_bug.cgi?id=11484
  359. echo 'arch = armv7hl' >> /etc/zypp/zypp.conf
  360. ## end arch-armv7hl.post
  361.  
  362. # Remove service to mount debugfs installed by systemd (it causes liptick to crash)
  363. rm -f /lib/systemd/system/sys-kernel-debug.mount
  364. rm -f /lib/systemd/system/sysinit.target.wants/sys-kernel-debug.mount
  365.  
  366. %end
  367.  
  368. %post --nochroot
  369. if [ -n "$IMG_NAME" ]; then
  370. echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
  371. fi
  372.  
  373. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement