Upload Tizen:Main source
authorKim Kibum <kb0929.kim@samsung.com>
Mon, 21 May 2012 08:59:42 +0000 (17:59 +0900)
committerKim Kibum <kb0929.kim@samsung.com>
Mon, 21 May 2012 08:59:42 +0000 (17:59 +0900)
35 files changed:
ChangeLog [new file with mode: 0755]
Makefile [new file with mode: 0755]
README [new file with mode: 0755]
README.kickstarter [new file with mode: 0755]
VERSION [new file with mode: 0755]
configurations.yaml [new file with mode: 0755]
custom/part/custom [new file with mode: 0755]
custom/part/tizen-arm [new file with mode: 0755]
custom/part/tizen-handset [new file with mode: 0644]
custom/part/tizen-ivi [new file with mode: 0755]
custom/scripts/arch-armv7hl.post [new file with mode: 0755]
custom/scripts/buildname.nochroot [new file with mode: 0755]
custom/scripts/cleanup.post [new file with mode: 0755]
custom/scripts/cogl.post [new file with mode: 0755]
custom/scripts/inittab.post [new file with mode: 0755]
custom/scripts/ivi-x11.post [new file with mode: 0755]
custom/scripts/prelink.post [new file with mode: 0755]
custom/scripts/rpm.post [new file with mode: 0755]
custom/scripts/sound.post [new file with mode: 0755]
custom/scripts/symlink-root.post [new file with mode: 0755]
custom/scripts/tizen-lb.post [new file with mode: 0755]
custom/scripts/udev.post [new file with mode: 0755]
custom/scripts/update.post [new file with mode: 0755]
custom/scripts/usb-networking.post [new file with mode: 0755]
custom/scripts/users.post [new file with mode: 0755]
custom/scripts/uxlaunch-symlink-ivi.post [new file with mode: 0755]
handset/handset-pinetrail.yaml [new file with mode: 0755]
lb/lb.yaml [new file with mode: 0755]
packaging/image-configurations.changes [new file with mode: 0644]
packaging/image-configurations.spec [new file with mode: 0644]
repos.yaml [new file with mode: 0755]
scripts/create-daily.sh [new file with mode: 0755]
scripts/create.sh [new file with mode: 0755]
scripts/gitlog2changelog.py [new file with mode: 0755]
scripts/merge-request.sh [new file with mode: 0755]

