This patch allow the package to build on amd64 as well. Here it produces the following: 80K bcm43xx-modules-2.6.15-1-amd64-generic_20060108-4_amd64.deb 80K bcm43xx-modules-2.6.15-1-amd64-k8_20060108-4_amd64.deb 84K bcm43xx-modules-2.6.15-1-amd64-k8-smp_20060108-4_amd64.deb 76K bcm43xx-modules-2.6.15-1-em64t-p4_20060108-4_amd64.deb 80K bcm43xx-modules-2.6.15-1-em64t-p4-smp_20060108-4_amd64.deb 80K bcm43xx-source_20060108-4_all.deb
However, I have spotted many warnings like this: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘size_t size_t is unsigned int on i386 (4 byte) but is unsigned long on amd64 (8 byte). This could break things. All the best, Roberto
--- debian/rules 2006-01-27 16:09:02.000000000 +0100 +++ debian/rules.patch 2006-01-27 16:09:34.000000000 +0100 @@ -75,7 +75,8 @@ I386_FLAVOURS=486 686 686-smp k7 k7-smp POWERPC_FLAVOURS=powerpc powerpc-smp -ALL_FLAVOURS=$(I386_FLAVOURS) $(POWERPC_FLAVOURS) +AMD64_FLAVOURS=amd64-k8 amd64-k8-smp em64t-p4 em64t-p4-smp amd64-generic +ALL_FLAVOURS=$(I386_FLAVOURS) $(POWERPC_FLAVOURS) $(AMD64_FLAVOURS) configure: configure-stamp configure-stamp: @@ -102,6 +103,13 @@ done $(MAKE) clean endif +ifeq "$(ARCH)" "amd64" + for i in $(AMD64_FLAVOURS); do \ + KDIR=/usr/src/linux-headers-$(KERNEL)-$$i $(MAKE); \ + mv $(sname).ko $(sname).ko-$$i; \ + $(MAKE) clean; \ + done +endif touch build-arch-stamp @@ -181,6 +189,12 @@ $(CURDIR)/debian/$(PACKAGE)-$(KERNEL)-$$i/lib/modules/$(KERNEL)-$$i/kernel/drivers/net/$(sname)/$(sname).ko; \ done endif +ifeq "$(ARCH)" "amd64" + for i in $(AMD64_FLAVOURS); do \ + install -D -m644 $(sname).ko-$$i \ + $(CURDIR)/debian/$(PACKAGE)-$(KERNEL)-$$i/lib/modules/$(KERNEL)-$$i/kernel/drivers/net/$(sname)/$(sname).ko; \ + done +endif binary-indep: build install dh_testdir -i --- debian/control 2006-01-27 16:08:53.000000000 +0100 +++ debian/control.patch 2006-01-27 16:16:20.000000000 +0100 @@ -75,6 +75,56 @@ . This package contains the compiled kernel module for 2.6.15-1-k7-smp +Package: bcm43xx-modules-2.6.15-1-amd64-k8 +Architecture: amd64 +Depends: linux-image-2.6.15-1-amd64-k8, ieee80211softmac-modules-2.6.15-1-amd64-k8 +Recommends: bcm43xx-fwcutter +Description: Broadcom 43xx Wireless LAN driver module for Linux 2.6.15-1-amd64-k8 + This package contains the kernel module for the Broadcom 43xx Wireless LAN + driver + . + This package contains the compiled kernel module for 2.6.15-1-amd64-k8 + +Package: bcm43xx-modules-2.6.15-1-amd64-k8-smp +Architecture: amd64 +Depends: linux-image-2.6.15-1-amd64-k8-smp, ieee80211softmac-modules-2.6.15-1-amd64-k8-smp +Recommends: bcm43xx-fwcutter +Description: Broadcom 43xx Wireless LAN driver module for Linux 2.6.15-1-amd64-k8-smp + This package contains the kernel module for the Broadcom 43xx Wireless LAN + driver + . + This package contains the compiled kernel module for 2.6.15-1-amd64-k8-smp + +Package: bcm43xx-modules-2.6.15-1-amd64-generic +Architecture: amd64 +Depends: linux-image-2.6.15-1-amd64-generic, ieee80211softmac-modules-2.6.15-1-amd64-generic +Recommends: bcm43xx-fwcutter +Description: Broadcom 43xx Wireless LAN driver module for Linux 2.6.15-1-amd64-generic + This package contains the kernel module for the Broadcom 43xx Wireless LAN + driver + . + This package contains the compiled kernel module for 2.6.15-1-amd64-k8-generic + +Package: bcm43xx-modules-2.6.15-1-em64t-p4 +Architecture: amd64 +Depends: linux-image-2.6.15-1-em64t-p4, ieee80211softmac-modules-2.6.15-1-em64t-p4 +Recommends: bcm43xx-fwcutter +Description: Broadcom 43xx Wireless LAN driver module for Linux 2.6.15-1-em64t-p4 + This package contains the kernel module for the Broadcom 43xx Wireless LAN + driver + . + This package contains the compiled kernel module for 2.6.15-1-em64t-p4 + +Package: bcm43xx-modules-2.6.15-1-em64t-p4-smp +Architecture: amd64 +Depends: linux-image-2.6.15-1-em64t-p4-smp, ieee80211softmac-modules-2.6.15-1-em64t-p4-smp +Recommends: bcm43xx-fwcutter +Description: Broadcom 43xx Wireless LAN driver module for Linux 2.6.15-1-em64t-p4-smp + This package contains the kernel module for the Broadcom 43xx Wireless LAN + driver + . + This package contains the compiled kernel module for 2.6.15-1-em64t-p4-smp + Package: bcm43xx-source Architecture: all Depends: module-assistant, debhelper (>>4.0.0), make, bzip2

