Advertisement
Guest User

Untitled

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