From 319d146f10d7332ad817e56e73a1fa32da30325f Mon Sep 17 00:00:00 2001 From: Kalle Vahlman Date: Tue, 20 Dec 2011 06:28:34 +0000 Subject: Import linux kernel metapackages for ux500 Based on John Rigby's repository at git://git.linaro.org/people/jcrigby/ubuntu/linux-meta-linaro-natty.git --- Makefile | 20 +++++++++ README | 18 ++++++++ meta-source/debian/changelog | 5 +++ meta-source/debian/compat | 1 + meta-source/debian/control.common | 6 +++ meta-source/debian/control.d/ux500 | 17 ++++++++ meta-source/debian/copyright | 39 +++++++++++++++++ meta-source/debian/rules | 86 ++++++++++++++++++++++++++++++++++++++ 8 files changed, 192 insertions(+) create mode 100644 Makefile create mode 100644 README create mode 100644 meta-source/debian/changelog create mode 100644 meta-source/debian/compat create mode 100644 meta-source/debian/control.common create mode 100644 meta-source/debian/control.d/ux500 create mode 100644 meta-source/debian/copyright create mode 100755 meta-source/debian/rules 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..ce6c804 --- /dev/null +++ b/meta-source/debian/changelog @@ -0,0 +1,5 @@ +linux-meta-ux500 (3.0.0-5.0) oneiric; urgency=low + + * Initial release of ux500 kernel metapackages, based on John Rigby's meta repository + + -- Kalle Vahlman Tue, 20 Dec 2011 06:16:11 +0000 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.common b/meta-source/debian/control.common new file mode 100644 index 0000000..6013520 --- /dev/null +++ b/meta-source/debian/control.common @@ -0,0 +1,6 @@ +Source: linux-meta-ux500 +Section: devel +Priority: optional +Maintainer: Igloo Community +Standards-Version: 3.6.1 +Build-Depends: dpkg (>= 1.13.19), debhelper (>= 5), gawk diff --git a/meta-source/debian/control.d/ux500 b/meta-source/debian/control.d/ux500 new file mode 100644 index 0000000..65cc687 --- /dev/null +++ b/meta-source/debian/control.d/ux500 @@ -0,0 +1,17 @@ +Package: linux-headers-ux500 +Architecture: armel +Section: devel +Priority: optional +Depends: ${misc:Depends}, linux-headers-${kernel-abi-version}-ux500 +Description: Linux kernel headers for the ST-Ericsson UX500 based systems. + This package will always depend on the latest kernel headers available + for ARM ST-Ericsson UX500 systems, like the Snowball board. + +Package: linux-image-ux500 +Architecture: armel +Section: metapackages +Priority: optional +Depends: ${misc:Depends}, linux-image-${kernel-abi-version}-ux500, linux-firmware, ux500-firmware +Description: Linux kernel image for the ST-Ericsson UX500 based systems. + This package will always depend on the latest kernel image available + for ARM ST-Ericsson UX500 systems, like the Snowball board. 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 +and others. + +This package was put together by Simon Shapiro , 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 +from March 1997 to May 2004. + +This package was maintained by the +Debian Kernel Team + +This package was split off by Herbert Xu +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..f4a31c9 --- /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 +# Copyright (c) 2004 Jens Schmalzing +# + +RELEASE_NAME=maverick + +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 -- cgit v1.2.3