This patch allow the package to build on amd64 as well. Here it
produces the following:
20K ieee80211softmac-headers-2.6.15-1_20060114-4_all.deb
40K ieee80211softmac-modules-2.6.15-1-amd64-generic_20060114-4_amd64.deb
40K ieee80211softmac-modules-2.6.15-1-amd64-k8_20060114-4_amd64.deb
44K ieee80211softmac-modules-2.6.15-1-amd64-k8-smp_20060114-4_amd64.deb
40K ieee80211softmac-modules-2.6.15-1-em64t-p4_20060114-4_amd64.deb
44K ieee80211softmac-modules-2.6.15-1-em64t-p4-smp_20060114-4_amd64.deb
68K ieee80211softmac-source_20060114-4_all.deb

No bad warnings this time, just some unused thing.

Roberto.
--- debian/rules	2006-01-27 16:30:11.000000000 +0100
+++ debian/rules.patch	2006-01-27 16:28:50.000000000 +0100
@@ -77,7 +77,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:
@@ -107,6 +108,14 @@
 		$(MAKE) clean; \
 	done
 endif
+ifeq "$(ARCH)" "amd64"
+	for i in $(AMD64_FLAVOURS); do \
+		KDIR=/usr/src/linux-headers-$(KERNEL)-$$i $(MAKE); \
+		mv net/ieee80211/softmac/$(sname).ko net/ieee80211/softmac/$(sname).ko-$$i; \
+		for j in net/ieee80211/*.ko; do mv $$j $$j-$$i; done; \
+		$(MAKE) clean; \
+	done
+endif
 
 	touch build-arch-stamp
 
@@ -208,7 +217,17 @@
 		done; \
 	done
 endif
-	
+ifeq "$(ARCH)" "amd64"
+	for i in $(AMD64_FLAVOURS); do \
+		install -D -m644 net/ieee80211/softmac/$(sname).ko-$$i \
+			$(CURDIR)/debian/$(PACKAGE)-$(KERNEL)-$$i/lib/modules/$(KERNEL)-$$i/kernel/drivers/net/$(sname)/$(sname).ko; \
+		for j in ieee80211 ieee80211_crypt ieee80211_crypt_wep ieee80211_crypt_ccmp ieee80211_crypt_tkip; do \
+			install -D -m644 net/ieee80211/$$j.ko-$$i \
+				$(CURDIR)/debian/$(PACKAGE)-$(KERNEL)-$$i/lib/modules/$(KERNEL)-$$i/kernel/net/ieee80211/$$j.ko; \
+		done; \
+	done
+endif
+
 	for j in include/net/*; do \
 		install -D -m644 $$j \
 			$(CURDIR)/debian/$(sname)-headers-$(KERNEL)/usr/src/linux-headers-$(KERNEL)/$$j; \
--- debian/control	2006-01-27 16:30:16.000000000 +0100
+++ debian/control.patch	2006-01-27 16:34:16.000000000 +0100
@@ -58,7 +58,7 @@
  Wireless LAN stack.
  .
  This package contains the compiled kernel module for 2.6.15-1-k7
- 
+
 Package: ieee80211softmac-modules-2.6.15-1-k7-smp
 Architecture: i386
 Depends: linux-image-2.6.15-1-k7-smp
@@ -67,7 +67,52 @@
  Wireless LAN stack.
  .
  This package contains the compiled kernel module for 2.6.15-1-k7-smp
- 
+
+Package: ieee80211softmac-modules-2.6.15-1-amd64-k8
+Architecture: amd64
+Depends: linux-image-2.6.15-1-amd64-k8
+Description: IEEE 802.11 SoftMAC kernel module for Linux 2.6.15-1-amd64-k8
+ This package contains the kernel module for the IEEE 802.11 SoftMAC
+ Wireless LAN stack.
+ .
+ This package contains the compiled kernel module for 2.6.15-1-amd64-k8
+
+Package: ieee80211softmac-modules-2.6.15-1-amd64-k8-smp
+Architecture: amd64
+Depends: linux-image-2.6.15-1-amd64-k8-smp
+Description: IEEE 802.11 SoftMAC kernel module for Linux 2.6.15-1-amd64-k8-smp
+ This package contains the kernel module for the IEEE 802.11 SoftMAC
+ Wireless LAN stack.
+ .
+ This package contains the compiled kernel module for 2.6.15-1-amd64-k8-smp
+
+Package: ieee80211softmac-modules-2.6.15-1-em64t-p4
+Architecture: amd64
+Depends: linux-image-2.6.15-1-em64t-p4
+Description: IEEE 802.11 SoftMAC kernel module for Linux 2.6.15-1-em64t-p4
+ This package contains the kernel module for the IEEE 802.11 SoftMAC
+ Wireless LAN stack.
+ .
+ This package contains the compiled kernel module for 2.6.15-1-em64t-p4
+
+Package: ieee80211softmac-modules-2.6.15-1-em64t-p4-smp
+Architecture: amd64
+Depends: linux-image-2.6.15-1-em64t-p4-smp
+Description: IEEE 802.11 SoftMAC kernel module for Linux 2.6.15-1-em64t-p4-smp
+ This package contains the kernel module for the IEEE 802.11 SoftMAC
+ Wireless LAN stack.
+ .
+ This package contains the compiled kernel module for 2.6.15-1-em64t-p4-smp
+
+Package: ieee80211softmac-modules-2.6.15-1-amd64-generic
+Architecture: amd64
+Depends: linux-image-2.6.15-1-amd64-generic
+Description: IEEE 802.11 SoftMAC kernel module for Linux 2.6.15-1-amd64-generic
+ This package contains the kernel module for the IEEE 802.11 SoftMAC
+ Wireless LAN stack.
+ .
+ This package contains the compiled kernel module for 2.6.15-1-amd64-generic
+
 Package: ieee80211softmac-headers-2.6.15-1
 Architecture: all
 Description: IEEE 802.11 SoftMAC headers for Linux 2.6.15-1

Reply via email to