mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
[PATCH] Fix spurious error on TAGS target when missing defconfig
Not all architectures have a file named 'defconfig' (e.g. powerpc). However the make TAGS and make tags targets search such files for tags, causing an error message when they don't exist. This patch addresses the problem by instructing xargs not to run the tags program if there are no matching files. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Cc: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
585b7747d6
commit
18e39913d4
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -1321,7 +1321,7 @@ define xtags
|
||||||
--langdef=kconfig \
|
--langdef=kconfig \
|
||||||
--language-force=kconfig \
|
--language-force=kconfig \
|
||||||
--regex-kconfig='/^[[:blank:]]*config[[:blank:]]+([[:alnum:]_]+)/\1/'; \
|
--regex-kconfig='/^[[:blank:]]*config[[:blank:]]+([[:alnum:]_]+)/\1/'; \
|
||||||
$(all-defconfigs) | xargs $1 -a \
|
$(all-defconfigs) | xargs -r $1 -a \
|
||||||
--langdef=dotconfig \
|
--langdef=dotconfig \
|
||||||
--language-force=dotconfig \
|
--language-force=dotconfig \
|
||||||
--regex-dotconfig='/^#?[[:blank:]]*(CONFIG_[[:alnum:]_]+)/\1/'; \
|
--regex-dotconfig='/^#?[[:blank:]]*(CONFIG_[[:alnum:]_]+)/\1/'; \
|
||||||
|
@ -1329,7 +1329,7 @@ define xtags
|
||||||
$(all-sources) | xargs $1 -a; \
|
$(all-sources) | xargs $1 -a; \
|
||||||
$(all-kconfigs) | xargs $1 -a \
|
$(all-kconfigs) | xargs $1 -a \
|
||||||
--regex='/^[ \t]*config[ \t]+\([a-zA-Z0-9_]+\)/\1/'; \
|
--regex='/^[ \t]*config[ \t]+\([a-zA-Z0-9_]+\)/\1/'; \
|
||||||
$(all-defconfigs) | xargs $1 -a \
|
$(all-defconfigs) | xargs -r $1 -a \
|
||||||
--regex='/^#?[ \t]?\(CONFIG_[a-zA-Z0-9_]+\)/\1/'; \
|
--regex='/^#?[ \t]?\(CONFIG_[a-zA-Z0-9_]+\)/\1/'; \
|
||||||
else \
|
else \
|
||||||
$(all-sources) | xargs $1 -a; \
|
$(all-sources) | xargs $1 -a; \
|
||||||
|
|
Loading…
Reference in a new issue