Add pkg.linux.nokernel build profile that excludes kernel image/header packages
This should mostly be useful for testing changes that only affect the userland packages.
This commit is contained in:
parent
fdd6dadb4a
commit
80c2596a7c
|
@ -237,6 +237,7 @@ Several build profiles are understood and supported:
|
||||||
- nodoc: Exclude most documentation
|
- nodoc: Exclude most documentation
|
||||||
- pkg.linux.notools: Exclude userland tool packages (linux-kbuild-<version>,
|
- pkg.linux.notools: Exclude userland tool packages (linux-kbuild-<version>,
|
||||||
linux-perf-<version>, etc.)
|
linux-perf-<version>, etc.)
|
||||||
|
- pkg.linux.nokernel: Exclude kernel image and header packages
|
||||||
- cross: Needed when cross-building. Currently this must be used together
|
- cross: Needed when cross-building. Currently this must be used together
|
||||||
with nopython as the build-dependencies will be unsatisfiable otherwise.
|
with nopython as the build-dependencies will be unsatisfiable otherwise.
|
||||||
- nopython: Disable Python bindings. This currently disables building the
|
- nopython: Disable Python bindings. This currently disables building the
|
||||||
|
|
|
@ -140,7 +140,7 @@ class Gencontrol(Base):
|
||||||
package['Build-Profiles'] = (
|
package['Build-Profiles'] = (
|
||||||
'<pkg.linux.udeb-unsigned-test-build>')
|
'<pkg.linux.udeb-unsigned-test-build>')
|
||||||
else:
|
else:
|
||||||
package['Build-Profiles'] = '<!stage1>'
|
package['Build-Profiles'] = '<!stage1 !pkg.linux.nokernel>'
|
||||||
|
|
||||||
for arch in package['Architecture']:
|
for arch in package['Architecture']:
|
||||||
self.installer_packages.setdefault(arch, []) \
|
self.installer_packages.setdefault(arch, []) \
|
||||||
|
|
|
@ -6,6 +6,8 @@ linux (4.19.13-2) UNRELEASED; urgency=medium
|
||||||
[ Ben Hutchings ]
|
[ Ben Hutchings ]
|
||||||
* [ia64,m68k] libbpf: Really don't build on architectures without perf events
|
* [ia64,m68k] libbpf: Really don't build on architectures without perf events
|
||||||
* Use dh_listpackages to determine which packages to build
|
* Use dh_listpackages to determine which packages to build
|
||||||
|
* Add pkg.linux.nokernel build profile that excludes kernel image and header
|
||||||
|
packages
|
||||||
|
|
||||||
-- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Sun, 30 Dec 2018 10:30:57 +0100
|
-- John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> Sun, 30 Dec 2018 10:30:57 +0100
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: linux-headers-@abiname@-all
|
Package: linux-headers-@abiname@-all
|
||||||
Build-Profiles: <!stage1>
|
Build-Profiles: <!stage1 !pkg.linux.nokernel>
|
||||||
Depends: linux-headers-@abiname@-all-${kernel:Arch} (= ${binary:Version}), ${misc:Depends}
|
Depends: linux-headers-@abiname@-all-${kernel:Arch} (= ${binary:Version}), ${misc:Depends}
|
||||||
Description: All header files for Linux @version@ (meta-package)
|
Description: All header files for Linux @version@ (meta-package)
|
||||||
This package depends against all architecture-specific kernel header files
|
This package depends against all architecture-specific kernel header files
|
||||||
|
@ -7,7 +7,7 @@ Description: All header files for Linux @version@ (meta-package)
|
||||||
kernel modules.
|
kernel modules.
|
||||||
|
|
||||||
Package: linux-headers-@abiname@-all-@arch@
|
Package: linux-headers-@abiname@-all-@arch@
|
||||||
Build-Profiles: <!stage1>
|
Build-Profiles: <!stage1 !pkg.linux.nokernel>
|
||||||
Depends: ${misc:Depends}
|
Depends: ${misc:Depends}
|
||||||
Description: All header files for Linux @version@ (meta-package)
|
Description: All header files for Linux @version@ (meta-package)
|
||||||
This package depends against all architecture-specific kernel header files
|
This package depends against all architecture-specific kernel header files
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: linux-headers-@abiname@-common@localversion@
|
Package: linux-headers-@abiname@-common@localversion@
|
||||||
Build-Profiles: <!stage1>
|
Build-Profiles: <!stage1 !pkg.linux.nokernel>
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Depends: ${misc:Depends}
|
Depends: ${misc:Depends}
|
||||||
Multi-Arch: foreign
|
Multi-Arch: foreign
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: linux-headers-@abiname@@localversion@
|
Package: linux-headers-@abiname@@localversion@
|
||||||
Build-Profiles: <!stage1>
|
Build-Profiles: <!stage1 !pkg.linux.nokernel>
|
||||||
Depends: linux-headers-@abiname@-common@localversion_headers@ (= ${source:Version}), linux-kbuild-@version@ (>= ${source:Version}), ${misc:Depends}
|
Depends: linux-headers-@abiname@-common@localversion_headers@ (= ${source:Version}), linux-kbuild-@version@ (>= ${source:Version}), ${misc:Depends}
|
||||||
Description: Header files for Linux @abiname@@localversion@
|
Description: Header files for Linux @abiname@@localversion@
|
||||||
This package provides the architecture-specific kernel header files
|
This package provides the architecture-specific kernel header files
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: linux-image-@abiname@@localversion@-dbg
|
Package: linux-image-@abiname@@localversion@-dbg
|
||||||
Build-Profiles: <!stage1>
|
Build-Profiles: <!stage1 !pkg.linux.nokernel>
|
||||||
Depends: ${misc:Depends}
|
Depends: ${misc:Depends}
|
||||||
Section: debug
|
Section: debug
|
||||||
Priority: optional
|
Priority: optional
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: linux-image-@abiname@@localversion@-unsigned
|
Package: linux-image-@abiname@@localversion@-unsigned
|
||||||
Build-Profiles: <!stage1>
|
Build-Profiles: <!stage1 !pkg.linux.nokernel>
|
||||||
Depends: kmod, linux-base (>= 4.3~), ${misc:Depends}
|
Depends: kmod, linux-base (>= 4.3~), ${misc:Depends}
|
||||||
Recommends: firmware-linux-free, ${kernel:Recommends}
|
Recommends: firmware-linux-free, ${kernel:Recommends}
|
||||||
Suggests: linux-doc-@version@, debian-kernel-handbook
|
Suggests: linux-doc-@version@, debian-kernel-handbook
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: linux-image-@abiname@@localversion@
|
Package: linux-image-@abiname@@localversion@
|
||||||
Build-Profiles: <!stage1>
|
Build-Profiles: <!stage1 !pkg.linux.nokernel>
|
||||||
Depends: kmod, linux-base (>= 4.3~), linux-bootwrapper-@abiname@ [powerpc powerpcspe ppc64], ${misc:Depends}
|
Depends: kmod, linux-base (>= 4.3~), linux-bootwrapper-@abiname@ [powerpc powerpcspe ppc64], ${misc:Depends}
|
||||||
Recommends: firmware-linux-free, ${kernel:Recommends}
|
Recommends: firmware-linux-free, ${kernel:Recommends}
|
||||||
Suggests: linux-doc-@version@, debian-kernel-handbook
|
Suggests: linux-doc-@version@, debian-kernel-handbook
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
Package: linux-image-@arch@-signed-template
|
Package: linux-image-@arch@-signed-template
|
||||||
Build-Profiles: <!stage1>
|
Build-Profiles: <!stage1 !pkg.linux.nokernel>
|
||||||
Depends: dpkg-dev, ${misc:Depends}
|
Depends: dpkg-dev, ${misc:Depends}
|
||||||
Description: Template for signed linux-image packages for @arch@
|
Description: Template for signed linux-image packages for @arch@
|
||||||
This package is used to control code signing by the Debian signing
|
This package is used to control code signing by the Debian signing
|
||||||
|
|
|
@ -19,17 +19,19 @@ Build-Depends:
|
||||||
bison <!stage1>, flex (>= 2.6.1-1.1~) <!stage1>,
|
bison <!stage1>, flex (>= 2.6.1-1.1~) <!stage1>,
|
||||||
Build-Depends-Arch:
|
Build-Depends-Arch:
|
||||||
# used by debian/rules.real to build udebs
|
# used by debian/rules.real to build udebs
|
||||||
kernel-wedge (>= 2.99~) <!stage1>,
|
kernel-wedge (>= 2.99~) <!stage1 !pkg.linux.nokernel>,
|
||||||
# used by kernel-wedge (only on Linux, thus not declared as a dependency)
|
# used by kernel-wedge (only on Linux, thus not declared as a dependency)
|
||||||
kmod <!stage1>,
|
kmod <!stage1 !pkg.linux.nokernel>,
|
||||||
# used by upstream to build include/generated/timeconst.h
|
# used by upstream to build include/generated/timeconst.h
|
||||||
bc <!stage1>,
|
bc <!stage1 !pkg.linux.nokernel>,
|
||||||
# used by upstream to build signing tools and to process certificates
|
# used by upstream to build signing tools and to process certificates
|
||||||
libssl-dev:native <!stage1>, libssl-dev <!stage1 !pkg.linux.notools>,
|
libssl-dev:native <!stage1 !pkg.linux.nokernel>,
|
||||||
openssl (>= 1.1.0-1~) <!stage1>,
|
libssl-dev <!stage1 !pkg.linux.notools>,
|
||||||
|
openssl (>= 1.1.0-1~) <!stage1 !pkg.linux.nokernel>,
|
||||||
# used by upstream to build objtool (native for amd64 images; host arch for
|
# used by upstream to build objtool (native for amd64 images; host arch for
|
||||||
# linux-kbuild), perf (host arch), libbpf (host arch)
|
# linux-kbuild), perf (host arch), libbpf (host arch)
|
||||||
libelf-dev:native [amd64] <!stage1>, libelf-dev <!stage1 !pkg.linux.notools>,
|
libelf-dev:native [amd64] <!stage1 !pkg.linux.nokernel>,
|
||||||
|
libelf-dev <!stage1 !pkg.linux.notools>,
|
||||||
Rules-Requires-Root: no
|
Rules-Requires-Root: no
|
||||||
Vcs-Git: https://salsa.debian.org/kernel-team/linux.git
|
Vcs-Git: https://salsa.debian.org/kernel-team/linux.git
|
||||||
Vcs-Browser: https://salsa.debian.org/kernel-team/linux
|
Vcs-Browser: https://salsa.debian.org/kernel-team/linux
|
||||||
|
|
Loading…
Reference in New Issue