UBUNTU: [debian] Initial debian and ubuntu directories

Ignore: yes
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [debian] note directory name changes

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [debian] add custom upload for the kernel binary package

Pick out the kernel binaries and add them to a custom upload.  This upload
will trigger signing of the contained files which will later be pulled
into linux-*-signed packages.

Only include amd64 kernels as we only support EFI signed packages there.
Also ensure the kernel has a high enough interface version >= 0x020b
otherwise we may end up with an unsafe kernel loaded.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] we already have a valid src_pkg_name

Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] allow us to select which builds have uefi signed versions

Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] do not fail secure copy on older kernels

Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] bootstrap: switch to the new DEB_BUILD_PROFILE

Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] drop manual headers copy

Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] Update armhf comments.

https://lists.ubuntu.com/archives/ubuntu-devel/2012-November/036106.html

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [debian] Add custom_override rule to allow for alternate kernel file/install

On PowerPC, the flavours have different make targets and installable
images. For example, e500/e500mc use a target of uImage, since that is
the native format for U-Boot systems.

Signed-off-by: Ben Collins <ben.c@servergy.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [debian] enforcer -- fix debugging output

Fix up some confusingly wrong debugging output in the config checker.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] Use dh_prep instead of 'dh_clean -k'

dh_prep needs to be run only once at the root of the
binary-indep dependency chain, i.e., install-headers.

Similarly, dh_testdir and dh_testroot only need to be run once at
the root of the binary-indep dependency chain.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [debian] Document binary-indep dependency chain

Move some code around to directly reflect the dependency chain ordering.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [debian] Use SRCPKGNAME as prefix for indep linux headers package

[apw@canonical.com: forward ported to new cleaned up indep stack.]
Signed-off-by: Ben Collins <ben.c@servergy.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] script to detect obsolete firmware

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [debian] add rebuild-test support for autopkgtest

Add support for the DEB_BUILD_OPTIONS rebuild-test which indicates this is
not a full build but a quick smoke test.  For us short circuit the build
and only make the first flavour on the assumption it is representative
of the others.

BugLink: http://bugs.launchpad.net/bugs/1081500
Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] move build tests out of the way

The new Debian autopkgtest system takes ownership of the debian/tests
directory, in such a way that is incompatible with our usage.  Move our
tests to debian/tests-build as they are build tests.

BugLink: http://bugs.launchpad.net/bugs/1081500
Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] add an autopkgtest rebuild test

The plan here is for linux, gcc, binutils, and eglibc to all depends on
each other and to all have a rebuild test.  That way the entire set is
rebuild tested for any one in the set being uploaded.

BugLink: http://bugs.launchpad.net/bugs/1081500
Signed-off-by: Andy Whitcroft <apw@canonical.com>
UBUNTU: [debian] hmake -j1

The kernel makefile appears to have parallel dependency
problems for the install_headers target.

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
UBUNTU: [debian] get-firmware: Filter new files through fwinfo

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>