]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
kernel: fix ssb modules build on arm.
authorArne Fitzenreiter <arne_f@ipfire.org>
Fri, 18 Nov 2011 06:59:19 +0000 (07:59 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 18 Nov 2011 06:59:19 +0000 (07:59 +0100)
config/kernel/kernel.config.armv5tel-ipfire-kirkwood
config/kernel/kernel.config.armv5tel-ipfire-versatile
lfs/compat-wireless
lfs/linux
src/patches/linux-2.6.32.45_align_ssb_modtable_32bit_boundary.patch [new file with mode: 0644]

index 13a80e5fdfbe8a1d778918d1a4c65b0a3590fced..bddf86bc502a654b13d4131097b98375f50da123 100644 (file)
@@ -1308,7 +1308,7 @@ CONFIG_NET_PCI=y
 CONFIG_PCNET32=m
 CONFIG_AMD8111_ETH=m
 CONFIG_ADAPTEC_STARFIRE=m
-# CONFIG_B44 is not set
+CONFIG_B44=m
 CONFIG_FORCEDETH=m
 # CONFIG_FORCEDETH_NAPI is not set
 CONFIG_E100=m
index 487e5e72cc7099d0a69729f7393fd23bb8c0daf3..6bdf4c5d3d199373d06ff46385f01687bb7a552e 100644 (file)
@@ -1294,7 +1294,7 @@ CONFIG_NET_PCI=y
 CONFIG_PCNET32=m
 CONFIG_AMD8111_ETH=m
 CONFIG_ADAPTEC_STARFIRE=m
-# CONFIG_B44 is not set
+CONFIG_B44=m
 CONFIG_FORCEDETH=m
 # CONFIG_FORCEDETH_NAPI is not set
 CONFIG_E100=m
index 27fb02bdca7f1b41105f0d9f46c9f197faa4f091..a8902f1c2ad6b4e8f5bac1d7438a24e6352f58c4 100644 (file)
@@ -91,8 +91,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
 
 ifeq "$(MACHINE_TYPE)" "arm"
        # B43+B44 driver doesn't build on arm
-       cd $(DIR_APP) && sed -i -e "s|CONFIG_B43=m||g" config.mk
-       cd $(DIR_APP) && sed -i -e "s|CONFIG_B44=m||g" config.mk
+#      cd $(DIR_APP) && sed -i -e "s|CONFIG_B43=m||g" config.mk
+#      cd $(DIR_APP) && sed -i -e "s|CONFIG_B44=m||g" config.mk
        # Add libartas uAP driver
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/compat-wireless-3.0-libertas_uap.patch
        cd $(DIR_APP)&& echo CONFIG_LIBERTAS_UAP=m >> config.mk
index 8326023ed36f17187e95e074f7261787ad9cb5b2..b8d0dd8bec2d632468bf0bb614f2f929d61f92e6 100644 (file)
--- a/lfs/linux
+++ b/lfs/linux
@@ -168,6 +168,9 @@ ifeq "$(KCFG)" "-kirkwood"
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.45-arm_kirkwood_setups.patch
 endif
 
+ifeq "$(MACHINE_TYPE)" "arm"
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.45_align_ssb_modtable_32bit_boundary.patch
+endif
 
 ifeq "$(HEADERS)" "1"
        # Install the header files
diff --git a/src/patches/linux-2.6.32.45_align_ssb_modtable_32bit_boundary.patch b/src/patches/linux-2.6.32.45_align_ssb_modtable_32bit_boundary.patch
new file mode 100644 (file)
index 0000000..e9b8b82
--- /dev/null
@@ -0,0 +1,12 @@
+diff -Naur linux-2.6.32.45.org/include/linux/mod_devicetable.h linux-2.6.32.45/include/linux/mod_devicetable.h
+--- linux-2.6.32.45.org/include/linux/mod_devicetable.h        2011-08-16 03:57:37.000000000 +0200
++++ linux-2.6.32.45/include/linux/mod_devicetable.h    2011-11-17 15:07:43.366023632 +0100
+@@ -364,7 +364,7 @@
+       __u16   vendor;                 /* Vendor or SDIO_ANY_ID */
+       __u16   device;                 /* Device ID or SDIO_ANY_ID */
+       kernel_ulong_t driver_data      /* Data private to the driver */
+-              __attribute__((aligned(sizeof(kernel_ulong_t))));
++              __attribute__((aligned(sizeof(__u32))));  /* align to 32bit boundary */
+ };
+ /* SSB core, see drivers/ssb/ */