@@ -21,3 +21,4 @@ do_extras_package = true
do_tools_common = true
do_tools_acpidbg = true
do_odm_drivers = true
+do_lib_rust = true
@@ -132,7 +132,7 @@ $(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 ($(build_arch),x86)
+ifeq ($(do_lib_rust),true)
dh_prep -p$(rust_pkg_name)-$*
endif
$(foreach _m,$(all_standalone_dkms_modules), \
@@ -677,7 +677,7 @@ endif
$(call dh_all,$(pkgbldinfo))
$(call dh_all,$(pkghdr))
-ifeq ($(build_arch),x86)
+ifeq ($(do_lib_rust),true)
$(call dh_all,$(pkgrust))
endif
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@canonical.com> --- debian.master/rules.d/amd64.mk | 1 + debian/rules.d/2-binary-arch.mk | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-)