summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ks/RD-PQ-boot.yaml10
-rw-r--r--ks/RD-PQ.yaml23
-rw-r--r--ks/common-boot-armv7l-odroidu3.yaml12
-rw-r--r--ks/common-x11-2parts-armv7l.yaml11
-rw-r--r--ks/common-x11-3parts-armv7l-odroidu3.yaml10
-rw-r--r--ks/common-x11-mbr-i586.yaml16
-rw-r--r--ks/emulator-ref.yaml17
-rw-r--r--ks/geek-lite.yaml25
-rw-r--r--ks/geek-ref.yaml24
-rw-r--r--ks/geek.yaml24
-rw-r--r--mobile-repos.yaml5
-rw-r--r--mobile-targets.yaml11
-rw-r--r--mobile.yaml119
-rw-r--r--partitions/common-mbr1
-rw-r--r--partitions/common-mbr-2parts2
-rw-r--r--partitions/common-mbr-3parts3
-rw-r--r--partitions/common-mbr-boot2
-rw-r--r--scripts/buildname.nochroot5
-rw-r--r--scripts/common-adaptation.post3
-rw-r--r--scripts/common-base.post18
-rw-r--r--scripts/common-crosswalk.post6
-rw-r--r--scripts/common-desktop-applications.post9
-rw-r--r--scripts/common-middleware.post3
-rw-r--r--scripts/common-packaging.post49
-rw-r--r--scripts/common-qt5.post19
-rw-r--r--scripts/generic-adaptation.post6
-rw-r--r--scripts/generic-applications.post3
-rw-r--r--scripts/generic-base.post70
-rw-r--r--scripts/generic-bluetooth.post3
-rw-r--r--scripts/generic-console-tools.post41
-rw-r--r--scripts/generic-crosswalk.post3
-rw-r--r--scripts/generic-desktop-applications.post23
-rw-r--r--scripts/generic-middleware.post3
-rw-r--r--scripts/generic-multimedia-intel.post3
-rw-r--r--scripts/generic-multimedia.post3
-rw-r--r--scripts/generic-packaging.post9
-rw-r--r--scripts/generic-qt5.post3
-rw-r--r--scripts/generic-x11-intel.post3
-rw-r--r--scripts/generic-x11.post9
39 files changed, 429 insertions, 180 deletions
diff --git a/ks/RD-PQ-boot.yaml b/ks/RD-PQ-boot.yaml
deleted file mode 100644
index 742623b..0000000
--- a/ks/RD-PQ-boot.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-Name: RD-PQ-boot
-Schedule: "*"
-Active: True
-Platform: RD-PQ-boot
-FileName: RD-PQ-boot
-Architecture: armv7l
-Groups:
- - Boot system
-Attachment:
- - /var/tmp/u-boot/u-boot-mmc.bin
diff --git a/ks/RD-PQ.yaml b/ks/RD-PQ.yaml
deleted file mode 100644
index 5cb713c..0000000
--- a/ks/RD-PQ.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-Name: RD-PQ
-Schedule: "*"
-Active: True
-Platform: RD-PQ
-FileName: RD-PQ
-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
- - handset-rd-pq
- - 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..89fd60f
--- /dev/null
+++ b/ks/common-boot-armv7l-odroidu3.yaml
@@ -0,0 +1,12 @@
+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/ks/emulator-ref.yaml b/ks/emulator-ref.yaml
deleted file mode 100644
index 0cbd0ee..0000000
--- a/ks/emulator-ref.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/geek-lite.yaml b/ks/geek-lite.yaml
deleted file mode 100644
index 23ded05..0000000
--- a/ks/geek-lite.yaml
+++ /dev/null
@@ -1,25 +0,0 @@
-Name: Geek Lite
-Schedule: "*"
-Active: True
-Platform: Geek
-FileName: geek-lite
-Kernel: kernel-clovertrail
-Architecture: ia32
-Groups:
- - Clovertrail Adaptation
- - Mobile Enlightenment Lite
- - Mobile Applications Lite
- - Mobile Framework Lite
- - Wayland
-ExtraPackages:
- - sdbd
- - mobile-shell
-PostScripts:
- - Tizen-common-cleanup
- - handset-blackbay
-NoChrootScripts:
-Attachment:
- - preos-runtime-clovertrail
- - bootstub-bb
- - /boot/cmdline
- - /boot/vmlinuz-*
diff --git a/ks/geek-ref.yaml b/ks/geek-ref.yaml
deleted file mode 100644
index 0e2194f..0000000
--- a/ks/geek-ref.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-Name: Geek Ref
-Schedule: "*"
-Active: True
-Platform: Geek
-FileName: geek-ref
-Kernel: kernel-clovertrail
-Architecture: ia32
-Groups:
- - Clovertrail Adaptation
- - Mobile Enlightenment
- - Mobile Osp
- - Mobile Framework
- - Graphics and UI Framework X
-ExtraPackages:
- - sdbd
-PostScripts:
- - Tizen-common-cleanup
- - handset-blackbay
-NoChrootScripts:
-Attachment:
- - preos-runtime-clovertrail
- - bootstub-bb
- - /boot/cmdline
- - /boot/vmlinuz-*
diff --git a/ks/geek.yaml b/ks/geek.yaml
deleted file mode 100644
index 6917782..0000000
--- a/ks/geek.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-Name: Geek
-Schedule: "*"
-Active: True
-Platform: Geek
-FileName: geek
-Kernel: kernel-clovertrail
-Architecture: ia32
-Groups:
- - Clovertrail Adaptation
- - Mobile Enlightenment
- - Mobile Applications
- - Mobile Framework
- - Graphics and UI Framework X
-ExtraPackages:
- - sdbd
-PostScripts:
- - Tizen-common-cleanup
- - handset-blackbay
-NoChrootScripts:
-Attachment:
- - preos-runtime-clovertrail
- - bootstub-bb
- - /boot/cmdline
- - /boot/vmlinuz-*
diff --git a/mobile-repos.yaml b/mobile-repos.yaml
index 216c1be..6f32e47 100644
--- a/mobile-repos.yaml
+++ b/mobile-repos.yaml
@@ -2,6 +2,11 @@ Repositories:
- Name: mobile
Url: http://download.tizen.org/snapshots/tizen/mobile/@BUILD_ID@/repos/mobile/@ARCH@/packages/
Options: --save --ssl_verify=no
+
- Name: mobile-debug
Url: http://download.tizen.org/snapshots/tizen/mobile/@BUILD_ID@/repos/mobile/@ARCH@/debug/
Options: --save --ssl_verify=no
+
+ - Name: common-x11_armv7l
+ Url: http://download.tizen.org/snapshots/tizen/mobile/@BUILD_ID@/repos/arm-x11/packages/
+ Options: --ssl_verify=no
diff --git a/mobile-targets.yaml b/mobile-targets.yaml
new file mode 100644
index 0000000..abfa942
--- /dev/null
+++ b/mobile-targets.yaml
@@ -0,0 +1,11 @@
+---
+Targets:
+ - Name: arm-x11
+ Images:
+ - common-boot-armv7l-odroidu3.yaml
+ - common-x11-2parts-armv7l.yaml
+ - common-x11-3parts-armv7l-odroidu3.yaml
+
+# - Name: ia32-x11
+# Images:
+#- common-x11-mbr-i586.yaml
diff --git a/mobile.yaml b/mobile.yaml
index 80e9ae5..f9cd36a 100644
--- a/mobile.yaml
+++ b/mobile.yaml
@@ -1,72 +1,77 @@
Default:
Baseline: tizen-3.0
Active: True
+ Mic2Options: -f raw --fstab=uuid --copy-kernel --compress-disk-image=bz2 --generate-bmap
+ Part: common-mbr
Language: en_US.UTF-8
Keyboard: us
- SaveRepos: True
Timezone: America/Los_Angeles
RootPass: tizen
- DefaultUser: tizen
+ DefaultUser: guest
DefaultUserPass: tizen
- BootloaderOptions: ""
-
-Geek:
- Bootloader: True
- BootloaderAppend: "rootdelay=5 security=none"
- BootloaderTimeout: 0
- SaveRepos: True
+ BootLoader: True
+ BootloaderAppend: "rw vga=current splash rootwait rootfstype=ext4 plymouth.enable=0"
+ BootloaderTimeout: 3
+ BootloaderOptions: '--ptable=gpt --menus="install:Wipe and Install:systemd.unit=system-installer.service:test"'
+ StartX: False
Desktop: None
- Mic2Options: -f loop --pack-to=@NAME@.zip
- Part: base
+ SaveRepos: False
+ UserGroups: "audio,video"
Groups:
- - Base System
- - Console Tools
- Repos:
- - mobile
+ - Generic Base
+ - Common Base
+ - Generic Console Tools
+ - Generic Packaging
+ - Common Packaging
+ - Generic Adaptation
+ - Common Adaptation
+ PostScripts:
+ - generic-base
+ - common-base
+ - generic-console-tools
+ - generic-packaging
+ - common-packaging
+ - generic-adaptation
+ - common-adaptation
+ NoChrootScripts:
+ - buildname
-RD-PQ:
- Bootloader: True
- BootloaderAppend: "rootdelay=5"
- BootloaderTimeout: 0
- SaveRepos: True
+Boot-Odroidu3:
+ Part: common-mbr-boot
Desktop: None
- DefaultUser: root
- DefaultUserPass: ""
- Architecture: armv7l
- Mic2Options: -f loop --pack-to=@NAME@.tar.gz
- Part: RD-PQ
+ SaveRepos: False
+ UserGroups: "audio,video"
Groups:
- - Base System
- - Console Tools
- Repos:
- - mobile
-
-RD-PQ-boot:
- Bootloader: True
- BootloaderAppend: "rootdelay=5"
- BootloaderTimeout: 0
- SaveRepos: True
- Desktop: None
- DefaultUser: root
- DefaultUserPass: ""
- Architecture: armv7l
- Mic2Options: -f loop --pack-to=@NAME@.tar.gz
- Part: RD-PQ-boot
- Repos:
- - mobile
+ - Common Boot Odroid U3
+ Repos: []
-Emulator:
- Bootloader: True
- BootloaderAppend: "rootdelay=5"
- BootloaderTimeout: 0
- SaveRepos: True
- Desktop: None
- DefaultUser: root
- DefaultUserPass: ""
- Mic2Options: -f loop --pack-to=@NAME@.tar.gz
- Part: base
+X11:
+ Part: common-mbr
+ UserGroups: "audio,video"
Groups:
- - Base System
- - Console Tools
- Repos:
- - mobile
+ - Generic X11
+ - Generic Middleware
+ - Common Middleware
+ - Generic Applications
+ - Generic Bluetooth
+ - Generic Multimedia
+ - Generic Desktop Applications
+ - Common Desktop Applications
+ - Generic Crosswalk
+ - Common Crosswalk
+ - Generic Qt5
+ - Common Qt5
+ PostScripts:
+ - generic-x11
+ - generic-middleware
+ - common-middleware
+ - generic-applications
+ - generic-bluetooth
+ - generic-multimedia
+ - generic-desktop-applications
+ - common-desktop-applications
+ - generic-crosswalk
+ - common-crosswalk
+ - generic-qt5
+ - common-qt5
+ Repos: []
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/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
+