Skip to content

Commit

Permalink
ODROID: debian: add default Debian packaging scripts
Browse files Browse the repository at this point in the history
   $ 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]>
  • Loading branch information
tobetter committed Apr 1, 2018
1 parent 11eac29 commit 8323c22
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 0 deletions.
5 changes: 5 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
linux-3.16.56-odroid (3.16.56-0) experimental; urgency=low

* Custom built Linux kernel.

-- Dongjin Kim <[email protected]> Fri, 30 Mar 2018 05:53:10 -0400
1 change: 1 addition & 0 deletions debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
31 changes: 31 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
Source: linux-3.16.56-odroid
Section: kernel
Priority: optional
Maintainer: Dongjin Kim <[email protected]>
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]
Standards-Version: 3.8.4
Homepage: http://www.kernel.org/

Package: linux-image-3.16.56-odroid
Provides: linux-image, linux-image-2.6, linux-modules-3.16.56-odroid
Suggests: linux-firmware-image-3.16.56-odroid
Architecture: any
Description: Linux kernel, version 3.16.56-odroid
This package contains the Linux kernel, modules and corresponding other
files, version: 3.16.56-odroid.

Package: linux-headers-3.16.56-odroid
Provides: linux-headers, linux-headers-2.6
Architecture: any
Description: Linux kernel headers for 3.16.56-odroid on ${kernel:debarch}
This package provides kernel header files for 3.16.56-odroid on ${kernel:debarch}
.
This is useful for people who need to build external modules

Package: linux-libc-dev
Section: devel
Provides: linux-kernel-headers
Architecture: any
Description: Linux support headers for userspace development
This package provides userspaces headers from the Linux kernel. These headers
are used by the installed headers for GNU glibc and other system libraries.
16 changes: 16 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
This is a packacked upstream version of the Linux kernel.

The sources may be found at most Linux ftp sites, including:
ftp://ftp.kernel.org/pub/linux/kernel

Copyright: 1991 - 2009 Linus Torvalds and others.

The git repository for mainline kernel development is at:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git

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.

On Debian GNU/Linux systems, the complete text of the GNU General Public
License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
32 changes: 32 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
include /usr/share/dpkg/pkg-info.mk

ifeq ($(DH_VERBOSE),1)
Q =
else
Q = @
endif

export KERNELVERSION=$(shell make kernelversion)

build:
$(Q)$(MAKE) odroidc2_defconfig
$(Q)$(MAKE)

binary-arch:
$(Q)$(MAKE) deb-pkg \
DEBFULLNAME="Dongjin Kim" \
DEBEMAIL="[email protected]" \
KDEB_SOURCENAME=linux-$(KERNELVERSION)-odroid \
LOCALVERSION=-odroid \
KDEB_PKGVERSION=$(KERNELVERSION)

binary: binary-arch

clean:
rm -rf debian/*tmp debian/files
$(MAKE) clean

.PHONY: clean build binary-arch binary
1 change: 1 addition & 0 deletions debian/source/format
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0 (native)

0 comments on commit 8323c22

Please sign in to comment.