aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Miao <eric.miao@linaro.org>2011-02-21 09:40:06 +0800
committerEric Miao <eric.miao@linaro.org>2011-02-21 09:54:45 +0800
commitea748223e9f20dcfa1878055add603dda682ed71 (patch)
tree7df756be1ab5b8f080ef0f28ba3cb194731daa23
downloadlinux-meta-linaro-natty-ea748223e9f20dcfa1878055add603dda682ed71.tar.gz
LINARO: linux-meta-linaro-imx5-2.6.35.1000.1
Signed-off-by: Eric Miao <eric.miao@linaro.org>
-rw-r--r--Makefile20
-rw-r--r--README18
-rw-r--r--meta-source/debian/changelog5
-rw-r--r--meta-source/debian/compat1
-rw-r--r--meta-source/debian/control27
-rw-r--r--meta-source/debian/control.common8
-rw-r--r--meta-source/debian/control.d/imx517
-rw-r--r--meta-source/debian/copyright39
-rwxr-xr-xmeta-source/debian/rules86
9 files changed, 221 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..327a7f9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+LOG := meta-source/debian/changelog
+META_VERSION := $(shell head -1 $(LOG)|sed 's/.*(\(.*\)).*/\1/')
+
+all: source
+
+source: clean
+ ln -s meta-source linux-meta-$(META_VERSION)
+ cd linux-meta-$(META_VERSION); \
+ dpkg-buildpackage -S -sa -rfakeroot -I -i
+
+binary: clean
+ ln -s meta-source linux-meta-$(META_VERSION)
+ cd linux-meta-$(META_VERSION); \
+ debuild -b -aarmel
+
+clean:
+ cd meta-source && fakeroot debian/rules clean
+ rm -f linux-meta-$(META_VERSION)
+ rm -f *.dsc *.changes *.gz *.deb *.build *.upload
+
diff --git a/README b/README
new file mode 100644
index 0000000..bb6ccff
--- /dev/null
+++ b/README
@@ -0,0 +1,18 @@
+The toplevel makefile in this directory is used to create the upload source
+for linux-meta. By convention the directory name is supposed to be the
+name of the package with version number attached.
+In order to fullfill that convention and prevent git from being useless
+(since the renaming produces big diffs), a soft-link is created before
+calling dpkk-buildpackage.
+
+The versioning scheme in debian/changelog must be k.k.k.a.m, where
+k is the kernel version a is the ABI version and m is the version
+of the linux-meta package.
+
+You can create an upload set by calling:
+
+ make source
+
+Afterwards the temporary stuff can be removed by calling:
+
+ make clean
diff --git a/meta-source/debian/changelog b/meta-source/debian/changelog
new file mode 100644
index 0000000..f9fd417
--- /dev/null
+++ b/meta-source/debian/changelog
@@ -0,0 +1,5 @@
+linux-meta-linaro-imx5 (2.6.35.1000.1) natty; urgency=low
+
+ * Initial release.
+
+ -- Eric Miao <eric.miao@linaro.org> Mon, 21 Feb 2011 09:37:41 +0800
diff --git a/meta-source/debian/compat b/meta-source/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/meta-source/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/meta-source/debian/control b/meta-source/debian/control
new file mode 100644
index 0000000..1a68d45
--- /dev/null
+++ b/meta-source/debian/control
@@ -0,0 +1,27 @@
+Source: linux-meta-linaro-imx5
+Section: devel
+Priority: optional
+Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
+Standards-Version: 3.6.1
+Build-Depends: dpkg (>= 1.13.19), debhelper (>= 5), gawk
+Vcs-Git: http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-natty-meta.git
+
+
+Package: linux-headers-linaro-imx5
+Architecture: armel
+Section: devel
+Priority: optional
+Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-linaro-imx5
+Description: Linux kernel headers for the Freescale i.MX51/53 architecture.
+ This package will always depend on the latest kernel headers available
+ for Freescale i.MX51/53 systems.
+
+Package: linux-image-linaro-imx5
+Architecture: armel
+Section: metapackages
+Priority: optional
+Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-linaro-imx5, linux-firmware
+Description: Linux kernel image for the Freescale i.MX51/53 architecture.
+ This package will always depend on the latest kernel image available
+ for Freescale i.MX51/53 systems.
+
diff --git a/meta-source/debian/control.common b/meta-source/debian/control.common
new file mode 100644
index 0000000..8faadc5
--- /dev/null
+++ b/meta-source/debian/control.common
@@ -0,0 +1,8 @@
+Source: linux-meta-linaro-imx5
+Section: devel
+Priority: optional
+Maintainer: Ubuntu Kernel Team <kernel-team@lists.ubuntu.com>
+Standards-Version: 3.6.1
+Build-Depends: dpkg (>= 1.13.19), debhelper (>= 5), gawk
+Vcs-Git: http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-natty-meta.git
+
diff --git a/meta-source/debian/control.d/imx5 b/meta-source/debian/control.d/imx5
new file mode 100644
index 0000000..202bb91
--- /dev/null
+++ b/meta-source/debian/control.d/imx5
@@ -0,0 +1,17 @@
+Package: linux-headers-linaro-imx5
+Architecture: armel
+Section: devel
+Priority: optional
+Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-linaro-imx5
+Description: Linux kernel headers for the Freescale i.MX51/53 architecture.
+ This package will always depend on the latest kernel headers available
+ for Freescale i.MX51/53 systems.
+
+Package: linux-image-linaro-imx5
+Architecture: armel
+Section: metapackages
+Priority: optional
+Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-linaro-imx5, linux-firmware
+Description: Linux kernel image for the Freescale i.MX51/53 architecture.
+ This package will always depend on the latest kernel image available
+ for Freescale i.MX51/53 systems.
diff --git a/meta-source/debian/copyright b/meta-source/debian/copyright
new file mode 100644
index 0000000..95305a2
--- /dev/null
+++ b/meta-source/debian/copyright
@@ -0,0 +1,39 @@
+This is the Debian GNU/Linux prepackaged version of the Linux kernel.
+Linux was written by Linus Torvalds <Linus.Torvalds@cs.Helsinki.FI>
+and others.
+
+This package was put together by Simon Shapiro <Shimon@i-Connect.Net>, from
+sources retrieved from directories under
+ftp.cs.helsinki.fi:/pub/Software/Linux/Kernel/
+The sources may be found at most Linux ftp sites, including
+ftp://ftp.kernel.org/pub/linux/kernel/
+
+This package was then maintained by Sven Rudolph.
+
+This package was maintained by Herbert Xu <herbert@gondor.apana.org.au>
+from March 1997 to May 2004.
+
+This package was maintained by the
+Debian Kernel Team <debian-kernel@lists.debian.org>
+
+This package was split off by Herbert Xu <herbert@gondor.apana.org.au>
+in September 2004.
+
+Linux is copyrighted by Linus Torvalds and others.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 dated June, 1991.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+On Debian GNU/Linux systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
diff --git a/meta-source/debian/rules b/meta-source/debian/rules
new file mode 100755
index 0000000..1e6aa2e
--- /dev/null
+++ b/meta-source/debian/rules
@@ -0,0 +1,86 @@
+#!/usr/bin/make -f
+#
+# debian/rules for kernel-source.
+#
+# GNU copyright 1997 to 1999 by Joey Hess.
+# Copyright (c) 1999-2004 Herbert Xu <herbert@gondor.apana.org.au>
+# Copyright (c) 2004 Jens Schmalzing <jensen@debian.org>
+#
+
+RELEASE_NAME=natty
+
+KERNEL_VERSION=$(shell dpkg-parsechangelog | grep ^Version | sed -e \
+ 's/Version: \([0-9]*\.[0-9]*\.[0-9]*\)\..*/\1/')
+KERNEL_ABI=$(shell head -n1 < debian/changelog | gawk '{n=split($$0,v,"."); print v[4];}')
+KERNEL_ABI_VERSION=$(KERNEL_VERSION)-$(KERNEL_ABI)
+
+GENERIC_i386=generic
+GENERIC_amd64=generic
+GENERIC_lpia=lpia
+
+GENERIC=$(value GENERIC_$(shell dpkg-architecture -qDEB_HOST_ARCH))
+GENERIC_DEP=$(if $(GENERIC),$(GENERIC),)
+
+control_files := debian/control.common $(shell LC_ALL=C ls -d debian/control.d/*)
+
+SHELL := sh -e
+
+build:
+ dh_testdir
+
+clean: debian/control
+ dh_testdir
+ dh_testroot
+ dh_clean
+
+debian/control: $(control_files)
+ rm -f debian/control.tmp
+ for i in $^; do \
+ sed 's/RELEASE_NAME/$(RELEASE_NAME)/g' $$i >> debian/control.tmp; \
+ echo >> debian/control.tmp; \
+ done
+ rm -f $@
+ mv debian/control.tmp $@
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+gencontrol_flags = -Vkernel-version=$(KERNEL_VERSION)
+gencontrol_flags += -Vkernel-abi-version=$(KERNEL_ABI_VERSION)
+gencontrol_flags += -Vgeneric-depends=$(GENERIC_DEP)
+
+# Build architecture-independent files here.
+binary-indep: debian/control install
+ dh_testdir
+ dh_testroot
+
+ dh_installdirs -i
+ dh_installdocs -i
+ dh_installchangelogs -i
+ dh_compress -i
+ dh_fixperms -i
+ dh_installdeb -i
+ dh_gencontrol -i -- $(gencontrol_flags)
+ dh_md5sums -i
+ dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: debian/control install
+ dh_testdir
+ dh_testroot
+
+ dh_installdirs -s
+ dh_installdocs -s
+ dh_installchangelogs -s
+ dh_compress -s
+ dh_fixperms -s
+ dh_installdeb -s
+ dh_gencontrol -s -- $(gencontrol_flags)
+ dh_md5sums -s
+ dh_builddeb -s
+
+binary: binary-indep binary-arch
+
+.PHONY: build clean binary-indep binary-arch binary install