Re: [OpenWrt-Devel] [PATCH] Set default arch for ARM CPUs.

2011-02-15 Thread Imre Kaloz
On Tue, 15 Feb 2011 22:45:26 +0100, Felix Fietkau wrote: On 2011-02-15 10:12 PM, Jochen Friedrich wrote: In this case we should convert the ifneq contructs in rules.mk, as well, to make sure each arch is compiled with the correctly configured compiler: ifneq ($(findstring -march=armv4,$(TARGE

Re: [OpenWrt-Devel] [PATCH] base-files: librt should depend on libpthread, not the other way around

2011-02-15 Thread Felix Fietkau
On 2011-02-16 3:30 AM, Mark Mentovai wrote: > base-files: librt should depend on libpthread, not the other way around > > In uClibc 0.9.32 as well as recent versions of glibc and eglibc, librt > depends on libpthread. > > Signed-off-by: Mark Mentovai Applied in r25548, thanks. __

[OpenWrt-Devel] [PATCH] base-files: librt should depend on libpthread, not the other way around

2011-02-15 Thread Mark Mentovai
base-files: librt should depend on libpthread, not the other way around In uClibc 0.9.32 as well as recent versions of glibc and eglibc, librt depends on libpthread. Signed-off-by: Mark Mentovai --- Index: package/base-files/Makefile

Re: [OpenWrt-Devel] [PATCH] Set default arch for ARM CPUs.

2011-02-15 Thread Felix Fietkau
On 2011-02-15 10:12 PM, Jochen Friedrich wrote: > In this case we should convert the ifneq contructs in rules.mk, as > well, to make sure each arch is compiled with the correctly > configured compiler: > > ifneq ($(findstring -march=armv4,$(TARGET_OPTIMIZATION)),) >ARCH_SUFFIX:=_v4 > endif >

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Philip Prindeville
On 2/15/11 1:20 PM, Felix Fietkau wrote: On 2011-02-15 10:11 PM, Philip Prindeville wrote: On 2/15/11 12:18 PM, Felix Fietkau wrote: On 2011-02-15 8:09 PM, Philip Prindeville wrote: On 2/15/11 2:13 AM, Ferenc Wagner wrote: Peter Wagnerwrites: - [ -n "$leasefile" ]&&[ -e "$leas

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Felix Fietkau
On 2011-02-15 10:11 PM, Philip Prindeville wrote: > On 2/15/11 12:18 PM, Felix Fietkau wrote: >> On 2011-02-15 8:09 PM, Philip Prindeville wrote: >>> On 2/15/11 2:13 AM, Ferenc Wagner wrote: Peter Wagner writes: > - [ -n "$leasefile" ]&& [ -e "$leasefile" ] || touch "$leasef

Re: [OpenWrt-Devel] [PATCH] Set default arch for ARM CPUs.

2011-02-15 Thread Jochen Friedrich
Hi Felix, +GCC_ARCH:= +ifneq ($(findstring -march=armv4,$(TARGET_OPTIMIZATION)),) + GCC_ARCH:=armv4 +endif +ifneq ($(findstring -march=armv4t,$(TARGET_OPTIMIZATION)),) + GCC_ARCH:=armv4t +endif +ifneq ($(findstring -march=armv5t,$(TARGET_OPTIMIZATION)),) + GCC_ARCH:=armv5t +endif +ifneq ($(fi

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Philip Prindeville
On 2/15/11 12:18 PM, Felix Fietkau wrote: On 2011-02-15 8:09 PM, Philip Prindeville wrote: On 2/15/11 2:13 AM, Ferenc Wagner wrote: Peter Wagner writes: - [ -n "$leasefile" ]&& [ -e "$leasefile" ] || touch "$leasefile" + [ -n "$leasefile" ]&& ( [ -e "$leasefile" ] || touch "

Re: [OpenWrt-Devel] [PATCH] Set default arch for ARM CPUs.

2011-02-15 Thread Felix Fietkau
On 2011-02-15 6:36 PM, Jochen Friedrich wrote: > We use different toolchain directories for different > ARM archs, so we should set the default arch of gcc > to reflect this. > > This enables EABI support for armv4 CPUs. > > Signed-off-by: Jochen Friedrich > --- > toolchain/gcc/common.mk | 18

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Felix Fietkau
On 2011-02-15 8:09 PM, Philip Prindeville wrote: > On 2/15/11 2:13 AM, Ferenc Wagner wrote: >> Peter Wagner writes: >> >>> - [ -n "$leasefile" ]&& [ -e "$leasefile" ] || touch "$leasefile" >>> + [ -n "$leasefile" ]&& ( [ -e "$leasefile" ] || touch "$leasefile" ) >> Looks like this is

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Peter Wagner
Another version of the patch was allready commited - look here https://dev.openwrt.org/changeset/25540 Am Dienstag, 15. Februar 2011, 20:09:44 schrieb Philip Prindeville: > On 2/15/11 2:13 AM, Ferenc Wagner wrote: > > Peter Wagner writes: > >> - [ -n "$leasefile" ]&& [ -e "$leasefile" ] |

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Philip Prindeville
On 2/15/11 2:13 AM, Ferenc Wagner wrote: Peter Wagner writes: - [ -n "$leasefile" ]&& [ -e "$leasefile" ] || touch "$leasefile" + [ -n "$leasefile" ]&& ( [ -e "$leasefile" ] || touch "$leasefile" ) Looks like this is fixed already by commit 15fba44a (but see point 6 of http://my

[OpenWrt-Devel] [PATCH] Set default arch for ARM CPUs.

2011-02-15 Thread Jochen Friedrich
We use different toolchain directories for different ARM archs, so we should set the default arch of gcc to reflect this. This enables EABI support for armv4 CPUs. Signed-off-by: Jochen Friedrich --- toolchain/gcc/common.mk | 18 ++ 1 files changed, 18 insertions(+), 0 deletio

[OpenWrt-Devel] [PATCH] bcm63xx/MAGIC board support

2011-02-15 Thread Laurento Frittella
I wrote a patch to add 96348SV board (aka MAGIC) support to trunk. In my case I've found it in a Telsey "Alice W-Gate" router, fairly common (in the past) in Italy. I used the board definition (GPIOs, leds, ...) from the Broadcom GPL-2 relased code (here is a mirror: http://beghiero.myftp.org/s

Re: [OpenWrt-Devel] [PATCH] Fix EABI support for armv4 CPUs.

2011-02-15 Thread Jochen Friedrich
Hi, +ifneq ($(findstring -march=armv4,$(TARGET_OPTIMIZATION)),) + GCC_CONFIGURE+= \ + --with-arch=armv4 +endif Unfortunately, this has a flaw as this matches armv4t, as well. A new patch will follow. Thanks, Jochen ___ openwrt-devel m

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread edgar . soldin
i see to reflect the date change the file is copied to jffs.. makes sense, so the touch alone is more expensive due to the nature of the overlaying fs :) .. thanks ede On 15.02.2011 12:50, Peter Wagner wrote: > no its not about what is more expensive but someone in the development > channel >

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Peter Wagner
no its not about what is more expensive but someone in the development channel ment, that a touch on a squashfs with jffs overlay will create a new file on the jffs overlay even when the file existed on the squashfs partition... Am Dienstag, 15. Februar 2011, 11:20:47 schrieb edgar.sol...@web.de

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread edgar . soldin
On 15.02.2011 11:13, Ferenc Wagner wrote: > Peter Wagner writes: > >> - [ -n "$leasefile" ] && [ -e "$leasefile" ] || touch "$leasefile" >> + [ -n "$leasefile" ] && ( [ -e "$leasefile" ] || touch "$leasefile" ) > > Looks like this is fixed already by commit 15fba44a (but see point 6

Re: [OpenWrt-Devel] dnsmasq leasefile fix

2011-02-15 Thread Ferenc Wagner
Peter Wagner writes: > - [ -n "$leasefile" ] && [ -e "$leasefile" ] || touch "$leasefile" > + [ -n "$leasefile" ] && ( [ -e "$leasefile" ] || touch "$leasefile" ) Looks like this is fixed already by commit 15fba44a (but see point 6 of http://mywiki.wooledge.org/BashPitfalls and the r