Re: [OpenWrt-Devel] [PATCH] include/kernel.mk - better search for ARCH

2015-07-30 Thread Alexey Brodkin
Hi Felix, On Thu, 2015-07-30 at 12:55 +0200, Felix Fietkau wrote: > On 2015-07-30 10:41, Alexey Brodkin wrote: > > If "findstring" is used without leading and trailing spaces unexpected > > matches > > may happen. For example consider ARC=arc then "findstring $(ARCH)" will > > report a false matc

Re: [OpenWrt-Devel] [PATCH] include/kernel.mk - better search for ARCH

2015-07-30 Thread Felix Fietkau
On 2015-07-30 10:41, Alexey Brodkin wrote: > If "findstring" is used without leading and trailing spaces unexpected matches > may happen. For example consider ARC=arc then "findstring $(ARCH)" will > report a false match with "aarch64". > > But "findstring $ARCH " (note trailing space) will correc

[OpenWrt-Devel] [PATCH] include/kernel.mk - better search for ARCH

2015-07-30 Thread Alexey Brodkin
If "findstring" is used without leading and trailing spaces unexpected matches may happen. For example consider ARC=arc then "findstring $(ARCH)" will report a false match with "aarch64". But "findstring $ARCH " (note trailing space) will correctly skip matches for both "aarch64" and "aarch64_be".