- init project. 77/13977/1
authorRonan Le Martret <ronan@fridu.net>
Thu, 19 Dec 2013 11:14:46 +0000 (12:14 +0100)
committerRonan Le Martret <ronan@fridu.net>
Thu, 19 Dec 2013 11:14:46 +0000 (12:14 +0100)
Change-Id: I0e06d334c6a79582a104ed41300692376fc98878
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
23 files changed:
Makefile [new file with mode: 0644]
VERSION [new file with mode: 0644]
generic-repos.yaml [new file with mode: 0644]
generic.yaml [new file with mode: 0644]
ks/generic-mbr-i586.yaml [new file with mode: 0644]
packaging/meta-generic.changes [new file with mode: 0644]
packaging/meta-generic.spec [new file with mode: 0644]
partitions/README.generic [new file with mode: 0644]
partitions/generic-mbr [new file with mode: 0644]
patterns/generic-adaptation.yaml [new file with mode: 0644]
patterns/generic-applications.yaml [new file with mode: 0644]
patterns/generic-middleware.yaml [new file with mode: 0644]
patterns/generic-packaging.yaml [new file with mode: 0644]
patterns/generic-qa.yaml [new file with mode: 0644]
scripts/base-general.post [new file with mode: 0644]
scripts/base-ivi-minimal.post [new file with mode: 0644]
scripts/base-weston-default.post [new file with mode: 0644]
scripts/buildname.nochroot [new file with mode: 0644]
scripts/efi.post [new file with mode: 0644]
scripts/optimization.post [new file with mode: 0644]
scripts/rpm.post [new file with mode: 0644]
scripts/vconf-keys-default.post [new file with mode: 0644]
scripts/wrt-widgets.post [new file with mode: 0644]

diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..9720056
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,49 @@
+# ex: set tabstop=4 noexpandtab: 
+VERSION = $(shell cat VERSION)
+NAME=meta-generic
+TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
+DESTDIR=
+ARCH=i586
+
+ifeq ($(VERSION), $(TAGVER))
+        TAG = $(TAGVER)
+else
+        TAG = "HEAD"
+endif
+
+all:
+
+install:
+       install -d ${DESTDIR}/usr/share/package-groups/generic
+       install -d ${DESTDIR}/usr/share/image-configurations/generic/configs
+       install -d ${DESTDIR}/usr/share/image-configurations/generic/scripts
+       install -d ${DESTDIR}/usr/share/image-configurations/generic/partitions
+       install -m 644 patterns/*.yaml ${DESTDIR}/usr/share/package-groups/generic
+       install -m 644 generic.yaml ${DESTDIR}/usr/share/image-configurations/generic
+       install -m 644 generic-repos.yaml ${DESTDIR}/usr/share/image-configurations/generic
+       install -m 644 ks/*.yaml ${DESTDIR}/usr/share/image-configurations/generic/configs
+       install -D partitions/* ${DESTDIR}/usr/share/image-configurations/generic/partitions
+       install -D scripts/* ${DESTDIR}/usr/share/image-configurations/generic/scripts
+
+test:
+       kickstarter -c generic.yaml -r generic-repos.yaml  -e ks/
+tag:
+       git tag -a $(VERSION) -m "$(VERSION)"
+       git push --tags
+
+changelog:
+       python ./scripts/gitlog2changelog.py
+
+
+dist-bz2:
+       git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
+               bzip2  > $(NAME)-$(VERSION).tar.bz2
+
+dist-gz:
+       git archive --format=tar --prefix=$(NAME)-$(VERSION)/ $(TAG) | \
+               gzip  > $(NAME)-$(VERSION).tar.gz
+
+dist: dist-bz2
+
+clean:
+       rm -rf patterns.xml INDEX.xml group.xml *.xml
diff --git a/VERSION b/VERSION
new file mode 100644 (file)
index 0000000..5325a8d
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+001
diff --git a/generic-repos.yaml b/generic-repos.yaml
new file mode 100644 (file)
index 0000000..537cfeb
--- /dev/null
@@ -0,0 +1,20 @@
+Repositories:
+    -   Name: generic
+        Url:  http://download.tizen.org/live/Tizen:/Generic/x86_64-wayland/
+        Options: --ssl_verify=no
+        
+    -   Name: generic-wayland_i586
+        Url:  http://download.tizen.org/live/Tizen:/Generic/ia32-wayland/
+        Options: --ssl_verify=no
+        
+    -   Name: generic-wayland_x86_64
+        Url:  http://download.tizen.org/live/Tizen:/Generic/x86_64-wayland/
+        Options: --ssl_verify=no
+        
+    -   Name: generic-x11_i586
+        Url:  http://download.tizen.org/live/Tizen:/Generic/ia32-x11/
+        Options: --ssl_verify=no
+        
+    -   Name: generic-x11_x86_64
+        Url:  http://download.tizen.org/live/Tizen:/Generic/x86_64-x11/
+        Options: --ssl_verify=no
\ No newline at end of file
diff --git a/generic.yaml b/generic.yaml
new file mode 100644 (file)
index 0000000..210e108
--- /dev/null
@@ -0,0 +1,56 @@
+Default:
+    Baseline: tizen-3.0
+    Active: True
+    Mic2Options: -f raw --fstab=uuid --copy-kernel --compress-disk-image=bz2 --generate-bmap
+    Architecture: ia32
+    Part: generic-mbr
+    Language: en_US.UTF-8
+    Keyboard: us
+    Timezone: America/Los_Angeles
+    RootPass: tizen
+    DefaultUser: tizen
+    DefaultUserPass: tizen
+    BootLoader: True
+    BootloaderAppend: "rootwait rootfstype=ext4 quiet rw vga=current"
+    BootloaderTimeout: 3
+    BootloaderOptions: '--ptable=gpt  --menus="install:Wipe and Install:systemd.unit=system-installer.service:test"'
+    StartX: False
+    Desktop: None
+    Repos:
+        - Generic     
+    SaveRepos: False
+    UserGroups: "audio,video"
+    Groups:
+        - Base System
+        - Generic Packaging
+        - Generic Adaptation
+    PostScripts:
+        - base-general
+        - rpm
+        - base-weston-default
+        - wrt-widgets.post
+        - vconf-keys-default 
+    NoChrootScripts:
+        - buildname  
+
+Wayland-i586:
+    Part: generic-mbr
+    UserGroups: "audio,video,weston-launch"
+    Groups:
+        - Generic Middleware
+        - Wayland
+        - Console Tools
+        - Generic Applications
+    PostScripts:
+        - optimization
+
+Wayland-x86_64:
+    Part: generic-mbr
+    UserGroups: "audio,video,weston-launch"
+    Groups:
+        - Generic Middleware
+        - Wayland
+        - Console Tools
+        - Generic Applications
+    PostScripts:
+        - optimization
\ No newline at end of file
diff --git a/ks/generic-mbr-i586.yaml b/ks/generic-mbr-i586.yaml
new file mode 100644 (file)
index 0000000..0a8f3fe
--- /dev/null
@@ -0,0 +1,9 @@
+Name: Generic MBR 86_x64
+Schedule: "*"
+Active: True
+Platform: Wayland-i586
+Part: generic-mbr
+FileName: generic-mbr-i586
+Kernel: kernel-x86-generic
+Repos:
+    - generic-wayland_x86_64
diff --git a/packaging/meta-generic.changes b/packaging/meta-generic.changes
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packaging/meta-generic.spec b/packaging/meta-generic.spec
new file mode 100644 (file)
index 0000000..e10c6f2
--- /dev/null
@@ -0,0 +1,32 @@
+%define profile generic
+
+Summary:       Generic Meta Data
+Name:          meta-generic
+Version:       001
+Release:       1
+BuildArch:  noarch
+License:       GPL-2.0
+Group:         Base/Configuration
+URL:           http://www.tizen.org
+Source:                %{name}-%{version}.tar.bz2
+
+%description
+Generic Meta Data.
+Includes patterns and image configurations for Generic images.
+
+%prep
+%setup -q
+
+%build
+make
+
+%install
+%make_install
+
+
+%files
+%attr(644,-,-) %{_datadir}/package-groups/%{profile}/*.yaml
+%{_datadir}/image-configurations/%{profile}/*.yaml
+%{_datadir}/image-configurations/%{profile}/configs/*.yaml
+%{_datadir}/image-configurations/%{profile}/partitions
+%{_datadir}/image-configurations/%{profile}/scripts
diff --git a/partitions/README.generic b/partitions/README.generic
new file mode 100644 (file)
index 0000000..c708236
--- /dev/null
@@ -0,0 +1,3 @@
+generic-mbr partition file is for images using "legacy" mbr partitioning scheme.
+
+These files are referenced in the respective image ks files to set the partitioning accordingly
diff --git a/partitions/generic-mbr b/partitions/generic-mbr
new file mode 100644 (file)
index 0000000..1a5d132
--- /dev/null
@@ -0,0 +1 @@
+part / --fstype="ext4" --ondisk=sda --size=6144 --active --label tizen-pc-genericdev
\ No newline at end of file
diff --git a/patterns/generic-adaptation.yaml b/patterns/generic-adaptation.yaml
new file mode 100644 (file)
index 0000000..413db24
--- /dev/null
@@ -0,0 +1,10 @@
+Description: Generic Adaptation
+Name: generic-adaptation
+Packages:
+- desktop-skin
+- linux-firmware
+- xf86-input-synaptics
+- xf86-video-intel
+- xf86-input-keyboard
+- wrt-widgets
+Summary: Generic Adaptation
diff --git a/patterns/generic-applications.yaml b/patterns/generic-applications.yaml
new file mode 100644 (file)
index 0000000..fac54d4
--- /dev/null
@@ -0,0 +1,7 @@
+Description: Generic Applications
+Name: generic-applications
+Packages:
+- ca-certificates
+- ca-certificates-mozilla
+- webkit2-efl-test
+Summary: Generic Applications
diff --git a/patterns/generic-middleware.yaml b/patterns/generic-middleware.yaml
new file mode 100644 (file)
index 0000000..b587d63
--- /dev/null
@@ -0,0 +1,60 @@
+Description: Generic Middleware
+Name: generic-middleware
+Packages:
+- alsa-utils
+- alsa-plugins-pulse
+- bluez
+- bluetooth-agent
+- bluetooth-frwk
+- bluetooth-share
+- bluetooth-tools-no-firmware
+- calendar-service
+- csr-framework
+- default-ac-domains
+- econnman
+- elm-misc
+- emotion
+- efl-theme-tizen-hd
+- evolution-data-server
+- gdb-server
+- gpg2
+- gst-libav
+- gst-plugins-bad
+- gst-plugins-base
+- gst-plugins-good
+- gstreamer
+- gstreamer-vaapi
+- iptables
+- libprivilege-control-conf
+- libva-intel-driver
+- media-data-sdk
+- neard
+- neardal  
+- net-config
+- obexd
+- ofono
+- pam-locale
+- pkgmgr-server
+- prelink
+- pulseaudio
+- pulseaudio-config
+- pulseaudio-locale
+- pulseaudio-module-bluetooth
+- pulseaudio-utils
+- rfkill
+- tree
+- vaapi-tools
+- wpa_supplicant
+- web-ui-fw
+- web-ui-fw-demo-tizen-winsets
+- web-ui-fw-theme-default
+- web-ui-fw-theme-tizen-black
+- web-ui-fw-theme-tizen-white
+- wrt
+- wrt-commons
+- wrt-installer
+- wrt-installer-preinstall-service
+- wrt-plugins-tizen
+- wrt-security
+- zypper
+Summary: Generic Middleware
diff --git a/patterns/generic-packaging.yaml b/patterns/generic-packaging.yaml
new file mode 100644 (file)
index 0000000..a32efa8
--- /dev/null
@@ -0,0 +1,6 @@
+Description: Generic Packaging
+Name: generic-packaging
+Packages:
+- gpg2
+- zypper
+Summary: Generic Packaging
diff --git a/patterns/generic-qa.yaml b/patterns/generic-qa.yaml
new file mode 100644 (file)
index 0000000..ee7594f
--- /dev/null
@@ -0,0 +1,16 @@
+Description: Generic QA Tools
+Name: generic-qa
+Packages:
+- bluez-test
+- connman-test
+- dbus-python
+- dlogutil
+- eet-tools
+- gdb
+- gstreamer-utils
+- neard-test
+- ofono-test
+- python-xml
+- wget
+- zypper
+Summary: Generic QA Tools
diff --git a/scripts/base-general.post b/scripts/base-general.post
new file mode 100644 (file)
index 0000000..e944197
--- /dev/null
@@ -0,0 +1,6 @@
+# base-general.post
+
+ln -sf /proc/self/mounts /etc/mtab
+
+rm -rf /root/.zypp
+
diff --git a/scripts/base-ivi-minimal.post b/scripts/base-ivi-minimal.post
new file mode 100644 (file)
index 0000000..33f28c2
--- /dev/null
@@ -0,0 +1,3 @@
+# base-ivi-minimal.post
+rm /usr/lib/systemd/system/default.target
+ln -sf multi-user.target  /usr/lib/systemd/system/default.target
diff --git a/scripts/base-weston-default.post b/scripts/base-weston-default.post
new file mode 100644 (file)
index 0000000..310e1f2
--- /dev/null
@@ -0,0 +1,49 @@
+# Initialize the native application database
+pkg_initdb
+
+# Add 'app' user to the weston-launch group
+/usr/sbin/groupmod -A app weston-launch
+
+# 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
+
+# base-weston-default.post
+mkdir -p /usr/lib/systemd/system/graphical.target.wants
+ln -sf weston.target  /usr/lib/systemd/user/default.target
+
+# Enable user@5000.service by setting the linger for user 'app'
+mkdir -p /var/lib/systemd/linger
+touch /var/lib/systemd/linger/app
+
+# Add over-riding environment to enable the web runtime to
+# run on an IVI image as a different user then the tizen user
+# Some notes on some of the variables:
+#  - ELM_THEME is needed in order for the wrt to have visible content
+#  - WRT_PROCESS_POOL_DISABLE is a work around for TIVI-2062
+cat > /etc/sysconfig/wrt <<EOF
+DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/5000/dbus/user_bus_socket
+XDG_RUNTIME_DIR=/run/user/5000
+ELM_ENGINE=wayland_egl
+ECORE_EVAS_ENGINE=wayland_egl
+ELM_THEME=tizen-HD-light
+WRT_PROCESS_POOL_DISABLE=1
+EOF
+
+# Use the same over-rides for the native prelaunch daemon
+cp /etc/sysconfig/wrt /etc/sysconfig/launchpad
+
+# Add a rule to ensure the app user has permissions to
+# open the graphics device
+cat > /etc/udev/rules.d/99-dri.rules <<EOF
+SUBSYSTEM=="drm", MODE="0666"
+EOF
+
+# sdx: user 'app' must own /dev/tty1 for weston to start correctly
+cat >/usr/lib/udev/rules.d/99-tty.rules <<EOF
+SUBSYSTEM=="tty", KERNEL=="tty1", GROUP="app", OWNER="app"
+EOF
\ No newline at end of file
diff --git a/scripts/buildname.nochroot b/scripts/buildname.nochroot
new file mode 100644 (file)
index 0000000..36ae504
--- /dev/null
@@ -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/efi.post b/scripts/efi.post
new file mode 100644 (file)
index 0000000..00df656
--- /dev/null
@@ -0,0 +1,3 @@
+# efi.post
+/usr/sbin/setup-efi-ivi
+
diff --git a/scripts/optimization.post b/scripts/optimization.post
new file mode 100644 (file)
index 0000000..ed08671
--- /dev/null
@@ -0,0 +1,2 @@
+# Run prelink to speed up dynamic binary/library loading
+/usr/sbin/prelink --all
diff --git a/scripts/rpm.post b/scripts/rpm.post
new file mode 100644 (file)
index 0000000..be1ddcf
--- /dev/null
@@ -0,0 +1,3 @@
+# rpm.post
+rm -f /var/lib/rpm/__db*
+rpmdb --rebuilddb
diff --git a/scripts/vconf-keys-default.post b/scripts/vconf-keys-default.post
new file mode 100644 (file)
index 0000000..a79a7a7
--- /dev/null
@@ -0,0 +1,2 @@
+# Needed to fix TIVI-1629
+vconftool set -t int -f db/setting/default_memory/wap 0
diff --git a/scripts/wrt-widgets.post b/scripts/wrt-widgets.post
new file mode 100644 (file)
index 0000000..58e8ded
--- /dev/null
@@ -0,0 +1,6 @@
+######################################## START WRT WIDGETS PREINSTALL ####################
+
+prepare_widgets.sh
+install_widgets.sh
+
+######################################## END WRT WIDGETS PREINSTALL ####################