Advertisement
Guest User

Untitled

a guest
Oct 16th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.46 KB | None | 0 0
  1. # DisplayName: Jolla hwp6_u06/@ARCH@ (release) 1
  2. # KickstartType: release
  3. # SuggestedImageType: fs
  4. # SuggestedArchitecture: armv7hl
  5.  
  6. user --name nemo --groups audio,video --password nemo
  7. timezone --utc UTC
  8. keyboard us
  9. lang en_US.UTF-8
  10.  
  11. ### Commands from /tmp/sandbox/usr/share/ssu/kickstart/part/default
  12. part / --size 500 --ondisk sda --fstype=ext4
  13.  
  14. ## No suitable configuration found in /tmp/sandbox/usr/share/ssu/kickstart/bootloader
  15.  
  16. repo --name=adaptation0-hwp6_u06 --baseurl=file:///parentroot/home/locusf/mer/sdks/ubuntu/android/droid/droid-local-repo/hwp6_u06
  17. repo --name="mer-core" --baseurl=http://repo.merproject.org/obs/mer-core:/armv7hl:/devel/Core_armv7hl/ --debuginfo --ssl_verify=yes
  18. repo --name="nemo-ux" --baseurl=http://repo.merproject.org/obs/nemo:/devel:/ux/mer-core_armv7hl_devel/ --ssl_verify=yes
  19. repo --name="mer-qt" --baseurl=http://repo.merproject.org/obs/mer:/qt:/devel/latest_armv7hl/ --ssl_verify=yes
  20. repo --name="nemo-apps" --baseurl=http://repo.merproject.org/obs/nemo:/devel:/apps/latest_armv7hl/ --ssl_verify=yes
  21. repo --name="alterego" --baseurl=http://repo.merproject.org/obs/home:/tswindell:/hybris/latest_armv7hl/
  22. #repo --name=nemo-mw --baseurl=http://repo.merproject.org/obs/nemo:/devel:/mw/latest_armv7hl/ --includepkgs=qt5-qtquickcontrols
  23. %packages
  24. @Jolla HW Adaptation hwp6_u06
  25. PackageKit-Qt5
  26. PackageKit-glib
  27. PackageKit-zypp
  28. PackageKit
  29. alsa-lib
  30. attr
  31. augeas-libs
  32. basesystem
  33. bash
  34. bluez-configs-mer
  35. bluez-libs
  36. bluez
  37. #bme-rm-680-bin
  38. boardname
  39. boost-filesystem
  40. boost-system
  41. buteo-mtp-qt5-sample-vendor-configuration
  42. buteo-mtp-qt5
  43. buteo-syncfw-qt5
  44. busybox-static
  45. bzip2-libs
  46. bzip2
  47. ca-certificates
  48. cairo
  49. ce-backgrounds
  50. check
  51. cjkuni-fonts
  52. commhistory-daemon
  53. connman-qt5-declarative
  54. connman-qt5
  55. connman-test
  56. connman
  57. contactsd
  58. #contextkit-plugin-kbslider
  59. #contextkit-plugin-mce
  60. #contextkit-plugin-power-bme
  61. #contextkit
  62. cor
  63. coreutils
  64. crda
  65. curl
  66. db4-utils
  67. db4
  68. dbus-glib
  69. dbus-libs
  70. dbus-python
  71. dbus-x11
  72. dbus
  73. deltarpm
  74. desktop-file-utils
  75. diffutils
  76. droid-sans-fonts
  77. droid-sans-mono-fonts
  78. droid-serif-fonts
  79. #dsme
  80. e2fsprogs-libs
  81. e2fsprogs
  82. elfutils-libelf
  83. exempi
  84. expat
  85. farstream
  86. fbset
  87. file-libs
  88. file
  89. filesystem
  90. findutils
  91. fingerterm
  92. flac
  93. fontconfig
  94. fontpackages-filesystem
  95. freetype
  96. fuse-libs
  97. fuse
  98. gawk
  99. gconf
  100. gdb
  101. gdbm
  102. giflib
  103. glib-networking
  104. glib2
  105. glibc-common
  106. glibc
  107. gmime
  108. gnupg2
  109. gnutls
  110. google-opensans-fonts
  111. grep
  112. #gst-omapfb
  113. gst-plugins-bad-free
  114. gst-plugins-base
  115. gst-plugins-good
  116. gstreamer
  117. #gstreamer0.10-nokia-videosrc
  118. gzip
  119. hwdata
  120. info
  121. iotop
  122. iproute
  123. iptables
  124. iputils
  125. iw
  126. json-c
  127. kbd
  128. kcalcore-qt5
  129. #kernel-adaptation-n950
  130. kmod-libs
  131. kmod
  132. lcms-libs
  133. lcms
  134. libICE
  135. libSM
  136. libX11
  137. libXau
  138. libXaw
  139. libXdamage
  140. libXext
  141. libXfixes
  142. libXft
  143. libXi
  144. libXmu
  145. libXpm
  146. libXrender
  147. libXt
  148. libXtst
  149. libXv
  150. libaccounts-glib-tools
  151. libaccounts-glib
  152. libaccounts-qt5
  153. libacl
  154. libarchive
  155. libasyncns
  156. libattr
  157. libblkid
  158. #libcal-rm-680-bin
  159. libcanberra
  160. libcap
  161. #libcmtspeechdata
  162. libcom_err
  163. libcommhistory-qt5-declarative
  164. libcommhistory-qt5-tools
  165. libcommhistory-qt5
  166. libcontacts-qt5
  167. libcontentaction-qt5
  168. libcreds3
  169. libcurl
  170. libdbus-qeventloop-qt5
  171. libdrm
  172. libdsme
  173. libenca-libenca0
  174. libenca
  175. liberation-fonts-common
  176. liberation-mono-fonts
  177. liberation-sans-fonts
  178. liberation-serif-fonts
  179. libexif
  180. libffi
  181. libgcc
  182. libgcrypt
  183. libgpg-error
  184. libgsf
  185. libgudev1
  186. libical
  187. libicu
  188. libidn
  189. libiodata-qt5
  190. libiphb
  191. libiptcdata
  192. libjpeg-turbo
  193. libksba
  194. liblua
  195. libmlocale-qt5
  196. libngf-qt5
  197. libnice
  198. libnl
  199. #libnl1
  200. libogg
  201. #libomap3camd
  202. libpng
  203. libqmfclient1-qt5
  204. libqmfmessageserver1-qt5
  205. libqofono-qt5
  206. libqt5sparql-tracker-direct
  207. libqt5sparql
  208. libqtwebkit5-widgets
  209. libqtwebkit5
  210. libquillmetadata-qt5
  211. libresource
  212. libresourceqt-qt5
  213. libsailfishkeyprovider
  214. libshadowutils
  215. libsignon-glib
  216. libsignon-qt5
  217. libsmack
  218. libsndfile
  219. libsolv-tools
  220. libsolv0
  221. libsoup
  222. libss
  223. libstdc++
  224. #libsysfs
  225. libtasn1
  226. libtheora
  227. libtiff
  228. libtool-ltdl
  229. libtrace
  230. #libudev
  231. libusb
  232. libusb1
  233. libuser
  234. libutempter
  235. libuuid
  236. libvisual
  237. libvorbis
  238. #libwl1271-bin
  239. libxcb
  240. libxkbcommon
  241. libxkbfile
  242. libxml2
  243. libxslt
  244. libzypp
  245. lipstick-glacier-home-qt5
  246. lipstick-qt5-tools-ui
  247. lipstick-qt5-tools
  248. lipstick-qt5
  249. lsb-release
  250. lsof
  251. lynx
  252. maliit-framework-wayland-inputcontext
  253. maliit-framework-wayland
  254. maliit-plugins
  255. mapplauncherd-booster-qtcomponents-qt5
  256. mapplauncherd-qt5
  257. mapplauncherd
  258. mce-tools
  259. mce
  260. mer-gfx-tests
  261. mer-release
  262. mkcal-qt5
  263. mlite-qt5
  264. mobile-broadband-provider-info
  265. mtdev
  266. multi_c_rehash
  267. #n950-camera-fw
  268. nano
  269. ncurses-base
  270. ncurses-libs
  271. ncurses
  272. #nemo-configs-connman
  273. #nemo-configs-n950-n9-wayland
  274. #nemo-configs-n950-n9
  275. #nemo-firstsession
  276. nemo-mobile-session-common
  277. nemo-mobile-session-wayland
  278. nemo-qml-plugin-accounts-qt5
  279. #nemo-qml-plugin-alarms-qt5
  280. nemo-qml-plugin-configuration-qt5
  281. nemo-qml-plugin-contacts-qt5-tools
  282. nemo-qml-plugin-contacts-qt5
  283. nemo-qml-plugin-dbus-qt5
  284. #nemo-qml-plugin-email-qt5
  285. #nemo-qml-plugin-folderlistmodel
  286. nemo-qml-plugin-messages-internal-qt5
  287. nemo-qml-plugin-notifications-qt5
  288. nemo-qml-plugin-signon-qt5
  289. nemo-qml-plugin-systemsettings
  290. nemo-qml-plugin-thumbnailer-qt5
  291. nemo-qml-plugin-time-qt5
  292. nemo-theme-glacier
  293. net-tools
  294. ngfd-settings-basic
  295. ngfd
  296. #nokia-n950-configs
  297. nspr
  298. nss-softokn-freebl
  299. nss-sysinit
  300. nss
  301. ofono-tests
  302. ofono
  303. ohm-configs-default
  304. ohm-plugin-core
  305. ohm
  306. #omap-update-display
  307. oneshot
  308. openssh-clients
  309. openssh-server
  310. openssh
  311. openssl-libs
  312. orc
  313. pacrunner
  314. pam
  315. pango
  316. passwd
  317. pcre
  318. pixman
  319. #plymouth-lite
  320. polkit
  321. poppler-glib
  322. poppler
  323. popt
  324. prelink
  325. procps
  326. profiled-settings-default
  327. profiled
  328. psmisc
  329. pth
  330. #pulseaudio-module-cmtspeech-n9xx
  331. pulseaudio-modules-nemo-common
  332. pulseaudio-modules-nemo-mainvolume
  333. pulseaudio-modules-nemo-music
  334. pulseaudio-modules-nemo-parameters
  335. pulseaudio-modules-nemo-record
  336. pulseaudio-modules-nemo-stream-restore
  337. pulseaudio-modules-nemo-voice
  338. pulseaudio-policy-enforcement
  339. #pulseaudio-settings-n950
  340. pulseaudio
  341. pygobject2
  342. python-libs
  343. python
  344. qmlcalc
  345. qmlcalendar
  346. #qmlclock
  347. #qmlcontacts
  348. #qmlfilemuncher
  349. qmlgallery
  350. #qmlmail
  351. qmlmaps
  352. #qmlmessages
  353. qmlmusicplayer
  354. #qmlnotes-theme-blanco-extra
  355. qmlnotes
  356. qmlpackagemanager
  357. qmlpinquery
  358. qmlsettings-account-plugin-email
  359. qmlsettings-account-plugin-jabber
  360. qmlsettings
  361. qmsystem-qt5
  362. qt-components-qt5-gallery
  363. qt-components-qt5
  364. qt5-plugin-generic-evdev
  365. qt5-plugin-imageformat-jpeg
  366. qt5-plugin-platform-eglfs
  367. qt5-plugin-platform-minimal
  368. qt5-plugin-sqldriver-sqlite
  369. qt5-qt3d
  370. qt5-qtconcurrent
  371. qt5-qtcore
  372. qt5-qtdbus
  373. qt5-qtdeclarative-import-localstorageplugin
  374. qt5-qtdeclarative-import-location
  375. qt5-qtdeclarative-import-multimedia
  376. qt5-qtdeclarative-import-qtquick2plugin
  377. qt5-qtdeclarative-import-window2
  378. qt5-qtdeclarative-import-xmllistmodel
  379. qt5-qtdeclarative-pim-organizer
  380. qt5-qtdeclarative-qmlscene
  381. qt5-qtdeclarative-qtquick
  382. qt5-qtdeclarative
  383. qt5-qtdocgallery
  384. qt5-qtfeedback
  385. qt5-qtgraphicaleffects
  386. qt5-qtgui
  387. qt5-qtlocation
  388. qt5-qtmultimedia-gsttools
  389. qt5-qtmultimedia-plugin-mediaservice-gstmediaplayer
  390. qt5-qtmultimedia
  391. qt5-qtnetwork
  392. qt5-qtopengl
  393. qt5-qtpim-contacts
  394. qt5-qtpim-organizer
  395. qt5-qtpim-versit
  396. qt5-qtpim-versitorganizer
  397. qt5-qtpositioning
  398. qt5-qtprintsupport
  399. qt5-qtquickcontrols-nemo-examples
  400. qt5-qtquickcontrols-nemo
  401. qt5-qtquickcontrols
  402. qt5-qtsensors-plugin-sensorfw
  403. qt5-qtsensors
  404. qt5-qtserviceframework
  405. qt5-qtsql
  406. qt5-qtsvg-plugin-imageformat-svg
  407. qt5-qtsvg
  408. qt5-qtsysteminfo
  409. qt5-qtwayland-wayland_egl-examples
  410. qt5-qtwayland-wayland_egl
  411. qt5-qtwebkit-uiprocess-launcher
  412. qt5-qtwidgets
  413. qt5-qtxml
  414. qt5-qtxmlpatterns
  415. qtcontacts-sqlite-qt5
  416. quillimagefilter-qt5
  417. readline
  418. recode
  419. rootfiles
  420. rpm-libs
  421. rpm
  422. screen
  423. sed
  424. sensorfw-qt5-configs
  425. sensorfw-qt5
  426. setup
  427. shadow-utils
  428. shared-mime-info
  429. signon-qt5
  430. sound-theme-freedesktop
  431. speex
  432. sqlite
  433. #ssu-vendor-data-nemo
  434. ssu
  435. statefs-contextkit-subscriber
  436. statefs-pp
  437. statefs-qt5
  438. statefs
  439. #sysfsutils
  440. systemd-config-mer
  441. #systemd-console-ttyS0
  442. #systemd-sysv
  443. systemd-user-session-targets
  444. systemd
  445. taglib
  446. tar
  447. telepathy-accounts-signon
  448. telepathy-farstream
  449. telepathy-glib
  450. telepathy-mission-control
  451. telepathy-qt5-farstream
  452. telepathy-qt5
  453. telepathy-ring
  454. #ti-omap3-sgx-wayland-wsegl
  455. #ti-omap3-sgx
  456. #ti-wl1271-firmware
  457. #ti-wl1273-bt-firmware
  458. #ti-wl1273-fm-radio-firmware
  459. time
  460. timed-qt5
  461. tinycdb
  462. tone-generator
  463. totem-pl-parser
  464. tracker-utils
  465. tracker
  466. tumbler
  467. tzdata-timed
  468. tzdata
  469. #udev-rules-n950
  470. unzip
  471. #usb-moded-config-n950-n9
  472. usb-moded
  473. usb-moded-pc-suite-mode-android
  474. usb-moded-defaults-android
  475. usbutils
  476. util-linux
  477. v8
  478. vim-common
  479. vim-enhanced
  480. vim-filesystem
  481. vim-minimal
  482. voicecall-qt5
  483. voicecall-ui-reference
  484. wayland
  485. wget
  486. wireless-regdb
  487. wireless-tools
  488. #wl1271-cal-bin
  489. wpa_supplicant
  490. xdg-user-dirs
  491. xdg-utils
  492. xkeyboard-config
  493. xorg-x11-filesystem
  494. xorg-x11-xkb-utils
  495. xz-libs
  496. xz
  497. zlib
  498. zypper
  499.  
  500. %end
  501.  
  502. %attachment
  503. ### Commands from /tmp/sandbox/usr/share/ssu/kickstart/attachment/hwp6_u06
  504. /boot/hybris-boot.img
  505. /boot/hybris-updater-script
  506. /boot/hybris-updater-unpack.sh
  507. /boot/update-binary
  508. /etc/sailfish-release
  509.  
  510. %end
  511.  
  512. %pre
  513. export SSU_RELEASE_TYPE=release
  514. ### begin 01_init
  515. touch $INSTALL_ROOT/.bootstrap
  516. ### end 01_init
  517. %end
  518.  
  519. %post
  520. export SSU_RELEASE_TYPE=release
  521. ### begin 01_arch-hack
  522. if [ "@ARCH@" == armv7hl ] || [ "@ARCH@" == armv7tnhl ]; then
  523. # Without this line the rpm does not get the architecture right.
  524. echo -n "@ARCH@-meego-linux" > /etc/rpm/platform
  525.  
  526. # Also libzypp has problems in autodetecting the architecture so we force tha as well.
  527. # https://bugs.meego.com/show_bug.cgi?id=11484
  528. echo "arch = @ARCH@" >> /etc/zypp/zypp.conf
  529. fi
  530. ### end 01_arch-hack
  531. ### begin 01_rpm-rebuilddb
  532. # Rebuild db using target's rpm
  533. echo -n "Rebuilding db using target rpm.."
  534. rm -f /var/lib/rpm/__db*
  535. rpm --rebuilddb
  536. echo "done"
  537. ### end 01_rpm-rebuilddb
  538. ### begin 50_oneshot
  539. # exit boostrap mode
  540. rm -f /.bootstrap
  541.  
  542. # export some important variables until there's a better solution
  543. export LANG=en_US.UTF-8
  544. export LC_COLLATE=en_US.UTF-8
  545. export GSETTINGS_BACKEND=gconf
  546.  
  547. # run the oneshot triggers for root and first user uid
  548. UID_MIN=$(grep "^UID_MIN" /etc/login.defs | tr -s " " | cut -d " " -f2)
  549. DEVICEUSER=`getent passwd $UID_MIN | sed 's/:.*//'`
  550.  
  551. if [ -x /usr/bin/oneshot ]; then
  552. su -c "/usr/bin/oneshot --mic"
  553. su -c "/usr/bin/oneshot --mic" $DEVICEUSER
  554. fi
  555. ### end 50_oneshot
  556. ### begin 60_ssu
  557. if [ "$SSU_RELEASE_TYPE" = "rnd" ]; then
  558. [ -n "@RNDRELEASE@" ] && ssu release -r @RNDRELEASE@
  559. [ -n "@RNDFLAVOUR@" ] && ssu flavour @RNDFLAVOUR@
  560. ssu mode 2
  561. else
  562. [ -n "@RELEASE@" ] && ssu release @RELEASE@
  563. ssu mode 4
  564. fi
  565. ### end 60_ssu
  566. ### begin 70_sdk-domain
  567.  
  568. export SSU_DOMAIN=@RNDFLAVOUR@
  569.  
  570. if [ "$SSU_RELEASE_TYPE" = "release" ] && [[ "$SSU_DOMAIN" = "public-sdk" ]];
  571. then
  572. ssu domain sailfish
  573. fi
  574. ### end 70_sdk-domain
  575. %end
  576.  
  577. %post --nochroot
  578. export SSU_RELEASE_TYPE=release
  579. ### begin 01_release
  580. if [ -n "$IMG_NAME" ]; then
  581. echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/meego-release
  582. fi
  583. ### end 01_release
  584. %end
  585.  
  586. %pack
  587. export SSU_RELEASE_TYPE=release
  588. ### begin package-droid-updater
  589. pushd $IMG_OUT_DIR
  590.  
  591. DEVICE=hwp6_u06
  592.  
  593. VERSION_FILE=./sailfish-release
  594. source $VERSION_FILE
  595.  
  596. # Locate rootfs tar.bz2 archive.
  597. for filename in *.tar.bz2; do
  598. GEN_IMG_BASE=$(basename $filename .tar.bz2)
  599. done
  600.  
  601. if [ ! -e "$GEN_IMG_BASE.tar.bz2" ]; then
  602. echo "No rootfs archive found, exiting ..."
  603. exit 1
  604. fi
  605.  
  606. IMG_SIZE=$(du -h $GEN_IMG_BASE.tar.bz2 | cut -f1)
  607.  
  608. # Output filenames
  609. DST_IMG_BASE=$ID-$DEVICE-$SAILFISH_FLAVOUR-$VERSION_ID@EXTRA_NAME@
  610. DST_IMG=$DST_IMG_BASE.tar.bz2
  611.  
  612. # Copy boot image, updater scripts and updater binary into updater .zip tree.
  613. mkdir -p updater/META-INF/com/google/android
  614.  
  615. mv update-binary updater/META-INF/com/google/android/update-binary
  616. mv hybris-updater-script updater/META-INF/com/google/android/updater-script
  617. mv hybris-updater-unpack.sh updater/updater-unpack.sh
  618. mv hybris-boot.img updater/hybris-boot.img
  619.  
  620. # Temporarily move the rootfs into the updater directory
  621. mv $GEN_IMG_BASE.tar.bz2 updater/$DST_IMG
  622.  
  623. # Update updater-script with image details.
  624. sed -i -e "s %VERSION% $VERSION_ID g" -e "s %IMAGE_FILE% $DST_IMG g" -e "s %IMAGE_SIZE% $IMG_SIZE g" updater/META-INF/com/google/android/updater-script
  625.  
  626. # pack updater .zip
  627. pushd updater
  628. zip -r ../$DST_IMG_BASE.zip META-INF/com/google/android/update-binary META-INF/com/google/android/updater-script updater-unpack.sh hybris-boot.img $DST_IMG_BASE.ks $DST_IMG
  629. popd # updater
  630.  
  631. # Move the rootfs back out of the updater directory
  632. mv updater/$DST_IMG $GEN_IMG_BASE.tar.bz2
  633.  
  634. # Clean up updater .zip working directory.
  635. rm -rf updater
  636.  
  637. popd # $IMG_OUT_DIR
  638. ### end package-droid-updater
  639. %end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement