--- /dev/null
+# 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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+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
--- /dev/null
+%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
--- /dev/null
+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
--- /dev/null
+part / --fstype="ext4" --ondisk=sda --size=6144 --active --label tizen-pc-genericdev
\ No newline at end of file
--- /dev/null
+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
--- /dev/null
+Description: Generic Applications
+Name: generic-applications
+Packages:
+- ca-certificates
+- ca-certificates-mozilla
+- webkit2-efl-test
+Summary: Generic Applications
--- /dev/null
+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
--- /dev/null
+Description: Generic Packaging
+Name: generic-packaging
+Packages:
+- gpg2
+- zypper
+Summary: Generic Packaging
--- /dev/null
+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
--- /dev/null
+# base-general.post
+
+ln -sf /proc/self/mounts /etc/mtab
+
+rm -rf /root/.zypp
+
--- /dev/null
+# base-ivi-minimal.post
+rm /usr/lib/systemd/system/default.target
+ln -sf multi-user.target /usr/lib/systemd/system/default.target
--- /dev/null
+# 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
--- /dev/null
+# 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
--- /dev/null
+# efi.post
+/usr/sbin/setup-efi-ivi
+
--- /dev/null
+# Run prelink to speed up dynamic binary/library loading
+/usr/sbin/prelink --all
--- /dev/null
+# rpm.post
+rm -f /var/lib/rpm/__db*
+rpmdb --rebuilddb
--- /dev/null
+# Needed to fix TIVI-1629
+vconftool set -t int -f db/setting/default_memory/wap 0
--- /dev/null
+######################################## START WRT WIDGETS PREINSTALL ####################
+
+prepare_widgets.sh
+install_widgets.sh
+
+######################################## END WRT WIDGETS PREINSTALL ####################