Skip to content

Commit c1a556b

Browse files
committed
ODROID: debian: add default Debian packaging scripts
$ export ARCH=arm64 $ export CROSS_COMPILE=aarch64-linux-gnu- $ debuild --preserve-envvar=PATH \ --preserve-envvar=ARCH \ --preserve-envvar=CROSS_COMPILE \ -us -uc -b Change-Id: Ie5369c1011518e9c9c9e43869a22dd5a215dfaeb Signed-off-by: Dongjin Kim <[email protected]>
1 parent 0d11c06 commit c1a556b

File tree

6 files changed

+88
-0
lines changed

6 files changed

+88
-0
lines changed

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
linux-odroid (3.16.56-0) unstable; urgency=low
2+
3+
* Custom built Linux kernel.
4+
5+
-- Dongjin Kim <[email protected]> Fri, 30 Mar 2018 05:53:10 -0400

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11

debian/control

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Source: linux-odroid
2+
Section: kernel
3+
Priority: optional
4+
Maintainer: Dongjin Kim <[email protected]>
5+
Standards-Version: 3.8.4
6+
Homepage: http://www.kernel.org/
7+
8+
Package: linux-image-3.16.56-odroid
9+
Provides: linux-image, linux-image-2.6, linux-modules-3.16.56-odroid
10+
Suggests: linux-firmware-image-3.16.56-odroid
11+
Architecture: any
12+
Description: Linux kernel, version 3.16.56-odroid
13+
This package contains the Linux kernel, modules and corresponding other
14+
files, version: 3.16.56-odroid.
15+
16+
Package: linux-headers-3.16.56-odroid
17+
Provides: linux-headers, linux-headers-2.6
18+
Architecture: any
19+
Description: Linux kernel headers for 3.16.56-odroid on ${kernel:debarch}
20+
This package provides kernel header files for 3.16.56-odroid on ${kernel:debarch}
21+
.
22+
This is useful for people who need to build external modules
23+
24+
Package: linux-libc-dev
25+
Section: devel
26+
Provides: linux-kernel-headers
27+
Architecture: any
28+
Description: Linux support headers for userspace development
29+
This package provides userspaces headers from the Linux kernel. These headers
30+
are used by the installed headers for GNU glibc and other system libraries.

debian/copyright

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
This is a packacked upstream version of the Linux kernel.
2+
3+
The sources may be found at most Linux ftp sites, including:
4+
ftp://ftp.kernel.org/pub/linux/kernel
5+
6+
Copyright: 1991 - 2009 Linus Torvalds and others.
7+
8+
The git repository for mainline kernel development is at:
9+
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
10+
11+
This program is free software; you can redistribute it and/or modify
12+
it under the terms of the GNU General Public License as published by
13+
the Free Software Foundation; version 2 dated June, 1991.
14+
15+
On Debian GNU/Linux systems, the complete text of the GNU General Public
16+
License version 2 can be found in `/usr/share/common-licenses/GPL-2'.

debian/rules

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/make -f
2+
3+
include /usr/share/dpkg/architecture.mk
4+
include /usr/share/dpkg/pkg-info.mk
5+
6+
ifeq ($(DH_VERBOSE),1)
7+
Q =
8+
else
9+
Q = @
10+
endif
11+
12+
export KERNELVERSION=$(shell make kernelversion)
13+
14+
%:
15+
dh $@
16+
17+
build:
18+
$(Q)$(MAKE) odroidc2_defconfig
19+
$(Q)$(MAKE)
20+
21+
binary-arch:
22+
$(Q)$(MAKE) deb-pkg \
23+
DEBFULLNAME="Dongjin Kim" \
24+
DEBEMAIL="[email protected]" \
25+
KDEB_SOURCENAME=linux-odroid \
26+
LOCALVERSION=-odroid \
27+
KDEB_PKGVERSION=$(KERNELVERSION)
28+
29+
binary: binary-arch
30+
31+
clean:
32+
rm -rf debian/*tmp debian/files
33+
$(MAKE) clean
34+
35+
.PHONY: clean build binary-arch binary

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

0 commit comments

Comments
 (0)