From 85c7f0577fe1744afd2d6ee045a68efc0fefe113 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Fri, 5 Dec 2014 14:55:17 +0200 Subject: [PATCH] Re-initialize meta-mobile This time from tizen_mobile branch of meta-mobile. Basically renamed mobile -> tv. However, scripts/, patterns/, partitions/ and ks/ were taken as is, untouched. Change-Id: I8d537bd716a9abb5f3fd0b00755ed0c067b6ce7e Signed-off-by: Markus Lehtonen --- Makefile | 5 +- ks/Emulator.yaml | 17 ----- ks/ODROID-u3.yaml | 23 ------- ks/common-boot-armv7l-odroidu3.yaml | 14 +++++ ks/common-x11-2parts-armv7l.yaml | 11 ++++ ks/common-x11-3parts-armv7l-odroidu3.yaml | 10 +++ ks/common-x11-mbr-i586.yaml | 16 +++++ packaging/meta-tv.changes | 3 + packaging/meta-tv.spec | 16 ++--- partitions/ODROID-u3 | 6 -- partitions/{Emulator => base} | 0 partitions/common-mbr | 1 + partitions/common-mbr-2parts | 2 + partitions/common-mbr-3parts | 3 + partitions/common-mbr-boot | 2 + patterns/common-adaptation.yaml | 5 ++ patterns/common-base.yaml | 5 ++ patterns/common-boot-odroid-u3.yaml | 7 +++ patterns/common-crosswalk.yaml | 6 ++ patterns/common-desktop-applications.yaml | 8 +++ patterns/common-middleware.yaml | 9 +++ patterns/common-packaging.yaml | 5 ++ patterns/common-qa.yaml | 6 ++ patterns/common-qt5.yaml | 5 ++ patterns/common-wayland.yaml | 9 +++ patterns/rd-pq-adaptation.yaml | 33 ---------- scripts/buildname.nochroot | 5 ++ scripts/common-adaptation.post | 3 + scripts/common-base.post | 18 ++++++ scripts/common-crosswalk.post | 6 ++ scripts/common-desktop-applications.post | 9 +++ scripts/common-middleware.post | 3 + scripts/common-packaging.post | 49 +++++++++++++++ scripts/common-qt5.post | 19 ++++++ scripts/generic-adaptation.post | 6 ++ scripts/generic-applications.post | 3 + scripts/generic-base.post | 70 +++++++++++++++++++++ scripts/generic-bluetooth.post | 3 + scripts/generic-console-tools.post | 41 ++++++++++++ scripts/generic-crosswalk.post | 3 + scripts/generic-desktop-applications.post | 23 +++++++ scripts/generic-middleware.post | 3 + scripts/generic-multimedia-intel.post | 3 + scripts/generic-multimedia.post | 3 + scripts/generic-packaging.post | 9 +++ scripts/generic-qt5.post | 3 + scripts/generic-x11-intel.post | 3 + scripts/generic-x11.post | 9 +++ scripts/handset-blackbay.post | 12 ++++ scripts/{tv-odroid-u3.post => handset-rd-pq.post} | 1 + tv-repos.yaml | 5 ++ tv-targets.yaml | 53 +++------------- tv.yaml | 77 +++++++++++++++++++++++ 53 files changed, 538 insertions(+), 131 deletions(-) delete mode 100644 ks/Emulator.yaml delete mode 100644 ks/ODROID-u3.yaml create mode 100644 ks/common-boot-armv7l-odroidu3.yaml create mode 100644 ks/common-x11-2parts-armv7l.yaml create mode 100644 ks/common-x11-3parts-armv7l-odroidu3.yaml create mode 100644 ks/common-x11-mbr-i586.yaml create mode 100644 packaging/meta-tv.changes delete mode 100644 partitions/ODROID-u3 rename partitions/{Emulator => base} (100%) create mode 100644 partitions/common-mbr create mode 100644 partitions/common-mbr-2parts create mode 100644 partitions/common-mbr-3parts create mode 100644 partitions/common-mbr-boot create mode 100644 patterns/common-adaptation.yaml create mode 100644 patterns/common-base.yaml create mode 100644 patterns/common-boot-odroid-u3.yaml create mode 100644 patterns/common-crosswalk.yaml create mode 100644 patterns/common-desktop-applications.yaml create mode 100644 patterns/common-middleware.yaml create mode 100644 patterns/common-packaging.yaml create mode 100644 patterns/common-qa.yaml create mode 100644 patterns/common-qt5.yaml create mode 100644 patterns/common-wayland.yaml delete mode 100644 patterns/rd-pq-adaptation.yaml create mode 100644 scripts/buildname.nochroot create mode 100644 scripts/common-adaptation.post create mode 100644 scripts/common-base.post create mode 100644 scripts/common-crosswalk.post create mode 100644 scripts/common-desktop-applications.post create mode 100644 scripts/common-middleware.post create mode 100644 scripts/common-packaging.post create mode 100644 scripts/common-qt5.post create mode 100644 scripts/generic-adaptation.post create mode 100644 scripts/generic-applications.post create mode 100644 scripts/generic-base.post create mode 100644 scripts/generic-bluetooth.post create mode 100644 scripts/generic-console-tools.post create mode 100644 scripts/generic-crosswalk.post create mode 100644 scripts/generic-desktop-applications.post create mode 100644 scripts/generic-middleware.post create mode 100644 scripts/generic-multimedia-intel.post create mode 100644 scripts/generic-multimedia.post create mode 100644 scripts/generic-packaging.post create mode 100644 scripts/generic-qt5.post create mode 100644 scripts/generic-x11-intel.post create mode 100644 scripts/generic-x11.post create mode 100644 scripts/handset-blackbay.post rename scripts/{tv-odroid-u3.post => handset-rd-pq.post} (86%) create mode 100644 tv.yaml diff --git a/Makefile b/Makefile index eadce8d..5b2a4dc 100644 --- a/Makefile +++ b/Makefile @@ -19,8 +19,9 @@ install: install -d ${DESTDIR}/usr/share/image-configurations/tv/scripts install -d ${DESTDIR}/usr/share/image-configurations/tv/partitions install -d ${DESTDIR}/usr/share/package-groups/tv - install -m 644 tv-targets.yaml ${DESTDIR}/usr/share/image-configurations/tv + install -m 644 tv.yaml ${DESTDIR}/usr/share/image-configurations/tv install -m 644 tv-repos.yaml ${DESTDIR}/usr/share/image-configurations/tv + install -m 644 tv-targets.yaml ${DESTDIR}/usr/share/image-configurations/tv install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/tv/configs install -D partitions/* ${DESTDIR}/usr/share/image-configurations/tv/partitions install -D scripts/* ${DESTDIR}/usr/share/image-configurations/tv/scripts @@ -28,7 +29,7 @@ install: test: merge-patterns -o output/ -p patterns -s - kickstarter -c tv-targets.yaml -e ks -r tv-repos.yaml + kickstarter -c tv.yaml -e ks -r tv-repos.yaml tag: git tag -a $(VERSION) -m "$(VERSION)" diff --git a/ks/Emulator.yaml b/ks/Emulator.yaml deleted file mode 100644 index 0cbd0ee..0000000 --- a/ks/Emulator.yaml +++ /dev/null @@ -1,17 +0,0 @@ -Name: Emulator -Schedule: "*" -Active: True -Platform: Emulator -FileName: emulator -Architecture: ia32 -Groups: - - Mobile Enlightenment - - Mobile Applications - - Mobile Framework - - Graphics and UI Framework X - - Mobile Osp -ExtraPackages: - - sdbd -PostScripts: - - Tizen-common-cleanup -NoChrootScripts: diff --git a/ks/ODROID-u3.yaml b/ks/ODROID-u3.yaml deleted file mode 100644 index 043d00e..0000000 --- a/ks/ODROID-u3.yaml +++ /dev/null @@ -1,23 +0,0 @@ -Name: ODROID-u3 -Schedule: "*" -Active: True -Platform: ODROID-u3 -FileName: ODROID-u3 -Architecture: armv7l -Groups: - - Mobile Enlightenment - - Mobile Applications - - Mobile Framework - - Mobile Osp - - RD PQ Adaptation - - Graphics and UI Framework X -ExtraPackages: - - sdbd - - setup-mobile -InstallerFrameworkPlugins: - - fstab -PostScripts: - - Tizen-common-cleanup - - tv-odroid-u3 - - setup-fstab-mobile -NoChrootScripts: diff --git a/ks/common-boot-armv7l-odroidu3.yaml b/ks/common-boot-armv7l-odroidu3.yaml new file mode 100644 index 0000000..cc25735 --- /dev/null +++ b/ks/common-boot-armv7l-odroidu3.yaml @@ -0,0 +1,14 @@ +Name: common-boot-armv7l-odroidu3 +Architecture: armv7l +Schedule: "*" +Active: True +Platform: Boot-Odroidu3 +Part: common-mbr-boot +Mic2Options: -f loop --pack-to=@NAME@.tar.gz +FileName: common-boot-armv7l-odroidu3 +Group: Common Boot Odroid U3 +Attachment: + - /var/tmp/u-boot/u-boot-mmc.bin + - /var/tmp/u-boot/params.bin +Repos: + - common-x11_armv7l diff --git a/ks/common-x11-2parts-armv7l.yaml b/ks/common-x11-2parts-armv7l.yaml new file mode 100644 index 0000000..3b4487a --- /dev/null +++ b/ks/common-x11-2parts-armv7l.yaml @@ -0,0 +1,11 @@ +Name: common-x11-2parts-armv7l +Architecture: armv7l +Schedule: "*" +Active: True +Platform: X11 +Part: common-mbr-2parts +Mic2Options: -f loop --pack-to=@NAME@.tar.gz --copy-kernel +FileName: common-x11-2parts-armv7l +Kernel: kernel-profile-common +Repos: + - common-x11_armv7l diff --git a/ks/common-x11-3parts-armv7l-odroidu3.yaml b/ks/common-x11-3parts-armv7l-odroidu3.yaml new file mode 100644 index 0000000..6c0694f --- /dev/null +++ b/ks/common-x11-3parts-armv7l-odroidu3.yaml @@ -0,0 +1,10 @@ +Name: common-x11-3parts-armv7l-odroidu3 +Architecture: armv7l +Schedule: "*" +Active: True +Platform: X11 +Part: common-mbr-3parts +Mic2Options: -f loop --pack-to=@NAME@.tar.gz +FileName: common-x11-3parts-armv7l-odroidu3 +Repos: + - common-x11_armv7l diff --git a/ks/common-x11-mbr-i586.yaml b/ks/common-x11-mbr-i586.yaml new file mode 100644 index 0000000..e681922 --- /dev/null +++ b/ks/common-x11-mbr-i586.yaml @@ -0,0 +1,16 @@ +Name: common-x11-mbr-i586 +Architecture: ia32 +Schedule: "*" +Active: True +Platform: X11 +Part: common-mbr +FileName: common-x11-mbr-i586 +Kernel: kernel-profile-common +Repos: + - common-x11_i586 +Groups: + - Generic X11 Intel + - Generic Multimedia Intel +PostScripts: + - generic-x11-intel + - generic-multimedia-intel diff --git a/packaging/meta-tv.changes b/packaging/meta-tv.changes new file mode 100644 index 0000000..544bdf3 --- /dev/null +++ b/packaging/meta-tv.changes @@ -0,0 +1,3 @@ +* Fri Dec 05 2014 Markus Lehtonen accepted/tizen/tv/20141205.122200-1-g87fa9cb +- Re-initialize meta-mobile + diff --git a/packaging/meta-tv.spec b/packaging/meta-tv.spec index 2f8c71e..b76ca6f 100644 --- a/packaging/meta-tv.spec +++ b/packaging/meta-tv.spec @@ -1,6 +1,8 @@ +%define profile tv + Summary: Tizen TV Package Groups and Image Configurations Name: meta-tv -Version: 001 +Version: 003 Release: 1 License: GPL-2.0 Group: System/Base @@ -14,15 +16,15 @@ Tizen TV Package Groups and Image Configurations %setup -q %build -make +make %install %make_install %files -%attr(644,-,-) %{_datadir}/package-groups/tv/*.yaml -/usr/share/image-configurations/tv/*.yaml -/usr/share/image-configurations/tv/configs/*.yaml -/usr/share/image-configurations/tv/scripts -/usr/share/image-configurations/tv/partitions +%{_datadir}/package-groups/tv/*.yaml +%{_datadir}/image-configurations/tv/*.yaml +%{_datadir}/image-configurations/tv/configs/*.yaml +%{_datadir}/image-configurations/tv/scripts +%{_datadir}/image-configurations/tv/partitions diff --git a/partitions/ODROID-u3 b/partitions/ODROID-u3 deleted file mode 100644 index 61d134e..0000000 --- a/partitions/ODROID-u3 +++ /dev/null @@ -1,6 +0,0 @@ -# ROOT fs partition -part / --size=3000 --fstype=ext4 --label=platform --uuid=4f5fff4c-4d1e-11e3-b3c5-180373d78786 --fsoptions=defaults,noatime -# DATA partition -part /opt/ --size=3000 --fstype=ext4 --label=data --uuid=4f602120-4d1e-11e3-a223-180373d78786 --fsoptions=defaults,noatime -# UMS partition -part /opt/usr/ --size=3000 --fstype=ext4 --label=ums --uuid=4f603fca-4d1e-11e3-8f51-180373d78786 --fsoptions=defaults,noatime diff --git a/partitions/Emulator b/partitions/base similarity index 100% rename from partitions/Emulator rename to partitions/base diff --git a/partitions/common-mbr b/partitions/common-mbr new file mode 100644 index 0000000..8d7d5cc --- /dev/null +++ b/partitions/common-mbr @@ -0,0 +1 @@ +part / --fstype="ext4" --size=3584 --ondisk=sda --active --label tizen-common --fsoptions=defaults,noatime diff --git a/partitions/common-mbr-2parts b/partitions/common-mbr-2parts new file mode 100644 index 0000000..13ae9d4 --- /dev/null +++ b/partitions/common-mbr-2parts @@ -0,0 +1,2 @@ +part /boot --fstype="vfat" --size=64 --ondisk=sda --active --label TZBOOT --fsoptions=defaults,noatime +part / --fstype="ext4" --size=3500 --ondisk=sda --label tizen-common --fsoptions=defaults,noatime diff --git a/partitions/common-mbr-3parts b/partitions/common-mbr-3parts new file mode 100644 index 0000000..d94a1b3 --- /dev/null +++ b/partitions/common-mbr-3parts @@ -0,0 +1,3 @@ +part / --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label rootfs --fsoptions=defaults,noatime +part /opt --fstype="ext4" --size=512 --ondisk=mmcblk0 --label system-data --fsoptions=defaults,noatime +part /opt/usr --fstype="ext4" --size=3500 --ondisk=mmcblk0 --label user --fsoptions=defaults,noatime diff --git a/partitions/common-mbr-boot b/partitions/common-mbr-boot new file mode 100644 index 0000000..66dcfb5 --- /dev/null +++ b/partitions/common-mbr-boot @@ -0,0 +1,2 @@ +part /boot --fstype="vfat" --size=64 --ondisk=mmcblk0 --active --label boot --fsoptions=defaults,noatime +part /lib/modules --fstype="ext4" --size=20 --ondisk=mmcblk0 --active --label modules --fsoptions=defaults,noatime diff --git a/patterns/common-adaptation.yaml b/patterns/common-adaptation.yaml new file mode 100644 index 0000000..db5481c --- /dev/null +++ b/patterns/common-adaptation.yaml @@ -0,0 +1,5 @@ +Summary: Common Adaptation +Description: Common Adaptation +Name: common-adaptation +Packages: +- meta-generic-adaptation diff --git a/patterns/common-base.yaml b/patterns/common-base.yaml new file mode 100644 index 0000000..56168e1 --- /dev/null +++ b/patterns/common-base.yaml @@ -0,0 +1,5 @@ +Summary: Common Base +Description: Common Base +Name: common-base +Packages: [] + diff --git a/patterns/common-boot-odroid-u3.yaml b/patterns/common-boot-odroid-u3.yaml new file mode 100644 index 0000000..e8cfc46 --- /dev/null +++ b/patterns/common-boot-odroid-u3.yaml @@ -0,0 +1,7 @@ +Summary: Common Boot Odroid U3 +Description: Common Boot Odroid U3 +Name: common-boot-odroid-u3 +Packages: +- arm-odroidu3-linux-kernel +- arm-odroidu3-linux-kernel-modules +- u-boot diff --git a/patterns/common-crosswalk.yaml b/patterns/common-crosswalk.yaml new file mode 100644 index 0000000..8b9a477 --- /dev/null +++ b/patterns/common-crosswalk.yaml @@ -0,0 +1,6 @@ +Summary: Common Crosswalk +Description: Common Crosswalk +Name: common-crosswalk +Packages: +- wrt-widgets + diff --git a/patterns/common-desktop-applications.yaml b/patterns/common-desktop-applications.yaml new file mode 100644 index 0000000..3f77949 --- /dev/null +++ b/patterns/common-desktop-applications.yaml @@ -0,0 +1,8 @@ +Summary: Common Desktop Applications +Description: Common Desktop Applications +Name: common-desktop-applications +Packages: +- org.tizen.calculator +- elementary-tools +- evas-examples +- emotion-examples diff --git a/patterns/common-middleware.yaml b/patterns/common-middleware.yaml new file mode 100644 index 0000000..6fddc67 --- /dev/null +++ b/patterns/common-middleware.yaml @@ -0,0 +1,9 @@ +Summary: Common Middleware +Description: Common Middleware +Name: common-middleware +Packages: +- model-config-generic +- ofono +- neard +- neardal +- usb-server diff --git a/patterns/common-packaging.yaml b/patterns/common-packaging.yaml new file mode 100644 index 0000000..6aa6a51 --- /dev/null +++ b/patterns/common-packaging.yaml @@ -0,0 +1,5 @@ +Summary: Common Packaging +Description: Common Packaging +Name: common-packaging +Packages: [] + diff --git a/patterns/common-qa.yaml b/patterns/common-qa.yaml new file mode 100644 index 0000000..e4ea382 --- /dev/null +++ b/patterns/common-qa.yaml @@ -0,0 +1,6 @@ +Summary: Common QA Tools +Description: Common QA Tools +Name: common-qa +Packages: +- neard-test +- ofono-test diff --git a/patterns/common-qt5.yaml b/patterns/common-qt5.yaml new file mode 100644 index 0000000..f0698d7 --- /dev/null +++ b/patterns/common-qt5.yaml @@ -0,0 +1,5 @@ +Summary: Common Qt5 +Description: Common Qt5 +Name: common-qt5 +Packages: +- qt-tizen-demo diff --git a/patterns/common-wayland.yaml b/patterns/common-wayland.yaml new file mode 100644 index 0000000..1760fe4 --- /dev/null +++ b/patterns/common-wayland.yaml @@ -0,0 +1,9 @@ +Summary: Common Wayland +Description: Common Wayland +Name: common-wayland +Packages: +- weston-common +- weston-common-config +- weston-clients +- weston-common-tz-launcher +- desktop-skin diff --git a/patterns/rd-pq-adaptation.yaml b/patterns/rd-pq-adaptation.yaml deleted file mode 100644 index be9e3de..0000000 --- a/patterns/rd-pq-adaptation.yaml +++ /dev/null @@ -1,33 +0,0 @@ -Description: RD PQ Adaptation -Name: rd-pq-adaptation -Packages: -#- alsa-scenario-scn-data-0-wm1811 -#- bluetooth-firmware-bcm-e4412 -- charging-animation -- device-manager-plugin-exynos -#- gst-plugins-e4x12 -#- gst-plugins-fimcconvert -#- libomxil-e4x12 -- libtbm-exynos4412 -#- mfc-firmware-e4412 -#- mmfw-sysconf-cleansdk-e4x12 -#- model-config-rd-pq -- my-account -#- nfc-plugin-65nxp -#- nfc-plugin-nxp -- opengl-es-virtual-drv -#- org.tizen.mobileprint -- powertop -- print-service -- print-driver-data -- pygobject -- rfkill -#- sensor-plugins -#- system-plugin-slp -- system-plugin-mount -#- systemd-console-ttySAC2 -- tel-plugin-imcmodem -#- xorg-x11-drv-exynos -#- xorg-x11-misc-exynos -- xf86-video-fbdev -Summary: RD PQ Adaptation diff --git a/scripts/buildname.nochroot b/scripts/buildname.nochroot new file mode 100644 index 0000000..36ae504 --- /dev/null +++ b/scripts/buildname.nochroot @@ -0,0 +1,5 @@ +# buildname.nochroot +if [ -n "$IMG_NAME" ]; then + echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/tizen-release + echo "BUILD_ID=$IMG_NAME" >> $INSTALL_ROOT/etc/os-release +fi diff --git a/scripts/common-adaptation.post b/scripts/common-adaptation.post new file mode 100644 index 0000000..b6db847 --- /dev/null +++ b/scripts/common-adaptation.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "############### common-adaptation.post ################" + diff --git a/scripts/common-base.post b/scripts/common-base.post new file mode 100644 index 0000000..e34f86c --- /dev/null +++ b/scripts/common-base.post @@ -0,0 +1,18 @@ +#!/bin/sh +echo "############### common-base.post ################" + +######### multiuser mode: create additional users and fix their homedirs +tizen_crypted_pass=$(perl -e 'print crypt("tizen", "aa")') +uid=5001 + +for user in alice bob carol guest; do + if ! generic_base_user_exists $user; then + useradd -u $uid -d /home/$user -g users -G audio,video,users,display -m --password "$tizen_crypted_pass" $user + uid=$(( $uid + 1 )) + fi + + generic_base_fix_user_homedir $user +done + + + diff --git a/scripts/common-crosswalk.post b/scripts/common-crosswalk.post new file mode 100644 index 0000000..83b6f13 --- /dev/null +++ b/scripts/common-crosswalk.post @@ -0,0 +1,6 @@ +#!/bin/sh +echo "############### common-crosswalk.post ################" + +# start wrt widgets preinstall +prepare_widgets.sh + diff --git a/scripts/common-desktop-applications.post b/scripts/common-desktop-applications.post new file mode 100644 index 0000000..cca1bd1 --- /dev/null +++ b/scripts/common-desktop-applications.post @@ -0,0 +1,9 @@ +#!/bin/sh +echo "############### common-desktop-applications.post ################" + +# call function defined in meta-generic +for user in alice bob carol guest developer; do + generic_desktop_applications_fix_userhome $user +done + + diff --git a/scripts/common-middleware.post b/scripts/common-middleware.post new file mode 100644 index 0000000..b79d397 --- /dev/null +++ b/scripts/common-middleware.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "############### common-middleware.post ################" + diff --git a/scripts/common-packaging.post b/scripts/common-packaging.post new file mode 100644 index 0000000..11943b1 --- /dev/null +++ b/scripts/common-packaging.post @@ -0,0 +1,49 @@ +#!/bin/sh +echo "############### common-packaging.post ################" + +# generate repo files for zypper +function genrepo() { + local url=$1 + local reponame=$2 + local filename=${3:-$2} + local enabled=${4:-0} + + local prefix=${TZ_BUILD_VENDOR}-${TZ_BUILD_PROFILE}-${TZ_BUILD_REPO} + + # remove double slashes if any + url=$(sed -e 's|/\+|/|g' -e 's|:/|://|' <<<$url) + + cat >> /etc/zypp/repos.d/$prefix-${filename}.repo << EOF +[$prefix-${reponame}] +name=$prefix-${reponame} +enabled=$enabled +autorefresh=0 +baseurl=${url}?ssl_verify=no +type=rpm-md +gpgcheck=0 + +EOF +} + +# source /etc/tizen-build.conf to get more infos about project, repos etc. +. /etc/tizen-build.conf + +# adjust build_id if this scripts executes before the replacement in /etc/tizen-build.conf +TZ_BUILD_ID=$(echo $TZ_BUILD_ID | sed 's|@BUILD_ID[@]|@BUILD_ID@|') + +# snapshot repo +genrepo ${TZ_BUILD_SNAPSHOT_URL}/${TZ_BUILD_ID}/repos/${TZ_BUILD_REPO}/packages snapshot snapshot 1 +genrepo ${TZ_BUILD_SNAPSHOT_URL}/${TZ_BUILD_ID}/repos/${TZ_BUILD_REPO}/debug snapshot-debug snapshot 1 + +# latest repo +genrepo ${TZ_BUILD_SNAPSHOT_URL}/latest/repos/${TZ_BUILD_REPO}/packages update update 0 +genrepo ${TZ_BUILD_SNAPSHOT_URL}/latest/repos/${TZ_BUILD_REPO}/debug update-debug update 0 + +# daily repo +genrepo ${TZ_BUILD_DAILY_URL}/latest/repos/${TZ_BUILD_REPO}/packages daily daily 0 +genrepo ${TZ_BUILD_DAILY_URL}/latest/repos/${TZ_BUILD_REPO}/debug daily-debug daily 0 + +# weekly repo +genrepo ${TZ_BUILD_WEEKLY_URL}/latest/repos/${TZ_BUILD_REPO}/packages weekly weekly 0 +genrepo ${TZ_BUILD_WEEKLY_URL}/latest/repos/${TZ_BUILD_REPO}/debug weekly-debug weekly 0 + diff --git a/scripts/common-qt5.post b/scripts/common-qt5.post new file mode 100644 index 0000000..28be14a --- /dev/null +++ b/scripts/common-qt5.post @@ -0,0 +1,19 @@ +#!/bin/sh +echo "############### common-qt5.post ################" + +list=' +qt5-qtdeclarative-examples +qt5-cinematic-experience +' + +dst="/usr/share/applications/tizen/launcher.conf" + +if [ -w "$dst" ] ; then + for app in $list ; do + src="/usr/share/applications/$app.desktop" + + grep "$src" "$dst" \ + || { [ ! -r "$src" ] || echo "$src" >> "$dst" ; } + + done +fi diff --git a/scripts/generic-adaptation.post b/scripts/generic-adaptation.post new file mode 100644 index 0000000..2ae0730 --- /dev/null +++ b/scripts/generic-adaptation.post @@ -0,0 +1,6 @@ +#!/bin/sh +echo "#################### generic-adaptation.post ####################" + +# fix TIVI-2291 +sed -ri "s/(^blacklist i8042.*$)/#fix from base-general.post \1/" /etc/modprobe.d/blacklist.conf + diff --git a/scripts/generic-applications.post b/scripts/generic-applications.post new file mode 100644 index 0000000..a6ceebd --- /dev/null +++ b/scripts/generic-applications.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "#################### generic-applications.post ####################" + diff --git a/scripts/generic-base.post b/scripts/generic-base.post new file mode 100644 index 0000000..2bd307b --- /dev/null +++ b/scripts/generic-base.post @@ -0,0 +1,70 @@ +################ generic-base.post ################## + +# was base-general-minimal.post - not used actually +#rm /usr/lib/systemd/system/default.target +#ln -sf multi-user.target /usr/lib/systemd/system/default.target + +# Run prelink to speed up dynamic binary/library loading +/usr/sbin/prelink --all + +ln -sf /proc/self/mounts /etc/mtab + +# fix TIVI-2291 +sed -ri "s/(^blacklist i8042.*$)/#fix from base-general.post \1/" /etc/modprobe.d/blacklist.conf + +# sdx: fix smack labels on /var/log +chsmack -a '*' /var/log + +# Temporary work around for bug in filesystem package resulting in the 'app' user home +# directory being only readable by root +chown -R app:app /opt/home/app + +# Since weston-launch runs with the "User" label, the app +# home dir must have the same label +chsmack -a User /opt/home/app + +# bug workaround on MIC (DEVT-160) +if [ -e /etc/sysconfig/i18n -a ! -e /etc/locale.conf ]; then + unset LANG + unset LC_CTYPE + unset LC_NUMERIC + unset LC_TIME + unset LC_COLLATE + unset LC_MONETARY + unset LC_MESSAGES + unset LC_PAPER + unset LC_NAME + unset LC_ADDRESS + unset LC_TELEPHONE + unset LC_MEASUREMENT + unset LC_IDENTIFICATION + . /etc/sysconfig/i18n + rm -f /etc/sysconfig/i18n + [ -n "$LANG" ] && echo LANG=$LANG > /etc/locale.conf + [ -n "$LC_CTYPE" ] && echo LC_CTYPE=$LC_CTYPE >> /etc/locale.conf + [ -n "$LC_NUMERIC" ] && echo LC_NUMERIC=$LC_NUMERIC >> /etc/locale.conf + [ -n "$LC_TIME" ] && echo LC_TIME=$LC_TIME >> /etc/locale.conf + [ -n "$LC_COLLATE" ] && echo LC_COLLATE=$LC_COLLATE >> /etc/locale.conf + [ -n "$LC_MONETARY" ] && echo LC_MONETARY=$LC_MONETARY >> /etc/locale.conf + [ -n "$LC_MESSAGES" ] && echo LC_MESSAGES=$LC_MESSAGES >> /etc/locale.conf + [ -n "$LC_PAPER" ] && echo LC_PAPER=$LC_PAPER >> /etc/locale.conf + [ -n "$LC_NAME" ] && echo LC_NAME=$LC_NAME >> /etc/locale.conf + [ -n "$LC_ADDRESS" ] && echo LC_ADDRESS=$LC_ADDRESS >> /etc/locale.conf + [ -n "$LC_TELEPHONE" ] && echo LC_TELEPHONE=$LC_TELEPHONE >> /etc/locale.conf + [ -n "$LC_MEASUREMENT" ] && echo LC_MEASUREMENT=$LC_MEASUREMENT >> /etc/locale.conf + [ -n "$LC_IDENTIFICATION" ] && echo LC_IDENTIFICATION=$LC_IDENTIFICATION >> /etc/locale.conf +fi + +# workaround for bug PTREL-763 +patch -p1 -d/ <<'EOF' +diff -urN bad/etc/pam.d/systemd-user good/etc/pam.d/systemd-user +--- bad/etc/pam.d/systemd-user 2014-03-20 10:01:36.657843073 +0100 ++++ good/etc/pam.d/systemd-user 2014-03-20 10:06:51.586121696 +0100 +@@ -4,5 +4,6 @@ + + account include system-auth + session include system-auth ++session required pam_systemd.so + auth required pam_deny.so + password required pam_deny.so +EOF diff --git a/scripts/generic-bluetooth.post b/scripts/generic-bluetooth.post new file mode 100644 index 0000000..e2a3d25 --- /dev/null +++ b/scripts/generic-bluetooth.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "#################### generic-bluetooth.post ####################" + diff --git a/scripts/generic-console-tools.post b/scripts/generic-console-tools.post new file mode 100644 index 0000000..739f905 --- /dev/null +++ b/scripts/generic-console-tools.post @@ -0,0 +1,41 @@ +#!/bin/sh +echo "#################### generic-console-tools.post ####################" + +# customize bash prompt +cat >/etc/profile.d/bash_prompt_custom.sh <<'EOF' +if [ "$PS1" ]; then + + function proml { + # set a fancy prompt (overwrite the one in /etc/profile) + local default="\[\e[0m\]" + local usercol='\[\e[1;34m\]' # blue + local hostcol='\[\e[1;32m\]' # green + local pathcol='\[\e[1;33m\]' # yellow + local gitcol='\[\e[1;31m\]' # light red + local termcmd='' + local _p="$"; + + if [ "`id -u`" -eq 0 ]; then + usercol='\[\e[1;31m\]' + _p="#" + fi + + PS1="${usercol}\u${default}@${hostcol}\h${default}:${pathcol}\w${default}${gitcol}${default}${_p} ${termcmd}" + } + + proml + + function rcd () { + [ "${1:0:1}" == "/" ] && { cd $1; } || { cd $(pwd -P)/$1; } + } + + alias ll="ls -lZ" + alias lr="ls -ltrZ" + alias la="ls -alZ" + + function get_manifest () { + rpm -qa --queryformat="%{name} %{Version} %{Release} %{VCS}\n" | sort + } +fi +EOF + diff --git a/scripts/generic-crosswalk.post b/scripts/generic-crosswalk.post new file mode 100644 index 0000000..b925b1f --- /dev/null +++ b/scripts/generic-crosswalk.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "#################### generic-crosswalk.post ####################" + diff --git a/scripts/generic-desktop-applications.post b/scripts/generic-desktop-applications.post new file mode 100644 index 0000000..1c5f89e --- /dev/null +++ b/scripts/generic-desktop-applications.post @@ -0,0 +1,23 @@ +#!/bin/sh +echo "#################### generic-desktop-applications.post ####################" + +# temp workaround to fill each user app_info database with global db infos +. /etc/tizen-platform.conf +ail_initdb +pkg_initdb + +# depends on generic-base functions +function generic_desktop_applications_fix_userhome() { + user=$1 + + generic_base_user_exists $user || return 1 + homedir=$(generic_base_user_home $user) + + echo "Fix app_info.db of $user" + chown -R $user:users $homedir/.applications/dbspace/ +} + +# fix TC-320 for SDK +. /etc/tizen-build.conf +[ "${TZ_BUILD_WITH_EMULATOR}" == "1" ] && generic_desktop_applications_fix_userhome developer + diff --git a/scripts/generic-middleware.post b/scripts/generic-middleware.post new file mode 100644 index 0000000..3e17485 --- /dev/null +++ b/scripts/generic-middleware.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "#################### generic-middleware.post ####################" + diff --git a/scripts/generic-multimedia-intel.post b/scripts/generic-multimedia-intel.post new file mode 100644 index 0000000..6d652c4 --- /dev/null +++ b/scripts/generic-multimedia-intel.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "#################### generic-multimedia-intel.post ####################" + diff --git a/scripts/generic-multimedia.post b/scripts/generic-multimedia.post new file mode 100644 index 0000000..caa42d9 --- /dev/null +++ b/scripts/generic-multimedia.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "#################### generic-multimedia.post ####################" + diff --git a/scripts/generic-packaging.post b/scripts/generic-packaging.post new file mode 100644 index 0000000..c31901c --- /dev/null +++ b/scripts/generic-packaging.post @@ -0,0 +1,9 @@ +#!/bin/sh +echo "#################### generic-packaging.post ####################" + +rm -rf /root/.zypp + +# was: rpm.post +rm -f /var/lib/rpm/__db* +rpmdb --rebuilddb + diff --git a/scripts/generic-qt5.post b/scripts/generic-qt5.post new file mode 100644 index 0000000..d92bec6 --- /dev/null +++ b/scripts/generic-qt5.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "#################### generic-qt5.post ####################" + diff --git a/scripts/generic-x11-intel.post b/scripts/generic-x11-intel.post new file mode 100644 index 0000000..26c03c9 --- /dev/null +++ b/scripts/generic-x11-intel.post @@ -0,0 +1,3 @@ +#!/bin/sh +echo "#################### generic-x11-intel.post ####################" + diff --git a/scripts/generic-x11.post b/scripts/generic-x11.post new file mode 100644 index 0000000..fff82d2 --- /dev/null +++ b/scripts/generic-x11.post @@ -0,0 +1,9 @@ +#!/bin/sh +echo "#################### generic-x11.post ####################" + +# enable X11 forwarding on ssh +if [ -f /etc/ssh/sshd_config ]; then + echo "X11Forwarding yes" >>/etc/ssh/sshd_config + echo "AddressFamily inet" >>/etc/ssh/sshd_config +fi + diff --git a/scripts/handset-blackbay.post b/scripts/handset-blackbay.post new file mode 100644 index 0000000..2d87183 --- /dev/null +++ b/scripts/handset-blackbay.post @@ -0,0 +1,12 @@ +# Make sdb work. +#vconftool set -t int memory/setting/usb_sel_mode 0 -f +set_usb_debug.sh --set + +# Set environment for launchpad daemon. Fix TDIST-264 +cat > /etc/sysconfig/launchpad <