diff options
author | Don Mullis <dwm@meer.net> | 2007-01-04 13:14:52 -0500 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-05-02 14:58:09 -0400 |
commit | dd7e54ade8f515ec38d5dc2129705352e2296f8e (patch) | |
tree | d40d92a8970b4d5b791add4ca640df8a08837617 | |
parent | 2a11665945d510e1a4df8dc44dc3668b01945ade (diff) |
kbuild: move tags from ARCH and include/ ahead of drivers
Move tags extracted from the ARCH and include/ sub-trees ahead of
those from device drivers, so that the former will appear first
during searches.
Saves user time during interactive searches for certain patterns
that happen to find unwanted matches in driver files.
Example in emacs:
"M-x find-tag PAGE_SIZE"
"M-1 M-." (repeated until definition from asm-i386/page.h appears)
Signed-off-by: Don Mullis <dwm@meer.net>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r-- | Makefile | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1278,10 +1278,7 @@ endif | |||
1278 | ALLSOURCE_ARCHS := $(ARCH) | 1278 | ALLSOURCE_ARCHS := $(ARCH) |
1279 | 1279 | ||
1280 | define find-sources | 1280 | define find-sources |
1281 | ( find $(__srctree) $(RCS_FIND_IGNORE) \ | 1281 | ( for ARCH in $(ALLSOURCE_ARCHS) ; do \ |
1282 | \( -name include -o -name arch \) -prune -o \ | ||
1283 | -name $1 -print; \ | ||
1284 | for ARCH in $(ALLSOURCE_ARCHS) ; do \ | ||
1285 | find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \ | 1282 | find $(__srctree)arch/$${ARCH} $(RCS_FIND_IGNORE) \ |
1286 | -name $1 -print; \ | 1283 | -name $1 -print; \ |
1287 | done ; \ | 1284 | done ; \ |
@@ -1295,7 +1292,11 @@ define find-sources | |||
1295 | -name $1 -print; \ | 1292 | -name $1 -print; \ |
1296 | done ; \ | 1293 | done ; \ |
1297 | find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ | 1294 | find $(__srctree)include/asm-generic $(RCS_FIND_IGNORE) \ |
1298 | -name $1 -print ) | 1295 | -name $1 -print; \ |
1296 | find $(__srctree) $(RCS_FIND_IGNORE) \ | ||
1297 | \( -name include -o -name arch \) -prune -o \ | ||
1298 | -name $1 -print; \ | ||
1299 | ) | ||
1299 | endef | 1300 | endef |
1300 | 1301 | ||
1301 | define all-sources | 1302 | define all-sources |