Commit 9b4cf0b4 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add freedesktop commit targets

parent f8afb7f4
srcdir = $(CURDIR)
builddir = $(CURDIR)
VERSION=3.16
FREEDESKTOP_VERSION=0.1
GNOME_VERSION=3.16
ARCH=x86_64
IMAGES=yocto-build/$(ARCH)/images
SPECS=packages/SPECS
......@@ -64,10 +65,17 @@ rpm-dependencies.P: $(ALL_SPECS) makedeps.sh $(IMAGES)/gnomeos-contents-sdk-$(AR
gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz: $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
./build.sh smart install -y $(NOARCH)/gnome-sdk-0.1-1.sdk.noarch.rpm
rm -rf gnome-sdk.tar.gz
rm -rf gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
tar --transform 's,^root/usr,files,S' -czf gnome-sdk.tar.gz root/usr --owner=root
tar --transform 's,^var,files,S' -czf gnome-sdk-rpmdb.tar.gz var/lib/rpm --owner=root
freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz: $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
./build.sh smart install -y $(NOARCH)/freedesktop-sdk-0.1-1.sdk.noarch.rpm
rm -rf freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
tar --transform 's,^root/usr,files,S' -czf freedesktop-sdk.tar.gz root/usr --owner=root
tar --transform 's,^var,files,S' -czf freedesktop-sdk-rpmdb.tar.gz var/lib/rpm --owner=root
freedesktop-platform-base: $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm
$(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm: $(SPECS)/freedesktop-platform-base.spec setup.sh build.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
......@@ -80,6 +88,18 @@ $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm: $(SPECS)/freedesktop-p
freedesktop-sdk-base: $(NOARCH)/freedesktop-sdk-base-0.1-1.sdk.noarch.rpm
freedesktop-platform-packages: $(NOARCH)/freedesktop-platform-0.1-1.sdk.noarch.rpm $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm setup.sh build.sh
./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
rm -f freedesktop-platform-packages
./build.sh ./list_packages.sh freedesktop-platform > freedesktop-platform-packages
freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz: freedesktop-platform-packages $(NOARCH)/freedesktop-platform-0.1-1.sdk.noarch.rpm setup.sh build.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
-echo building freedesktop-platform
./setup_root.sh $(IMAGES)/gnomeos-contents-platform-$(ARCH).tar.gz
./build.sh rpm -Uvh `cat freedesktop-platform-packages`
tar --transform 's,^root/usr,files,S' -czf freedesktop-platform.tar.gz root/usr --owner=root
tar --transform 's,^var,files,S' -czf freedesktop-platform-rpmdb.tar.gz var/lib/rpm --owner=root
gnome-platform-packages: $(NOARCH)/gnome-platform-0.1-1.sdk.noarch.rpm $(NOARCH)/freedesktop-platform-base-0.1-1.sdk.noarch.rpm setup.sh build.sh
./setup.sh $(IMAGES)/gnomeos-contents-sdk-$(ARCH).tar.gz
rm -f gnome-platform-packages
......@@ -95,23 +115,46 @@ gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz: gnome-platform-packages $(NOA
repository:
ostree init --mode=archive-z2 --repo=repository
commit-freedesktop-platform: repository freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz
./commit.sh repository freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz metadata.freedesktop-platform org.freedesktop.Platform $(ARCH) $(FREEDESKTOP_VERSION)
commit-freedesktop-sdk: repository freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
./commit.sh repository freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz metadata.freedesktop-sdk org.freedesktop.Sdk $(ARCH) $(FREEDESKTOP_VERSION)
commit-platform: repository gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz
./commit.sh repository gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(VERSION)
./commit.sh repository gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(GNOME_VERSION)
commit-sdk: repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
./commit.sh repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(VERSION)
./commit.sh repository gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(GNOME_VERSION)
commit: commit-sdk commit-platform
commit-gnome: commit-sdk commit-platform
echo done
commit-freedesktop: commit-freedesktop-sdk commit-freedesktop-platform
echo done
commit: commit-gnome commit-freedesktop
echo done
release-commit-freedesktop-platform: repository freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz
./commit.sh release/repo freedesktop-platform.tar.gz freedesktop-platform-rpmdb.tar.gz metadata.freedesktop-platform org.freedesktop.Platform $(ARCH) $(FREEDESKTOP_VERSION)
release-commit-freedesktop-sdk: repository freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz
./commit.sh release/repo freedesktop-sdk.tar.gz freedesktop-sdk-rpmdb.tar.gz metadata.freedesktop-sdk org.freedesktop.Sdk $(ARCH) $(FREEDESKTOP_VERSION)
release-commit-platform: release/repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz
./commit.sh release/repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(VERSION)
./commit.sh release/repo gnome-platform.tar.gz gnome-platform-rpmdb.tar.gz metadata.platform org.gnome.Platform $(ARCH) $(GNOME_VERSION)
release-commit-sdk: release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz
./commit.sh release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(VERSION)
./commit.sh release/repo gnome-sdk.tar.gz gnome-sdk-rpmdb.tar.gz metadata.sdk org.gnome.Sdk $(ARCH) $(GNOME_VERSION)
release-commit-gnome: release-commit-sdk release-commit-platform
echo done
release-commit-freedesktop: release-commit-freedesktop-sdk release-commit-freedesktop-platform
echo done
release-commit: release-commit-sdk release-commit-platform
release-commit: release-commit-gnome release-commit-freedesktop
echo done
-include rpm-dependencies.P
......@@ -21,17 +21,17 @@ for F in commit/files/share/locale/*; do
BASENAME=`basename $F`
LOCALE=`basename $F | sed s/[@_].*//`
mkdir -p commit-locales/$LOCALE/files/share
mkdir -p commit/files/share/gnome-sdk/locale/$LOCALE/share/$BASENAME
mkdir -p commit/files/share/runtime/locale/$LOCALE/share/$BASENAME
mv $F commit-locales/$LOCALE/files/share
ln -s ../gnome-sdk/locale/$LOCALE/share/$BASENAME $F
ln -s ../runtime/locale/$LOCALE/share/$BASENAME $F
done
for F in commit/files/lib/locale/*; do
BASENAME=`basename $F`
LOCALE=`basename $F | sed s/[@_].*//`
mkdir -p commit-locales/$LOCALE/files/lib
mkdir -p commit/files/share/gnome-sdk/locale/$LOCALE/lib/$BASENAME
mkdir -p commit/files/share/runtime/locale/$LOCALE/lib/$BASENAME
mv $F commit-locales/$LOCALE/files/lib
ln -s ../../share/gnome-sdk/locale/$LOCALE/lib/$BASENAME $F
ln -s ../../share/runtime/locale/$LOCALE/lib/$BASENAME $F
done
echo "commiting runtime/${NAME}/${ARCH}/${VERSION}"
......
[Runtime]
runtime=org.freedesktop.Platform/x86_64/0.1
sdk=org.freedesktop.Sdk/x86_64/0.1
[Extension org.freedesktop.Platform.GL]
directory=lib/GL
[Extension org.freedesktop.Platform.Timezones]
directory=share/zoneinfo
[Extension org.freedesktop.Platform.Locale]
directory=share/runtime/locale
subdirectories=true
[Runtime]
runtime=org.freedesktop.Platform/x86_64/0.1
sdk=org.freedesktop.Sdk/x86_64/0.1
[Extension org.freedesktop.Sdk.GL]
directory=lib/GL
[Extension org.freedesktop.Platform.Timezones]
directory=share/zoneinfo
[Extension org.freedesktop.Sdk.Locale]
directory=share/runtime/locale
subdirectories=true
......@@ -9,5 +9,5 @@ directory=lib/GL
directory=share/zoneinfo
[Extension org.gnome.Platform.Locale]
directory=share/gnome-sdk/locale
directory=share/runtime/locale
subdirectories=true
......@@ -9,5 +9,5 @@ directory=lib/GL
directory=share/zoneinfo
[Extension org.gnome.Sdk.Locale]
directory=share/gnome-sdk/locale
directory=share/runtime/locale
subdirectories=true
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment