[SRU][L][PATCH 1/1] UBUNTU: [Packaging] enable rust only in the generic kernel for amd64
Andrea Righi
andrea.righi at canonical.com
Tue May 30 11:26:17 UTC 2023
BugLink: https://bugs.launchpad.net/bugs/2021605
This allows to avoid building any kind of Rust artifact in other
kernels, except for the generic one and only on amd64.
Signed-off-by: Andrea Righi <andrea.righi at canonical.com>
---
debian.master/rules.d/amd64.mk | 1 +
debian/rules.d/2-binary-arch.mk | 4 ++++
2 files changed, 5 insertions(+)
diff --git a/debian.master/rules.d/amd64.mk b/debian.master/rules.d/amd64.mk
index d0384f0227a47..afed3e50966b9 100644
--- a/debian.master/rules.d/amd64.mk
+++ b/debian.master/rules.d/amd64.mk
@@ -21,3 +21,4 @@ do_extras_package = true
do_tools_common = true
do_tools_acpidbg = true
do_odm_drivers = true
+do_lib_rust = true
diff --git a/debian/rules.d/2-binary-arch.mk b/debian/rules.d/2-binary-arch.mk
index 630a335616a74..aa790f98f000d 100644
--- a/debian/rules.d/2-binary-arch.mk
+++ b/debian/rules.d/2-binary-arch.mk
@@ -132,7 +132,9 @@ $(stampdir)/stamp-install-%: $(stampdir)/stamp-build-% $(stampdir)/stamp-install
dh_prep -p$(bin_pkg_name)-$*
dh_prep -p$(mods_pkg_name)-$*
dh_prep -p$(hdrs_pkg_name)-$*
+ifeq ($(do_lib_rust),true)
dh_prep -p$(rust_pkg_name)-$*
+endif
$(foreach _m,$(all_standalone_dkms_modules), \
$(if $(enable_$(_m)),dh_prep -p$(dkms_$(_m)_pkg_name)-$*;)\
)
@@ -675,7 +677,9 @@ endif
$(call dh_all,$(pkgbldinfo))
$(call dh_all,$(pkghdr))
+ifeq ($(do_lib_rust),true)
$(call dh_all,$(pkgrust))
+endif
ifneq ($(skipsub),true)
@set -e; for sub in $($(*)_sub); do \
--
2.39.2
More information about the kernel-team
mailing list