Skip to content

Commit

Permalink
debian: Add 32-bit MIPS architectures to COHERENT_DMA_ARCHS
Browse files Browse the repository at this point in the history
Commit b7c4283 ("util: Add barriers
support for MIPS") added support for coherent DMA support for MIPS.
All MIPS architectures needs to be added to `COHERENT_DMA_ARCHS` (not
just the 64-bit variants).

The list of architectures that support coherent DMA gets very long,
because most architectures support it. So inverse the list to make it
easier to read.

Bug-Debian: https://bugs.debian.org/1026088
Signed-off-by: Benjamin Drung <[email protected]>
  • Loading branch information
bdrung committed Jan 10, 2023
1 parent 232ff38 commit 05ed5e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

COHERENT_DMA_ARCHS = amd64 arm64 i386 ia64 mips64 mips64el mips64r6 mips64r6el powerpc powerpcspe ppc64 ppc64el riscv64 s390x sparc64 x32
NON_COHERENT_DMA_ARCHS = alpha arc armel armhf hppa m68k sh4

dh_params = --with python3 --builddirectory=build-deb

Expand Down Expand Up @@ -58,7 +58,7 @@ override_dh_auto_test:

override_dh_auto_install:
# Some providers are disabled on architectures that are not able to do coherent DMA
ifneq (,$(filter-out $(COHERENT_DMA_ARCHS),$(DEB_HOST_ARCH)))
ifeq (,$(filter-out $(NON_COHERENT_DMA_ARCHS),$(DEB_HOST_ARCH)))
for package in ibverbs-providers libibverbs-dev rdma-core; do \
test -e debian/$$package.install.backup || cp debian/$$package.install debian/$$package.install.backup; \
done
Expand Down

0 comments on commit 05ed5e0

Please sign in to comment.