Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6

* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
scripts/extract-ikconfig: add xz compression support
kbuild: add GNU GLOBAL tags generation
setlocalversion: update mercurial tag parsing

+27 -12
+4 -3
Makefile
··· 421 421 # of make so .config is not included in this case either (for *config). 422 422 423 423 no-dot-config-targets := clean mrproper distclean \ 424 - cscope TAGS tags help %docs check% coccicheck \ 424 + cscope gtags TAGS tags help %docs check% coccicheck \ 425 425 include/linux/version.h headers_% \ 426 426 kernelversion %src-pkg 427 427 ··· 1135 1135 MRPROPER_DIRS += include/config usr/include include/generated 1136 1136 MRPROPER_FILES += .config .config.old .version .old_version \ 1137 1137 include/linux/version.h \ 1138 - Module.symvers tags TAGS cscope* 1138 + Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS 1139 1139 1140 1140 # clean - Delete most, but leave enough to build external modules 1141 1141 # ··· 1222 1222 @echo ' modules_prepare - Set up for building external modules' 1223 1223 @echo ' tags/TAGS - Generate tags file for editors' 1224 1224 @echo ' cscope - Generate cscope index' 1225 + @echo ' gtags - Generate GNU GLOBAL index' 1225 1226 @echo ' kernelrelease - Output the release version string' 1226 1227 @echo ' kernelversion - Output the version stored in Makefile' 1227 1228 @echo ' headers_install - Install sanitised kernel headers to INSTALL_HDR_PATH'; \ ··· 1381 1380 quiet_cmd_tags = GEN $@ 1382 1381 cmd_tags = $(CONFIG_SHELL) $(srctree)/scripts/tags.sh $@ 1383 1382 1384 - tags TAGS cscope: FORCE 1383 + tags TAGS cscope gtags: FORCE 1385 1384 $(call cmd,tags) 1386 1385 1387 1386 # Scripts to check various things for consistency
+5 -4
scripts/extract-ikconfig
··· 56 56 dump_config "$img" 57 57 58 58 # That didn't work, so retry after decompression. 59 - try_decompress '\037\213\010' xy gunzip 60 - try_decompress 'BZh' xy bunzip2 61 - try_decompress '\135\0\0\0' xxx unlzma 62 - try_decompress '\211\114\132' xy 'lzop -d' 59 + try_decompress '\037\213\010' xy gunzip 60 + try_decompress '\3757zXZ\000' abcde unxz 61 + try_decompress 'BZh' xy bunzip2 62 + try_decompress '\135\0\0\0' xxx unlzma 63 + try_decompress '\211\114\132' xy 'lzop -d' 63 64 64 65 # Bail out: 65 66 echo "$me: Cannot find kernel config." >&2
+9 -5
scripts/setlocalversion
··· 86 86 87 87 # Check for mercurial and a mercurial repo. 88 88 if test -d .hg && hgid=`hg id 2>/dev/null`; then 89 - tag=`printf '%s' "$hgid" | cut -s -d' ' -f2` 90 - 91 - # Do we have an untagged version? 92 - if [ -z "$tag" -o "$tag" = tip ]; then 93 - id=`printf '%s' "$hgid" | sed 's/[+ ].*//'` 89 + # Do we have an tagged version? If so, latesttagdistance == 1 90 + if [ "`hg log -r . --template '{latesttagdistance}'`" == "1" ]; then 91 + id=`hg log -r . --template '{latesttag}'` 94 92 printf '%s%s' -hg "$id" 93 + else 94 + tag=`printf '%s' "$hgid" | cut -d' ' -f2` 95 + if [ -z "$tag" -o "$tag" = tip ]; then 96 + id=`printf '%s' "$hgid" | sed 's/[+ ].*//'` 97 + printf '%s%s' -hg "$id" 98 + fi 95 99 fi 96 100 97 101 # Are there uncommitted changes?
+9
scripts/tags.sh
··· 114 114 cscope -b -f cscope.out 115 115 } 116 116 117 + dogtags() 118 + { 119 + all_sources | gtags -f - 120 + } 121 + 117 122 exuberant() 118 123 { 119 124 all_sources | xargs $1 -a \ ··· 190 185 case "$1" in 191 186 "cscope") 192 187 docscope 188 + ;; 189 + 190 + "gtags") 191 + dogtags 193 192 ;; 194 193 195 194 "tags")