From c959650fe60861e3ef89c1adbebefd1c8d36215d Mon Sep 17 00:00:00 2001 From: Ronan Le Martret Date: Thu, 19 Dec 2013 12:14:46 +0100 Subject: [PATCH] - init project. Change-Id: I0e06d334c6a79582a104ed41300692376fc98878 Signed-off-by: Ronan Le Martret --- Makefile | 49 +++++++++++++++++++++++++++++++ VERSION | 1 + generic-repos.yaml | 20 +++++++++++++ generic.yaml | 56 +++++++++++++++++++++++++++++++++++ ks/generic-mbr-i586.yaml | 9 ++++++ packaging/meta-generic.changes | 0 packaging/meta-generic.spec | 32 ++++++++++++++++++++ partitions/README.generic | 3 ++ partitions/generic-mbr | 1 + patterns/generic-adaptation.yaml | 10 +++++++ patterns/generic-applications.yaml | 7 +++++ patterns/generic-middleware.yaml | 60 ++++++++++++++++++++++++++++++++++++++ patterns/generic-packaging.yaml | 6 ++++ patterns/generic-qa.yaml | 16 ++++++++++ scripts/base-general.post | 6 ++++ scripts/base-ivi-minimal.post | 3 ++ scripts/base-weston-default.post | 49 +++++++++++++++++++++++++++++++ scripts/buildname.nochroot | 5 ++++ scripts/efi.post | 3 ++ scripts/optimization.post | 2 ++ scripts/rpm.post | 3 ++ scripts/vconf-keys-default.post | 2 ++ scripts/wrt-widgets.post | 6 ++++ 23 files changed, 349 insertions(+) create mode 100644 Makefile create mode 100644 VERSION create mode 100644 generic-repos.yaml create mode 100644 generic.yaml create mode 100644 ks/generic-mbr-i586.yaml create mode 100644 packaging/meta-generic.changes create mode 100644 packaging/meta-generic.spec create mode 100644 partitions/README.generic create mode 100644 partitions/generic-mbr create mode 100644 patterns/generic-adaptation.yaml create mode 100644 patterns/generic-applications.yaml create mode 100644 patterns/generic-middleware.yaml create mode 100644 patterns/generic-packaging.yaml create mode 100644 patterns/generic-qa.yaml create mode 100644 scripts/base-general.post create mode 100644 scripts/base-ivi-minimal.post create mode 100644 scripts/base-weston-default.post create mode 100644 scripts/buildname.nochroot create mode 100644 scripts/efi.post create mode 100644 scripts/optimization.post create mode 100644 scripts/rpm.post create mode 100644 scripts/vconf-keys-default.post create mode 100644 scripts/wrt-widgets.post diff --git a/Makefile b/Makefile new file mode 100644 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 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 index 0000000..537cfeb --- /dev/null +++ b/generic-repos.yaml @@ -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 index 0000000..210e108 --- /dev/null +++ b/generic.yaml @@ -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 index 0000000..0a8f3fe --- /dev/null +++ b/ks/generic-mbr-i586.yaml @@ -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 index 0000000..e69de29 diff --git a/packaging/meta-generic.spec b/packaging/meta-generic.spec new file mode 100644 index 0000000..e10c6f2 --- /dev/null +++ b/packaging/meta-generic.spec @@ -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 index 0000000..c708236 --- /dev/null +++ b/partitions/README.generic @@ -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 index 0000000..1a5d132 --- /dev/null +++ b/partitions/generic-mbr @@ -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 index 0000000..413db24 --- /dev/null +++ b/patterns/generic-adaptation.yaml @@ -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 index 0000000..fac54d4 --- /dev/null +++ b/patterns/generic-applications.yaml @@ -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 index 0000000..b587d63 --- /dev/null +++ b/patterns/generic-middleware.yaml @@ -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 index 0000000..a32efa8 --- /dev/null +++ b/patterns/generic-packaging.yaml @@ -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 index 0000000..ee7594f --- /dev/null +++ b/patterns/generic-qa.yaml @@ -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 index 0000000..e944197 --- /dev/null +++ b/scripts/base-general.post @@ -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 index 0000000..33f28c2 --- /dev/null +++ b/scripts/base-ivi-minimal.post @@ -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 index 0000000..310e1f2 --- /dev/null +++ b/scripts/base-weston-default.post @@ -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 < /etc/udev/rules.d/99-dri.rules </usr/lib/udev/rules.d/99-tty.rules <> $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 index 0000000..00df656 --- /dev/null +++ b/scripts/efi.post @@ -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 index 0000000..ed08671 --- /dev/null +++ b/scripts/optimization.post @@ -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 index 0000000..be1ddcf --- /dev/null +++ b/scripts/rpm.post @@ -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 index 0000000..a79a7a7 --- /dev/null +++ b/scripts/vconf-keys-default.post @@ -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 index 0000000..58e8ded --- /dev/null +++ b/scripts/wrt-widgets.post @@ -0,0 +1,6 @@ +######################################## START WRT WIDGETS PREINSTALL #################### + +prepare_widgets.sh +install_widgets.sh + +######################################## END WRT WIDGETS PREINSTALL #################### -- 2.7.4