Hi there,

broadcom-diag package fails to compile with kernel 3.1.2 (current stable).
got around this problem by changing package/broadcom-diag/src/gpio.h.
Tried compiling this patch with kernel 3.0.9 (current trunk selection?) and
it compiles fine as well, so it seems backwards compatible.

########

make[3] -C package/broadcom-diag compile
make[4]: Entering directory
`/home/bm/asus/trunk/build_dir/linux-brcm47xx/linux-3.1.2'
  CC [M]  /home/bm/asus/trunk/build_dir/linux-brcm47xx/broadcom-diag/diag.o
In file included from
/home/bm/asus/trunk/build_dir/linux-brcm47xx/broadcom-diag/diag.c:37:0:
/home/bm/asus/trunk/build_dir/linux-brcm47xx/broadcom-diag/gpio.h:7:21:
fatal error: bcm47xx.h: No such file or directory
compilation terminated.
make[5]: ***
[/home/bm/asus/trunk/build_dir/linux-brcm47xx/broadcom-diag/diag.o] Error 1
make[4]: ***
[_module_/home/bm/asus/trunk/build_dir/linux-brcm47xx/broadcom-diag] Error 2
make[4]: Leaving directory
`/home/bm/asus/trunk/build_dir/linux-brcm47xx/linux-3.1.2'
make[3]: ***
[/home/bm/asus/trunk/build_dir/linux-brcm47xx/broadcom-diag/.built] Error 2
make[2]: *** [package/broadcom-diag/compile] Error 2
make[1]: ***
[/home/bm/asus/trunk/staging_dir/target-mipsel_uClibc-0.9.32/stamp/.package_compile]
Error 2
make -r world: build failed. Please re-run make with V=99 to see what's
going on
make: *** [world] Error 1

############
--- gpio.h      2011-11-24 14:55:16.493740886 +0000
+++ gpio.h.312  2011-11-24 14:54:18.329161013 +0000
@@ -4,7 +4,7 @@
 #include <linux/interrupt.h>
 #include <linux/ssb/ssb_embedded.h>
 #include <linux/gpio.h>
-#include <bcm47xx.h>
+#include <asm/mach-bcm47xx/bcm47xx.h>

 static inline u32 gpio_in(void)
 {
############

Signed-off: Bruno Silva <[email protected]>
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to