diff --git a/ChangeLog b/ChangeLog
new file mode 100755 (executable)
index 0000000..bd9d6b9
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,84 @@
+2012-03-05  Tracy Graydon <tracy.graydon@intel.com>
+
+  * VERSION, configurations.yaml: Add copy-kernel option for IVI images
+
+2012-03-01  Tracy Graydon <tracy.graydon@intel.com>
+
+  * ChangeLog: Amend to trick gerrit
+
+  * ChangeLog: changelog update
+
+  * VERSION, ivi/ivi-main-min-auto.yaml, ivi/ivi-main-min-pc.yaml,
+  ivi/ivi-main-wayland-auto.yaml, ivi/ivi-main-wayland-pc.yaml,
+  ivi/ivi-main-x-auto.yaml, ivi/ivi-main-x-pc.yaml,
+  packaging/image-configurations.spec: IVI additions to adjust for
+  package-groups changes
+
+  * ChangeLog: Add IVI boot options
+
+  * ChangeLog: Changelog update
+
+  * VERSION: Version bump to 0.13
+
+  * configurations.yaml: Add bootloader options for IVI
+
+2012-02-29  Tracy Graydon <tracy.graydon@intel.com>
+
+  * ChangeLog: Compress IVI images
+
+  * ChangeLog: Changelog update
+
+  * VERSION: Version bump 0.12
+
+  * packaging/image-configurations.spec: spec
+
+  * configurations.yaml: Compress IVI images
+
+2012-02-28  Tracy Graydon <tracy.graydon@intel.com>
+
+  * VERSION, packaging/image-configurations.spec: omg
+
+  * ChangeLog: Amend to trick gerrit
+
+  * ChangeLog: Changelog
+
+  * VERSION, packaging/image-configurations.spec: Version, spec
+
+  * ChangeLog: Changelog update
+
+  * ChangeLog: Changelog update
+
+  * VERSION: Version bump
+
+  * ivi/ivi-main-wayland-auto.yaml, ivi/ivi-main-x-auto.yaml,
+  packaging/image-configurations.spec: ARRRRGGGHHHHHH
+
+  * ChangeLog: ChangeLog update
+
+  * VERSION: change ver to 0.8
+
+  * VERSION: Bump ver to 8
+
+  * ivi/ivi-main-wayland-auto.yaml, ivi/ivi-main-x-auto.yaml, repos.yaml:
+  Couple more IVI changes and fix repos.yaml non-oss URLwq
+
+  * ChangeLog: Changelog update
+
+  * ChangeLog: Changelog update
+
+  * VERSION, packaging/image-configurations.spec: IVI fixing
+
+  * ivi/ivi-main-wayland-auto.yaml, ivi/ivi-main-wayland-pc.yaml,
+  ivi/ivi-main-x-auto.yaml, ivi/ivi-main-x-pc.yaml: Drop IVI Apps until
+  hfdialer is fixed
+
+2012-02-27  Tracy Graydon <tracy.graydon@intel.com>
+
+  * ChangeLog: ChangeLog
+
+  * ChangeLog: ChangeLog
+
+  * ChangeLog, Changelog: Fix ChangeLog name
+
+  * Makefile, VERSION, configurations.yaml,
+  packaging/image-configurations.spec: Change IVI to use IVI Base pattern
diff --git a/Makefile b/Makefile
new file mode 100755 (executable)
index 0000000..9c8caf7
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,46 @@
+VERSION = $(shell cat VERSION)
+NAME=image-configurations
+TAGVER = $(shell cat VERSION | sed -e "s/\([0-9\.]*\).*/\1/")
+
+ifeq ($(VERSION), $(TAGVER))
+       TAG = $(TAGVER)
+else
+       TAG = "HEAD"
+endif
+
+all: 
+
+tag:
+       git tag -a $(VERSION) -m " $(VERSION)"
+       git push --tags origin master
+
+dist-bz2:
+       git archive --format=tar --prefix=$(NAME)-$(TAGVER)/ $(TAG) | \
+               bzip2  > $(NAME)-$(TAGVER).tar.bz2
+
+dist-gz:
+       git archive --format=tar --prefix=$(NAME)-$(TAGVER)/ $(TAG) | \
+               gzip  > $(NAME)-$(TAGVER).tar.gz
+
+changelog:
+       python ./scripts/gitlog2changelog.py
+
+repackage: dist
+       osc branch -c Tizen:Base $(NAME)
+       rm home\:*\:branches\:Tizen:Base/$(NAME)/*tar.bz2
+       cp $(NAME)-$(VERSION).tar.bz2 home\:*\:branches\:Tizen:Base/$(NAME)
+
+dist: dist-bz2
+
+install: all install-data
+
+up:
+       @python scripts/gitlog2changelog.py
+       @echo 'Current versions:'
+       @git tag -l
+       @echo 'Please specify the new version:'
+       @read NEWVER; echo $$NEWVER > VERSION; \
+       git commit -a -m "bump version to $$NEWVER"; \
+       git tag -m $$NEWVER $$NEWVER
+
+clean:
diff --git a/README b/README
new file mode 100755 (executable)
index 0000000..41cd459
--- /dev/null
+++ b/README
@@ -0,0 +1,29 @@
+Any global changes to configurations need to be done in the 
+configurations.yaml file. Local changes need to be done in the individual yaml
+files which are organised per vertical.
+
+Do not make any changes directly to the ks files. If it gets complicated and a
+certain scenario can't be done using kickstarter, please report a bug.
+
+Updates to the git repositories have no effect unless they are packaged and
+submitted to the build system.
+
+- Edit yaml files and make the desired changes
+- Verfiy integrity of the changes by running kickstarter as follows:
+
+# kickstarter -c configurations.yaml -r repos.yaml -i index.xml
+
+
+To update the package:
+- change the yaml files
+- Verify your changes
+- Bump the version in the VERSION file
+- commit and push
+- Do not change the ChangeLog file, this is generated using a script
+  run 'python scripts/gitlog2changelog.py'
+- commit and push
+- run 'make tag'
+- run 'make dist'
+- Submit the newly generated tar
+
+
diff --git a/README.kickstarter b/README.kickstarter
new file mode 100755 (executable)
index 0000000..ef9a2d2
--- /dev/null
@@ -0,0 +1,58 @@
+This configurations.yaml file has a generic definition of configurations. 
+The Configurations inherit from platforms first then from the DEFAULT section.
+The image configurations override all other settings 
+(in DEFAULT and platform sections).
+
+Basically all common options should go to the DEFAULT section. If an options is
+related to a specific platform, then that option should be added to the platform
+section. Try to keep platforms clean and very generic, if needed, create a new
+platform section and use it when many options for a new platfrom are common.
+
+Example
+
+
+# description of the configuration file
+Name: MeeGo Netbook/Nettop  
+# When should this image be generated:
+# *: always
+# 0: Monday
+# 1: Tuesday
+# ...
+# If no schedule keyword is present, then image will not be created
+
+Schedule: "*"
+
+# if this image is active
+Active: True
+
+# Inherit from platform
+Platform: NETBOOK
+
+# MIC2 options to be used when creating this image
+Mic2Options: "-f livecd"
+
+# Desktop type
+Desktop: None 
+
+# Timezone
+Timezone: America/New_York
+
+# The name of the configuration file
+FileName: netbook-ia32
+
+# package groups
+Groups:
+    - MeeGo Netbook Desktop
+    - MeeGo Core
+    - Printing
+    - Games
+
+# Additional packages that are not part of any group
+ExtraPackages:
+    - chromium
+    - adobe-release
+    - flash-plugin
+
+# Repos to use in addition to default repos, those are define in the repos.yaml file
+Repos:
+    - adobe
diff --git a/VERSION b/VERSION
new file mode 100755 (executable)
index 0000000..d00491f
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+1
diff --git a/configurations.yaml b/configurations.yaml
new file mode 100755 (executable)
index 0000000..4b15572
--- /dev/null
@@ -0,0 +1,50 @@
+ExternalConfigs:
+  - lb
+  - handset
+
+Default:
+    Baseline: tizen-0.0
+    FileSystem: ext3
+    Active: True
+    Language: en_US.UTF-8
+    Keyboard: us
+    SaveRepos:  True
+    Timezone: America/Los_Angeles
+    RootPass: tizen
+    DefaultUser: tizen
+    DefaultUserPass: tizen
+    PartSize: 1900
+    BootloaderOptions: ""
+
+LB:
+    Part: tizen-arm
+    Bootloader: True
+    BootloaderAppend: "rootdelay=5"
+    BootloaderTimeout: 0
+    SaveRepos:  True
+    Desktop: None
+    DefaultUser: root
+    DefaultUserPass: ""
+    Architecture: armv7l
+    Mic2Options: -f loop --taring-to=@NAME@-rs.tar --compress-disk-image=gz
+    Repos:
+        - Tizen-1.0-main
+        - Tizen-1.0-base
+Handset:
+    PartSize: 1024
+    Bootloader: True
+    BootloaderAppend: "rootdelay=5"
+    BootloaderTimeout: 0
+    SaveRepos:  True
+    Architecture: ia32
+    Desktop: None
+    Groups:
+        - Base System
+        - Base X Server
+        - Tizen UI
+        - Tizen APIs
+    Repos:
+        - Tizen-1.0-base
+        - Tizen-1.0-main
+#- Tizen-1.0-base-debug
+#- Tizen-1.0-main-debug
diff --git a/custom/part/custom b/custom/part/custom
new file mode 100755 (executable)
index 0000000..d6c8b6b
--- /dev/null
@@ -0,0 +1,2 @@
+part / --size 1300 --ondisk sda --grow --maxsize=1450 --fstype=ext3
+#part /home --size 1000  --grow --maxsize=1450 --ondisk sdb --fstype=ext3
diff --git a/custom/part/tizen-arm b/custom/part/tizen-arm
new file mode 100755 (executable)
index 0000000..3b71127
--- /dev/null
@@ -0,0 +1,13 @@
+# ROOT fs partition
+#part / --size=800 --ondisk mmcblk0p --fstype=ext4 --label=platform
+# Use larger partition for creation, and will be shrinked at last, workaround of libzypp bug
+#part / --size=2000 --ondisk mmcblk0p --fstype=ext4 --label=platform
+# DATA partition
+#part /opt/ --size=1800 --ondisk mmcblk0p --fstype=ext4 --label=data
+
+# ROOT fs partition
+part / --size=1700 --ondisk mmcblk0p --fstype=ext4 --label=platform
+# DATA partition
+part /opt/ --size=3000 --ondisk mmcblk0p --fstype=ext4 --label=data
+# UMS partition
+part /opt/media/ --size=300 --ondisk mmcblk0p --fstype=vfat --label=ums
diff --git a/custom/part/tizen-handset b/custom/part/tizen-handset
new file mode 100644 (file)
index 0000000..12df959
--- /dev/null
@@ -0,0 +1,3 @@
+part /boot --size 32 --ondisk sdb --fstype=ext2
+part /opt --size 300 --ondisk sdb --fstype=ext3
+part / --size 1024 --ondisk sdb --fstype=ext3
diff --git a/custom/part/tizen-ivi b/custom/part/tizen-ivi
new file mode 100755 (executable)
index 0000000..dc08af1
--- /dev/null
@@ -0,0 +1,3 @@
+part /boot --size 32 --ondisk sdb --fstype=ext2
+part /opt --size 300 --ondisk sdb --fstype=ext4
+part / --size 1024 --ondisk sdb --fstype=ext4
diff --git a/custom/scripts/arch-armv7hl.post b/custom/scripts/arch-armv7hl.post
new file mode 100755 (executable)
index 0000000..955f819
--- /dev/null
@@ -0,0 +1,6 @@
+# Without this line the rpm don't get the architecture right.
+echo -n 'armv7hl-tizen-linux' > /etc/rpm/platform
+# Also libzypp has problems in autodetecting the architecture so we force tha as well.
+# https://bugs.meego.com/show_bug.cgi?id=11484
+echo 'arch = armv7hl' >> /etc/zypp/zypp.conf
diff --git a/custom/scripts/buildname.nochroot b/custom/scripts/buildname.nochroot
new file mode 100755 (executable)
index 0000000..544a400
--- /dev/null
@@ -0,0 +1,3 @@
+if [ -n "$IMG_NAME" ]; then
+    echo "BUILD: $IMG_NAME" >> $INSTALL_ROOT/etc/tizen-release
+fi
diff --git a/custom/scripts/cleanup.post b/custom/scripts/cleanup.post
new file mode 100755 (executable)
index 0000000..d7c0ecd
--- /dev/null
@@ -0,0 +1,2 @@
+# save a little bit of space at least...
+rm -f /boot/initrd*
diff --git a/custom/scripts/cogl.post b/custom/scripts/cogl.post
new file mode 100755 (executable)
index 0000000..107bd06
--- /dev/null
@@ -0,0 +1,7 @@
+# Create /etc/cogl.conf file to load proper GL libraries on Cedartrail
+mkdir /etc/xdg/cogl
+echo "[global]" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_DRIVER=gles2" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_RENDERER=EGL" >>/etc/xdg/cogl/cogl.conf
+echo "COGL_DEBUG=disable-atlas" >>/etc/xdg/cogl/cogl.conf
+
diff --git a/custom/scripts/inittab.post b/custom/scripts/inittab.post
new file mode 100755 (executable)
index 0000000..73bb7e5
--- /dev/null
@@ -0,0 +1,3 @@
+sed -i s/ENGINE=gl/ENGINE=fb/ /etc/profile.d/menu-screen.sh
+
+echo "s1:12345:respawn:/sbin/agetty -L 115200 ttyMFD3 vt100" >> /etc/inittab
diff --git a/custom/scripts/ivi-x11.post b/custom/scripts/ivi-x11.post
new file mode 100755 (executable)
index 0000000..63d1d3d
--- /dev/null
@@ -0,0 +1,4 @@
+if [[ (! -d /opt/etc/X11/xorg.conf.d) && (! -d /etc/X11/xorg.conf.d) ]]; then 
+       mkdir -p /opt/etc/X11/xorg.conf.d; 
+       ln -s /opt/etc/X11/xorg.conf.d /etc/X11; 
+fi
diff --git a/custom/scripts/prelink.post b/custom/scripts/prelink.post
new file mode 100755 (executable)
index 0000000..527548c
--- /dev/null
@@ -0,0 +1,4 @@
+# Prelink can reduce boot time
+if [ -x /usr/sbin/prelink ]; then
+    /usr/sbin/prelink -aRqm
+fi
diff --git a/custom/scripts/rpm.post b/custom/scripts/rpm.post
new file mode 100755 (executable)
index 0000000..62707bd
--- /dev/null
@@ -0,0 +1,2 @@
+rm -f /var/lib/rpm/__db*
+rpm --rebuilddb
diff --git a/custom/scripts/sound.post b/custom/scripts/sound.post
new file mode 100755 (executable)
index 0000000..07f847c
--- /dev/null
@@ -0,0 +1,8 @@
+echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
+
+echo 0 > /usr/share/check_dac
+
+rm -f /etc/rc.d/rc4.d/S01soundserver
+rm -f /etc/rc.d/rc3.d/S01soundserver
+
+mkdir -p /opt/etc/sound
diff --git a/custom/scripts/symlink-root.post b/custom/scripts/symlink-root.post
new file mode 100755 (executable)
index 0000000..60fe300
--- /dev/null
@@ -0,0 +1,2 @@
+mkdir /opt/home/root
+ln -sf /opt/home/root /root
diff --git a/custom/scripts/tizen-lb.post b/custom/scripts/tizen-lb.post
new file mode 100755 (executable)
index 0000000..8dc5009
--- /dev/null
@@ -0,0 +1,57 @@
+echo 'kickstart post script start'
+if [ -d /etc/init.d ]; then
+    cp /etc/init.d/* /etc/rc.d/init.d/ -rdf
+fi
+rm -rf /etc/init.d*
+ln -sf /etc/rc.d/init.d /etc/init.d
+
+# Without this line the rpm don't get the architecture right.
+echo -n 'armv7l-meego-linux' > /etc/rpm/platform
+
+ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key -N ""
+ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
+ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
+
+ail_initdb
+/opt/apps/com.samsung.menu-screen/bin/menuscreen_initdb
+
+cat > /usr/bin/press << EOF
+#!/bin/sh
+
+JUNK="SLP"
+
+[ "\$1" ] && TIMEOUT="\$1" || TIMEOUT="1"
+
+echo "Press return key to stop scripts"
+read -t \$TIMEOUT JUNK
+exit \$?
+EOF
+chmod +x /usr/bin/press
+
+ln -s /opt/etc/X11/xkb /usr/share/X11
+
+echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
+
+rm -rf /usr/include
+rm -rf /usr/share/man
+rm -rf /usr/share/doc
+
+MAJOR="2"
+MINOR="0"
+cat >/etc/info.ini <<EOF
+[Version]
+Major=$MAJOR;
+Minor=$MINOR;
+Build=TIZEN_`date +%Y%m%d`_1;
+Order=;
+[Build]
+Date=`date +%Y.%m.%d`;
+Time=`date +%H:%M:%S`;
+EOF
+
+ln -sf /etc/info.ini /opt/etc/info.ini
+ln -sf /etc/info.ini /usr/etc/info.ini
+
+ldconfig
+rpm --rebuilddb
+echo 'kickstart post script end'
diff --git a/custom/scripts/udev.post b/custom/scripts/udev.post
new file mode 100755 (executable)
index 0000000..9ac3936
--- /dev/null
@@ -0,0 +1 @@
+echo "UDEV_PERSISTENT_STORAGE=no" >> /etc/sysconfig/udev
diff --git a/custom/scripts/update.post b/custom/scripts/update.post
new file mode 100755 (executable)
index 0000000..f8cb35d
--- /dev/null
@@ -0,0 +1 @@
+cat /etc/pki/tls/certs/download.saobs.jf.intel.com >> /etc/pki/tls/certs/ca-bundle.crt
diff --git a/custom/scripts/usb-networking.post b/custom/scripts/usb-networking.post
new file mode 100755 (executable)
index 0000000..5f5f4b1
--- /dev/null
@@ -0,0 +1,8 @@
+# enable USB networking with IP address 192.168.1.1 by default
+cat >/etc/rc.d/rc3.d/S99usbnet.sh <<END
+#!/bin/sh
+echo rndis > /sys/class/android_usb/android0/functions
+echo 1 > /sys/class/android_usb/android0/enable
+ifconfig rndis0 192.168.100.1
+END
+chmod 777 /etc/rc.d/rc3.d/S99usbnet.sh
diff --git a/custom/scripts/users.post b/custom/scripts/users.post
new file mode 100755 (executable)
index 0000000..c5aeff3
--- /dev/null
@@ -0,0 +1,6 @@
+mkdir -p /opt/home/app
+chown app: /opt/home/app
+mkdir -p /home
+mkdir -p /opt/home/root
+ln -s /opt/home/app /home/app
+ln -sf /opt/home/root /root
diff --git a/custom/scripts/uxlaunch-symlink-ivi.post b/custom/scripts/uxlaunch-symlink-ivi.post
new file mode 100755 (executable)
index 0000000..1c9bd92
--- /dev/null
@@ -0,0 +1,2 @@
+# Set symlink pointing to .desktop file 
+ln -sf x-meego-ivi.desktop /usr/share/xsessions/default.desktop
diff --git a/handset/handset-pinetrail.yaml b/handset/handset-pinetrail.yaml
new file mode 100755 (executable)
index 0000000..b8d0724
--- /dev/null
@@ -0,0 +1,16 @@
+Name: Tizen Handset Pinetrail
+Schedule: "*"
+Active: True
+Platform: Handset
+FileName: handset-pinetrail
+Part: tizen-handset
+Mic2Options: -f raw --copy-kernel  --compress-disk-image=bz2
+PostScripts:
+    - users
+    - rpm
+Repos:
+    - Tizen-1.0-base
+    - Tizen-1.0-main
+
+#Groups:
+#    - Pinetrail Support
diff --git a/lb/lb.yaml b/lb/lb.yaml
new file mode 100755 (executable)
index 0000000..89e3076
--- /dev/null
@@ -0,0 +1,53 @@
+Name: Tizen LunchBox
+Schedule: "*"
+Active: True
+Platform: LB
+FileName: lb
+
+Groups:
+    - tizen-c210
+    - tizen-bootstrap
+
+RemovePackages:
+    - glib2-static
+    - gettext-tools
+    - eglibc-utils
+    - imake
+    - giflib-utils
+    - brcm-gps-daemon
+    - insserv
+
+PrePackages:
+    - libgcc
+    - eglibc
+    - sqlite
+    - zlib
+    - libpython
+    - libdlog
+    - libcap
+    - libattr
+    - default-files-slp
+    - busybox
+    - python-base
+    - libacl
+    - glib2
+    - tzdata-slp
+    - vconf
+    - libxml2
+    - heynoti
+    - openssl
+    - shared-mime-info
+    - libudev
+    - security-server
+    - dbus-libs
+    - cert-svc
+    - libsecurity-server-client
+#    - libprivilege-control
+#    - libprivilege-control-conf
+
+PostScripts:
+    - tizen-lb
+
+Repos:
+    - Tizen-1.0-main
+    - Tizen-1.0-base
diff --git a/packaging/image-configurations.changes b/packaging/image-configurations.changes
new file mode 100644 (file)
index 0000000..f004cf8
--- /dev/null
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Fri May 18 13:19:01 UTC 2012 - jfding@gmail.com
+
+- new change log
+
diff --git a/packaging/image-configurations.spec b/packaging/image-configurations.spec
new file mode 100644 (file)
index 0000000..85e8a82
--- /dev/null
@@ -0,0 +1,32 @@
+%define baseline tizen-0.0
+Summary:       Create kickstart files for Tizen images
+Name:          image-configurations
+Version:       6
+Release:       1
+License:       GPLv2
+Group:         System/Base
+URL:           http://www.tizen.org
+Source:                image-configurations-%{version}.tar.bz2
+
+BuildArch:     noarch
+BuildRequires:  kickstarter >= 0.8
+
+%description
+Create Configuration files to build Tizen images 
+
+%prep
+%setup -q
+
+%build
+kickstarter -c configurations.yaml -r repos.yaml -i image-configs.xml
+
+%install
+
+mkdir -p %{buildroot}/usr/share/image-configurations
+cp %{baseline}/*.ks %{buildroot}/usr/share/image-configurations
+cp image-configs.xml %{buildroot}/usr/share/image-configurations
+
+%files
+%dir %_datadir/image-configurations
+%_datadir/image-configurations/*.ks
+%_datadir/image-configurations/image-configs.xml
diff --git a/repos.yaml b/repos.yaml
new file mode 100755 (executable)
index 0000000..1695dfb
--- /dev/null
@@ -0,0 +1,11 @@
+Repositories:
+    -   Name: Tizen-1.0-base
+        Url:  https://download.tizen.org/snapshots/@BUILD_ID@/repos/tizen-base/@ARCH@/packages/
+        Options: --ssl_verify=no
+    -   Name: Tizen-1.0-main
+        Url:  https://download.tizen.org/snapshots/@BUILD_ID@/repos/tizen-main/@ARCH@/packages/
+        Options: --save  --ssl_verify=no
+
+#    -   Name: non-oss
+#        Url:  https://download.tizen.org/snapshots/@BUILD_ID@/repos/non-oss/@ARCH@/packages/
+#        Options: --ssl_verify=no
diff --git a/scripts/create-daily.sh b/scripts/create-daily.sh
new file mode 100755 (executable)
index 0000000..11e309a
--- /dev/null
@@ -0,0 +1,104 @@
+#!/bin/sh
+#
+#A simple script to batch generate all release-able images for MeeGo. 
+#
+#This script will check out all MeeGo Image Kickstart files and execute 
+#image generation based on repository type selected for all release-able images. 
+#
+# Written for MeeGo by Chris Ferron <chris.e.ferron@linux.intel.com> based on an initial
+# effort buy Anas Nashif.
+
+
+ID=$1
+REPOTYPE=$2
+RELEASE=$3
+
+# Preparation Section
+#export http_proxy=http://192.168.50.99:3128/
+
+rm -f *.log
+
+if [ "$RELEASE" = "MeeGo1.1" ]; then
+   git checkout -f MeeGo1.1 
+elif [ "$RELEASE" = "Trunk" ]; then 
+   git checkout -f master
+else
+   git checkout -f master
+   echo "No release type given, default to Trunk. Current support is for Trunk and MeeGo1.1"
+fi
+
+git pull
+
+
+if [ "$REPOTYPE" = "1" ]; then
+  str="s/\@BUILD_ID\@/$ID/"
+elif [ "$REPOTYPE" = "2" ]; then 
+  str="s/\@BUILD_ID\@/preview/"
+elif [ "$REPOTYPE" = "3" ]; then 
+  str="s/\@BUILD_ID\@/daily/" 
+elif [ "$REPOTYPE" = "4" ]; then 
+  # Replace .ks to use the trunk-daily repos
+  echo "Creating trunk-daily image-configurations"
+  str="s/repo.meego.com\/MeeGo/download.meego.com\/trunk-daily/"
+  find -name \*.ks -exec perl  -pi -e $str '{}' \;
+  str="s/\@BUILD_ID\@/$ID/"
+elif [ "$REPOTYPE" = "5" ]; then 
+  # Replace .ks to use the test-daily repos
+  echo "Creating testing-daily image-configurations"
+  str="s/repo.meego.com\/MeeGo/download.meego.com\/testing-daily/"
+  find -name \*.ks -exec perl  -pi -e $str '{}' \;
+  str="s/\@BUILD_ID\@/$ID/"
+else
+ echo " Repository Type needs to be 1 for Weekly or 4 for trunk-daily or 5 for testing-daily" 
+ exit 1 
+fi
+
+find -name \*.ks -exec perl  -pi -e $str '{}' \;
+
+# mk_image expects at minimal, one arg- the first arg must be the path to the ks file.
+# all further args are passed through to 'mic create'
+# finally, a --release argument is automatically prepended.
+mk_image() {
+   local ks="$1";
+   shift
+   local name="meego-$(basename "$ks")"
+   name="${name%.ks}"
+   local dirname="$(dirname "$ks")"
+   rm -rf "${ID}/${dirname}/images/${name}"
+   mic create -c "$ks" --release="${ID}" "$@" 2>&1 | tee "${name}-${ID}.log"
+   if [ ! -d "${ID}/${dirname}/images/${name}" ]; then
+      echo "error: no ${ID}/${dirname}/images/${name} directory created"
+      return 1
+   fi
+   md5sum "${name}-${ID}.log" >> "${ID}/${dirname}/images/${name}/MANIFEST"
+   cp "${name}-${ID}.log" "$ID/${dirname}/images/${name}/"
+}
+
+
+#Core Image Section
+#mk_image core/core-armv7l-n900.ks -f raw --save-kernel --arch armv7
+mk_image core/core-armv7l-madde-sysroot.ks --format=fs --compress-disk-image=none --package=tar.bz2 --arch=armv7l --save-kernel
+mk_image core/core-ia32-madde-sysroot.ks --format=fs --compress-disk-image=none --package=tar.bz2
+
+#Netbook Image Section
+mk_image netbook/netbook-ia32.ks -f livecd
+mk_image netbook/netbook-ia32-qemu.ks --format=raw --compress-disk-image=none --package=tar.bz2
+
+#IVI Image Section
+mk_image ivi/ivi-ia32.ks -f livecd
+
+#Handset Image Section
+#mk_image handset/handset-ia32-aava-mtf.ks -f nand
+mk_image handset/handset-ia32-mtf.ks -f nand
+#mk_image handset/handset-ia32-aava-mtf-devel.ks -f nand
+mk_image handset/handset-ia32-mtf-devel.ks -f nand
+mk_image handset/handset-armv7l-n900.ks -f raw --save-kernel --arch=armv7l
+mk_image handset/handset-armv7l-n900-devel.ks -f raw --save-kernel --arch=armv7l
+mk_image handset/handset-armv7hl-n900.ks -f raw --save-kernel --arch=armv7hl
+mk_image handset/handset-ia32-pinetrail-mtf.ks -f livecd
+mk_image handset/handset-armv7l-qemu.ks --format=raw --compress-disk-image=none --package=tar.bz2 --arch=armv7l --save-kernel
+mk_image handset/handset-ia32-qemu.ks --format=raw --compress-disk-image=none --package=tar.bz2
+mk_image handset/handset-armv7l-madde-sysroot.ks --format=fs --compress-disk-image=none --package=tar.bz2 --arch=armv7l --save-kernel
+mk_image handset/handset-ia32-madde-sysroot.ks --format=fs --compress-disk-image=none --package=tar.bz2
+
+exit 0
diff --git a/scripts/create.sh b/scripts/create.sh
new file mode 100755 (executable)
index 0000000..afba827
--- /dev/null
@@ -0,0 +1,91 @@
+#!/bin/sh
+#
+#A simple script to batch generate all release-able images for MeeGo. 
+#
+#This script will check out all MeeGo Image Kickstart files and execute 
+#image generation based on repository type selected for all release-able images. 
+#
+# Written for MeeGo by Chris Ferron <chris.e.ferron@linux.intel.com> based on an initial
+# effort buy Anas Nashif.
+
+
+ID=$1
+REPOTYPE=$2
+RELEASE=$3
+
+# Preparation Section
+#export http_proxy= http://XXX.XXX.XXX.XXX:XXXX/
+
+rm -f *.log
+
+if [ "$RELEASE" = "MeeGo1.1" ]; then
+   git checkout -f MeeGo1.1 
+elif [ "$RELEASE" = "Trunk" ]; then 
+   git checkout -f master
+else
+   git checkout -f master
+   echo "No release type given, default to Trunk. Current support is for Trunk and MeeGo1.1"
+fi
+
+git pull
+
+if [ "$REPOTYPE" = "1" ]; then
+  str="s/\@BUILD_ID\@/$ID/"
+elif [ "$REPOTYPE" = "2" ]; then 
+  str="s/\@BUILD_ID\@/preview/"
+elif [ "$REPOTYPE" = "3" ]; then 
+  str="s/\@BUILD_ID\@/daily/" 
+else
+ echo " Repository Type needs to be 1 for Weekly or 2 for Preview or 3 for Daily" 
+ exit 1 
+fi
+
+find -name \*.ks -exec perl  -pi -e $str '{}' \;
+
+# mk_image expects at minimal, one arg- the first arg must be the path to the ks file.
+# all further args are passed through to 'mic create'
+# finally, a --release argument is automatically prepended.
+mk_image() {
+   local ks="$1";
+   shift
+   local name="meego-$(basename "$ks")"
+   name="${name%.ks}"
+   local dirname="$(dirname "$ks")"
+   rm -rf "${ID}/${dirname}/images/${name}"
+   mic create -c "$ks" --release="${ID}" "$@" 2>&1 | tee "${name}-${ID}.log"
+   if [ ! -d "${ID}/${dirname}/images/${name}" ]; then
+      echo "error: no ${ID}/${dirname}/images/${name} directory created"
+      return 1
+   fi
+   md5sum "${name}-${ID}.log" >> "${ID}/${dirname}/images/${name}/MANIFEST"
+   cp "${name}-${ID}.log" "$ID/${dirname}/images/${name}/"
+}
+
+
+#Core Image Section
+mk_image core/core-armv7l-n900.ks -f raw --save-kernel --arch armv7
+mk_image core/core-armv7l-madde-sysroot.ks --format=fs --compress-disk-image=none --package=tar.bz2 --arch=armv7l --save-kernel
+mk_image core/core-ia32-madde-sysroot.ks --format=fs --compress-disk-image=none --package=tar.bz2
+
+#Netbook Image Section
+mk_image netbook/netbook-ia32.ks -f livecd
+mk_image netbook/netbook-ia32-qemu.ks --format=raw --compress-disk-image=none --package=tar.bz2
+
+#IVI Image Section
+mk_image ivi/ivi-ia32.ks -f livecd
+
+#Handset Image Section
+#mk_image handset/handset-ia32-aava-mtf.ks -f nand
+mk_image handset/handset-ia32-mtf.ks -f nand
+#mk_image handset/handset-ia32-aava-mtf-devel.ks -f nand
+mk_image handset/handset-ia32-mtf-devel.ks -f nand
+mk_image handset/handset-armv7l-n900.ks -f raw --save-kernel --arch=armv7l
+mk_image handset/handset-armv7l-n900-devel.ks -f raw --save-kernel --arch=armv7l
+mk_image handset/handset-armv7hl-n900.ks -f raw --save-kernel --arch=armv7hl
+mk_image handset/handset-ia32-pinetrail-mtf.ks -f livecd
+mk_image handset/handset-armv7l-qemu.ks --format=raw --compress-disk-image=none --package=tar.bz2 --arch=armv7l --save-kernel
+mk_image handset/handset-ia32-qemu.ks --format=raw --compress-disk-image=none --package=tar.bz2
+mk_image handset/handset-armv7l-madde-sysroot.ks --format=fs --compress-disk-image=none --package=tar.bz2 --arch=armv7l --save-kernel
+mk_image handset/handset-ia32-madde-sysroot.ks --format=fs --compress-disk-image=none --package=tar.bz2
+
+exit 0
diff --git a/scripts/gitlog2changelog.py b/scripts/gitlog2changelog.py
new file mode 100755 (executable)
index 0000000..ce69b68
--- /dev/null
@@ -0,0 +1,124 @@
+#!/usr/bin/python
+# Copyright 2008 Marcus D. Hanwell <marcus@cryos.org>
+# Distributed under the terms of the GNU General Public License v2 or later
+
+import string, re, os
+
+# Execute git log with the desired command line options.
+fin = os.popen('git log --summary --stat --no-merges --date=short', 'r')
+# Create a ChangeLog file in the current directory.
+fout = open('ChangeLog', 'w')
+
+# Set up the loop variables in order to locate the blocks we want
+authorFound = False
+dateFound = False
+messageFound = False
+filesFound = False
+message = ""
+messageNL = False
+files = ""
+prevAuthorLine = ""
+
+# The main part of the loop
+for line in fin:
+    # The commit line marks the start of a new commit object.
+    if string.find(line, 'commit') >= 0:
+        # Start all over again...
+        authorFound = False
+        dateFound = False
+        messageFound = False
+        messageNL = False
+        message = ""
+        filesFound = False
+        files = ""
+        continue
+    # Match the author line and extract the part we want
+    elif re.match('Author:', line) >=0:
+        authorList = re.split(': ', line, 1)
+        author = authorList[1]
+        author = author[0:len(author)-1]
+        authorFound = True
+    # Match the date line
+    elif re.match('Date:', line) >= 0:
+        dateList = re.split(':   ', line, 1)
+        date = dateList[1]
+        date = date[0:len(date)-1]
+        dateFound = True
+    # The svn-id lines are ignored
+    elif re.match('    git-svn-id:', line) >= 0:
+        continue
+    # The sign off line is ignored too
+    elif re.search('Signed-off-by', line) >= 0:
+        continue
+    # Extract the actual commit message for this commit
+    elif authorFound & dateFound & messageFound == False:
+        # Find the commit message if we can
+        if len(line) == 1:
+            if messageNL:
+                messageFound = True
+            else:
+                messageNL = True
+        elif len(line) == 4:
+            messageFound = True
+        else:
+            if len(message) == 0:
+                message = message + line.strip()
+            else:
+                message = message + " " + line.strip()
+    # If this line is hit all of the files have been stored for this commit
+    elif re.search('files changed', line) >= 0:
+        filesFound = True
+        continue
+    # Collect the files for this commit. FIXME: Still need to add +/- to files
+    elif authorFound & dateFound & messageFound:
+        fileList = re.split(' \| ', line, 2)
+        if len(fileList) > 1:
+            if len(files) > 0:
+                files = files + ", " + fileList[0].strip()
+            else:
+                files = fileList[0].strip()
+    # All of the parts of the commit have been found - write out the entry
+    if authorFound & dateFound & messageFound & filesFound:
+        # First the author line, only outputted if it is the first for that
+        # author on this day
+        authorLine = date + "  " + author
+        if len(prevAuthorLine) == 0:
+            fout.write(authorLine + "\n")
+        elif authorLine == prevAuthorLine:
+            pass
+        else:
+            fout.write("\n" + authorLine + "\n")
+
+        # Assemble the actual commit message line(s) and limit the line length
+        # to 80 characters.
+        commitLine = "* " + files + ": " + message
+        i = 0
+        commit = ""
+        while i < len(commitLine):
+            if len(commitLine) < i + 78:
+                commit = commit + "\n  " + commitLine[i:len(commitLine)]
+                break
+            index = commitLine.rfind(' ', i, i+78)
+            if index > i:
+                commit = commit + "\n  " + commitLine[i:index]
+                i = index+1
+            else:
+                commit = commit + "\n  " + commitLine[i:78]
+                i = i+79
+
+        # Write out the commit line
+        fout.write(commit + "\n")
+
+        #Now reset all the variables ready for a new commit block.
+        authorFound = False
+        dateFound = False
+        messageFound = False
+        messageNL = False
+        message = ""
+        filesFound = False
+        files = ""
+        prevAuthorLine = authorLine
+
+# Close the input and output lines now that we are finished.
+fin.close()
+fout.close()
diff --git a/scripts/merge-request.sh b/scripts/merge-request.sh
new file mode 100755 (executable)
index 0000000..222d883
--- /dev/null
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+if [ -z "$1" ]; then
+       echo "Merge request number needed"
+       exit 1
+fi
+
+# Check out a new branch for integration
+git checkout -b merge-requests/$1
+
+# Fetch the merge request into this branch
+git pull git://gitorious.org:meego-os-base/image-configurations.git  refs/merge-requests/$1
+
+# Show the commits, assess they are okay
+git log --pretty=oneline --abbrev-commit master..merge-requests/$1
+
+# To apply the changes to your branch:
+git checkout master
+git merge merge-requests/$1
+git push origin master