include/kernel.mk - better search for ARCH
authorFelix Fietkau <nbd@openwrt.org>
Mon, 2 Nov 2015 18:12:29 +0000 (18:12 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 2 Nov 2015 18:12:29 +0000 (18:12 +0000)
commit91b95f5d8452071c016e2eeea488b1c6aa0a35d6
tree058c168b19429536a6c39b2142b712da13a47736
parentd8d35f066f612cbf2b2390c2038a485affdbdf0a
include/kernel.mk - better search for ARCH

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".

This patch is built-tested against NetGear WNDR3800.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 47359
include/kernel.mk