UBUNTU: [Packaging] Build linux-source package only for the main kernel
BugLink: https://bugs.launchpad.net/bugs/2052439 The linux-source package only makes sense for the main linux kernel. Building it for derivatives is useless and just confuses users. By default it is enabled globally in 0-common-vars.mk so make sure it is turned off afterwards for non-linux source packages. Signed-off-by: Juerg Haefliger <juerg.haefliger@canonical.com> Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
This commit is contained in:
committed by
Paolo Pisati
parent
c2451215f5
commit
ab8844993c
Vendored
+7
@@ -55,6 +55,13 @@ ifeq ($(src_pkg_name),linux)
|
||||
do_tools_host = true
|
||||
endif
|
||||
|
||||
# The linux-source package may only be built for the linux source package
|
||||
# We need to explicitly turn this off here to override any (incorrect)
|
||||
# statement in any of the above included makefile snippets
|
||||
ifneq ($(src_pkg_name),linux)
|
||||
do_source_package = false
|
||||
endif
|
||||
|
||||
# Default settings for DKMS modules.
|
||||
$(foreach _m,$(all_dkms_modules), \
|
||||
$(eval do_$(_m) ?= $(if $(filter $(_m),$(filter-out $(dkms_exclude),$(dkms_include) $(subst any,$(_m),$(subst $(arch),$(_m),$(dkms_$(_m)_archs))))),true,false)) \
|
||||
|
||||
Reference in New Issue
Block a user