Skip to content

Commit 7acfd05

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 7acfd05

File tree

6 files changed

+86
-0
lines changed

6 files changed

+86
-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-3.16.56-odroid (3.16.56-0) experimental; 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: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Source: linux-3.16.56-odroid
2+
Section: kernel
3+
Priority: optional
4+
Maintainer: Dongjin Kim <[email protected]>
5+
Build-Depends: asciidoc-base | asciidoc, autoconf, automake, bc, bison, cpio, debhelper, dh-exec, dh-python, flex | flex:native, kernel-wedge, kmod, libaudit-dev, libbabeltrace-ctf-dev, libbabeltrace-dev, libdw-dev, libelf-dev, libglib2.0-dev, libiberty-dev, libnewt-dev, libnuma-dev [arm64], libpci-dev, libperl-dev, libssl-dev, libssl-dev:native, libtool, libudev-dev, libunwind8-dev [armhfarm64], libwrap0-dev, openssl, python-dev, python3:any, quilt, rsync, xmlto, xz-utils, gcc-6 [arm64 armhf]
6+
Standards-Version: 3.8.4
7+
Homepage: http://www.kernel.org/
8+
9+
Package: linux-image-3.16.56-odroid
10+
Provides: linux-image, linux-image-2.6, linux-modules-3.16.56-odroid
11+
Suggests: linux-firmware-image-3.16.56-odroid
12+
Architecture: any
13+
Description: Linux kernel, version 3.16.56-odroid
14+
This package contains the Linux kernel, modules and corresponding other
15+
files, version: 3.16.56-odroid.
16+
17+
Package: linux-headers-3.16.56-odroid
18+
Provides: linux-headers, linux-headers-2.6
19+
Architecture: any
20+
Description: Linux kernel headers for 3.16.56-odroid on ${kernel:debarch}
21+
This package provides kernel header files for 3.16.56-odroid on ${kernel:debarch}
22+
.
23+
This is useful for people who need to build external modules
24+
25+
Package: linux-libc-dev
26+
Section: devel
27+
Provides: linux-kernel-headers
28+
Architecture: any
29+
Description: Linux support headers for userspace development
30+
This package provides userspaces headers from the Linux kernel. These headers
31+
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: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
build:
15+
$(Q)$(MAKE) odroidc2_defconfig
16+
$(Q)$(MAKE)
17+
18+
binary-arch:
19+
$(Q)$(MAKE) deb-pkg \
20+
DEBFULLNAME="Dongjin Kim" \
21+
DEBEMAIL="[email protected]" \
22+
KDEB_SOURCENAME=linux-$(KERNELVERSION)-odroid \
23+
LOCALVERSION=-odroid \
24+
KDEB_PKGVERSION=$(KERNELVERSION)
25+
26+
binary: binary-arch
27+
28+
clean:
29+
rm -rf debian/*tmp debian/files
30+
$(MAKE) clean
31+
32+
.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)