21 Mar, 2011
1 commit
-
* '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
15 Jan, 2011
1 commit
-
GNU GLOBAL (http://www.gnu.org/software/global/) is a source code tagging system
It is really cheap to support it in kbuild system.Signed-off-by: Jianbin Kang
Signed-off-by: Michal Marek
11 Jan, 2011
1 commit
-
* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
Documentation/kbuild: add info that 'choice' can have a symbol name
kbuild: add numeric --set-val option to scripts/config
headers_check: Fix warning text
headers_check: better search for functions in headers
scripts/coccinelle: update for compatability with Coccinelle 0.2.4
tags: put function prototypes back!
Kconfig: fix single letter command in scripts/config
gitignore: add scripts/recordmcount
02 Dec, 2010
2 commits
-
Make tags find the trace-event definitions
Acked-by: WANG Cong
Signed-off-by: Peter Zijlstra
LKML-Reference:
Signed-off-by: Steven Rostedt -
Commit 7db86dc (ctags: usability fix) removed function prototypes from
tags file claiming "It makes no real sense to include function
prototypes".
But it is useful for quickly determining which header file developer
needs to include to fix compilation.Now if someone wants to remove forward declarations (which I agree are
baggage), write a postprocessing script.Signed-off-by: Alexey Dobriyan
Signed-off-by: Uwe Kleine-König
Signed-off-by: Michal Marek
08 Mar, 2010
1 commit
-
This reverts commit eb8f844c0a41c4529a7d06b7801296eca9ae67aa. Ian
Campbell writes:
> I keep my kernel source tree on a more powerful build box where I run my
> builds etc (including "make cscope") but run my editor from my
> workstation with an NFS mount to the source. This worked fine for me
> using relative paths for cscope. Using absolute paths in cscope breaks
> this previously working setup because the root path is not the same on
> both systems. I guess this is similar to moving the source tree around.
>
> Without wanting to start a flamewar it really sounds to me like we are
> working around a vim (or cscope) bug here, emacs with cscope bindings
> works fine in this configuration.Given that absolute paths can be forced by make O=. cscope, change the
default back to relative paths.Ian Campbell
Cc: Daniel Vetter
Signed-off-by: Michal Marek
03 Mar, 2010
2 commits
-
make ALLSOURCE_ARCHS=all tags
- Document this in kbuild.txt
Without this change you have to type each arch separately.Signed-off-by: John Kacur
Signed-off-by: Michal Marek -
Signed-off-by: John Kacur
Signed-off-by: Michal Marek
22 Feb, 2010
1 commit
-
$ make mrproper
$ make tags
GEN tags
find: `arch/x86_64/': No such file or directoryCaused by commit f81b1be (tags: include headers before source files)
Cc: Guennadi Liakhovetski
Acked-by: WANG Cong
Signed-off-by: Michal Marek
17 Feb, 2010
1 commit
-
Currently looking up a structure definition in TAGS / tags takes one to
one of multiple "static struct X" definitions in arch sources, which makes
it for many structs practically impossible to get to the required header.
This patch changes the order of sources being tagged to first scan
architecture includes, then the top-level include/ directory, and only
then the rest. It also takes into account, that many architectures have
more than one include directory, i.e., not only arch/$ARCH/include, but
also arch/$ARCH/mach-X/include etc.Signed-off-by: Guennadi Liakhovetski
Reviewed-by: WANG Cong
[mmarek@suse.cz: fix 'var+=text' bashism]
Signed-off-by: Michal Marek
12 Dec, 2009
1 commit
-
Cscope doesn't hadle relative paths when cscope.out is not in $PWD. Use
absolute paths when generating cscope.files, which seems to be the
recommended way to generate cscope.out, anyway (at least according to
cscope.sf.net). The speed and size differences are minimal, the only
drawback is that the database needs to be regenerated if the source
directory is moved.[mmarek: fixed for O= builds, modified changelog]
Signed-off-by: Daniel Vetter
Signed-off-by: Michal Marek
20 Sep, 2009
1 commit
-
The tag file generated by the tags.sh script has some issue.
First:
The identifier-list miss the
DEFINE_TRACE,EXPORT_TRACEPOINT_SYMBOL,EXPORT_TRACEPOINT_SYMBOL_GPL
special handling, which can result in a wrong tag, not to jump to the
right variable definition or function implementation.Second:
It makes no real sense to include function prototypes and external and
forward variable declarations, because jumping to a tag will sometimes
go to this and not to the real definition and implementation. The information
about the declaration is still there at the definition and implementation
place.So this patch make it lot easier to navigate through the kernel source
tree using vi.Signed-off-by: Stefani Seibold
Acked-by: WANG Cong
Signed-off-by: Andrew Morton
Signed-off-by: Sam Ravnborg
01 May, 2009
1 commit
-
If a tag file is not removed before it is regenerated, the newly
generated data is appended to the old, which preserves stale data and
makes the tag file grow over time.Signed-off-by: Matt Kraai
Signed-off-by: Sam Ravnborg
15 Feb, 2009
2 commits
-
Currently, it is no longer possible to use the tags file to jump to
system call function definitions with sys_foo, because the definitions
are obscured by use of the SYSCALL_DEFINE* macros.This patch adds the appropriate option to ctags to make it see through
the macro. Also, it adds the ENTRY() work already done for Exuberant
to Emacs too.Signed-off-by: Rabin Vincent
Signed-off-by: Sam Ravnborg -
commit 4f628248a578585472e19e4cba2c604643af8c6c aka "kbuild: reintroduce
ALLSOURCE_ARCHS support for tags/cscope" breaks tags generation for
Kconfig symbols.Steps to reproduce:
make tags
vi -t PROC_FSIt should jump to 'config PROC_FS' line.
Signed-off-by: Alexey Dobriyan
Tested-by: Pete Wyckoff
Signed-off-by: Andrew Morton
Signed-off-by: Sam Ravnborg
08 Jan, 2009
1 commit
-
This patch reintroduce the ALLSOURCE_ARCHS support for tags/TAGS/
cscope targets. The Kbuild previously has this feature, but after
moving the targets into scripts/tags.sh, ALLSOURCE_ARCHS disappears.It's something like this:
$ make ALLSOURCE_ARCHS="x86 mips arm" tags cscope
Signed-off-by: Jike Song
Signed-off-by: Sam Ravnborg
03 Jan, 2009
1 commit
-
Noticed by Jike.
Reported-by: "Jike Song"
Signed-off-by: Sam Ravnborg
14 Dec, 2008
2 commits
-
Test of string equality in shells is =, not C-like ==.
Signed-off-by: Jiri Slaby
Signed-off-by: Sam Ravnborg -
- fix combining O=... and tags
- don't allow * expansion during sh function callsSigned-off-by: Jiri Slaby
[sam: use KBUILD_SRC to check if we use O=...]
Signed-off-by: Sam Ravnborg
04 Dec, 2008
1 commit
-
as they do not benefit from the make functionality.
Moving the support to a shell script has several benefits:
- The readability of the code has increased a lot
- More people is able to extend the tags support
- We see less changes to the top-level MakefileThe shell script version includes improvements from:
Alexey Dobriyan (jump to kconfig symbols)
Alexey Dobriyan (drop ./ in paths)
Ian Campbell (simplified find algorithms)This version has a few caveats:
=> It does not support ALLSOURCE_ARCHS
- it is easy to add if it is really used
=> It assumes all archs have moved to arch/$ARCH/include
- until that happens we have a few additional hits in the archsSigned-off-by: Sam Ravnborg
Cc: Alexey Dobriyan
Tested-by: Ian Campbell