Re: [OpenWrt-Devel] [PATCH] Debug rules for interrogating Makefile values

2010-10-09 Thread Thomas Monjalon
Hello, I think it's a good idea for Makefile debugging. Why not use the Makefile syntax $(if x,T,F) instead of the shell condition ? Philip Prindeville wrote: > +var.%: > + @if [ "$(origin $*)" = "undefined" ]; then \ > + echo "Undefined!">&2 ; \ > + else \ > + e

Re: [OpenWrt-Devel] Seeing backtrace on boot in ioremap_caller

2010-10-09 Thread Jan Willies
2010/10/9 Philip Prindeville > I'm seeing the following when booting: > > [ cut here ] > WARNING: at arch/x86/mm/ioremap.c:148 __ioremap_caller+0xcc/0x2b0() > Modules linked in: > Pid: 1, comm: swapper Not tainted 2.6.32.24 #1 > Call Trace: > [] ? warn_slowpath_common+0x

[OpenWrt-Devel] Strange usb-storage behaviour

2010-10-09 Thread Michael Heimpold
Hi, I'm trying to get OpenWRT running on a AT91 ARM926-based device with 2 usb host ports. After booting, all important drivers get loaded: ohci_hcd and usb-storage. Before powering on the system, an usb flash drive is connected to one usb port. --snip-- Press the [f] key and hit [enter] to enter

[OpenWrt-Devel] Seeing backtrace on boot in ioremap_caller

2010-10-09 Thread Philip Prindeville
I'm seeing the following when booting: [ cut here ] WARNING: at arch/x86/mm/ioremap.c:148 __ioremap_caller+0xcc/0x2b0() Modules linked in: Pid: 1, comm: swapper Not tainted 2.6.32.24 #1 Call Trace: [] ? warn_slowpath_common+0x60/0x90 [] ? __ioremap_caller+0xcc/0x2b0 []

[OpenWrt-Devel] [PATCH] --help for /sbin/wifi

2010-10-09 Thread Sebastian Philipp
Adds a --help option to /sbin/wifi. I didn't know how to use /sbin/wifi Signed-off-by: Sebastian Philipp --- Index: base-files/files/sbin/wifi === --- base-files/files/sbin/wifi (Revision 23371) +++ base-files/files/sbin/wifi (Ar

[OpenWrt-Devel] Resend: [Patch v2] Geos -- new x86 subtarget definition

2010-10-09 Thread Philip Prindeville
This defines the Geos platform from Traverse Technologies in AUS. This is a Geode LX800 with 512MB of DDR400 memory, 2 8139CP interfaces, 2 Solos ADSL2+ interfaces, USB, serial console, CF slot, and miniPCI slot. I'll add support for the LEDs separately. Signed-off-by: Philip A. Prindeville -

[OpenWrt-Devel] Resend: [PATCH] Make ModuleAutoLoad more readable

2010-10-09 Thread Philip Prindeville
When doing a build with tracing on, the expansion of ModuleAutoLoad can get a little hairy. Using intermediate variables to name the arguments makes tracing more readable. One side effect is that if an argument is accidentally left out, we won't get all of the parameters shifted one over thank

[OpenWrt-Devel] Resend: [PATCH] Debug rules for interrogating Makefile values

2010-10-09 Thread Philip Prindeville
These simple rules allow you to peek inside the state of "make" for derived values. Example: $ make val.TARGET_OPTIMIZATION V=1 make[1] val.TARGET_OPTIMIZATION -Os -march=k6-2 -fno-align-functions -fno-align-loops -fno-align-jumps -fno-align-labels $ make var.TARGET_OPTIMIZATION V=1 make[1] v

Re: [OpenWrt-Devel] [PATCH] silence error when package has no patches

2010-10-09 Thread Alan Post
On Sat, Oct 09, 2010 at 02:35:45AM -0300, Werner Almesberger wrote: > Alan Post wrote: > > - @if [ -d "$(2)" -a "(ls $(2) | wc -l)" -gt 0 ]; then \ > > + @if [ -d "$(2)" -a "(ls $(2) 2>/dev/null | wc -l)" -gt 0 ]; then \ > > Why not fix the original logic and use [ X ] && [ Y ] inste