12 Sep, 2005

2 commits

  • Al Viro reported that sometimes silentoldconfig failed because
    output directory was missing.
    So create it unconditionally before executing conf

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • When introducing the generic asm-offsets.h support the dependency
    chain for the prepare targets was changed. All build scripts expecting
    include/asm/asm-offsets.h to be made when using the prepare target would broke.
    With the limited number of prepare targets left in arch Makefiles
    the trivial solution was to introduce a new arch specific target: archprepare

    The dependency chain looks like this now:

    prepare
    |
    +--> prepare0
    |
    +--> archprepare
    |
    +--> scripts_basic
    +--> prepare1
    |
    +---> prepare2
    |
    +--> prepare3

    So prepare 3 is processed before prepare2 etc.
    This guaantees that the asm symlink, version.h, scripts_basic
    are all updated before archprepare is processed.

    prepare0 which build the asm-offsets.h file will need the
    actions performed by archprepare.

    The head target is now named prepare, because users scripts will most
    likely use that target, but prepare-all has been kept for compatibility.
    Updated Documentation/kbuild/makefiles.txt.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

11 Sep, 2005

1 commit


10 Sep, 2005

5 commits

  • Splitting of autoconf.h requires that split-include was built before,
    and
    needs to be-re-done when split-include changes. This dependency was
    previously missing. Additionally, since autoconf.h is (suppoosed to
    be)
    generated as a side effect of executing config targets, include/linux
    should be created prior to running the respective sub-make.

    Signed-off-by: Jan Beulich
    Signed-off-by: Sam Ravnborg

    Jan Beulich
     
  • In order to maintain a more correct build number, updates to the
    version
    number should only be commited after a successful link of vmlinux, not
    before (so that errors in the link process don't lead to pointless
    increments).

    Signed-off-by: Jan Beulich
    Signed-off-by: Sam Ravnborg

    Jan Beulich
     
  • Allows to add to sparse arguments without mutilating makefiles - just
    pass CF= and they will be added to CHECKFLAGS.

    Signed-off-by: Al Viro
    Signed-off-by: Sam Ravnborg

    viro@ZenIV.linux.org.uk
     
  • Dunno if there was a conscious decision to leave it out, but if you're
    happy with adding some help text for it here's a patch against 2.6.13-mm1..

    Signed-off-by: Sam Ravnborg

    Zach Brown
     
  • Building asm-offsets.h has been moved to a seperate Kbuild file
    located in the top-level directory. This allow us to share the
    functionality across the architectures.

    The old rules in architecture specific Makefiles will die
    in subsequent patches.

    Furhtermore the usual kbuild dependency tracking is now used
    when deciding to rebuild asm-offsets.s. So we no longer risk
    to fail a rebuild caused by asm-offsets.c dependencies being touched.

    With this common rule-set we now force the same name across
    all architectures. Following patches will fix the rest.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

06 Sep, 2005

1 commit


05 Sep, 2005

1 commit

  • Running 'make clean' was quietly deleting files in Mercurial kernel
    repositories matching '.*.d', which was corrupting the tags portions of the
    repository. Spotted and fixed by several people.

    Signed-off-by: Matt Mackall
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matt Mackall
     

30 Aug, 2005

1 commit


29 Aug, 2005

1 commit


24 Aug, 2005

1 commit


11 Aug, 2005

1 commit


08 Aug, 2005

1 commit


02 Aug, 2005

1 commit


29 Jul, 2005

2 commits


27 Jul, 2005

3 commits


26 Jul, 2005

2 commits

  • kbuild failed to locate Kbuild.include.
    Teach kbuild how to find Kbuild files when using make O=...

    Signed-off-by: Sam Ravnborg
    ---

    Sam Ravnborg
     
  • Kbuild.include is a placeholder for definitions originally present in
    both the top-level Makefile and scripts/Makefile.build.
    There were a slight difference in the filechk definition, so the most videly
    used version was kept and usr/Makefile was adopted for this syntax.

    Signed-off-by: Sam Ravnborg
    ---

    Sam Ravnborg
     

25 Jul, 2005

2 commits


22 Jul, 2005

1 commit

  • A recent change to the aic scsi driver removed two defines to detect
    endianness. cpp handles undefined strings as 0. As a result, the test turned
    into #if 0 == 0 and the wrong code was selected.
    Adding -Wundef to global CFLAGS will catch such errors.

    Signed-off-by: Olaf Hering
    Signed-off-by: Sam Ravnborg

    Olaf Hering
     

18 Jul, 2005

1 commit


15 Jul, 2005

3 commits

  • It fixes the following error:

    make[1]: *** No rule to make target `include/asm', needed by `arch/alpha/kernel/asm-offsets.s'. Stop.

    Reported by:
    From: Jan Dittmer
    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • From: Andreas Gruenbacher

    We're having the following situation: There are user-space applications
    that include kernel headers directly. With a completely unconfigured
    /usr/src/linux tree, including most headers fails because essential
    files are not there:

    include/asm
    include/linux/autoconf.h
    include/linux/version.h

    So we create these files. On the other hand, we want to use
    /usr/src/linux as read-only source for building kernels or additional
    modules. Now when building a kernel with a separate output directory
    (O=), there is a check in the main makefile for the include/asm symlink.
    There is no real need for this check: if we ensure that
    $(objdir)/include/asm is always created as the patch does,
    $(srctree)/include/asm becomes irrelevant.

    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     
  • From: Keith Owens

    Make it easier to generate maps for debugging kallsyms problems.
    debug_kallsyms is only a debugging target so no help or silent mode.

    Signed-off-by: Keith Owens
    Signed-off-by: Sam Ravnborg

    Sam Ravnborg
     

14 Jul, 2005

2 commits

  • I have a single source tree which I cross compile for a couple of
    different architectures using ARHC=foo O=blah etc.

    The existing cscope target is very handy but only indexes the current
    $(ARCH), which is a pain since inevitably I'm interested in the other
    one at any given time ;-). This patch allows me to pass a list of
    architectures for cscope to index. e.g.
    make ALLSOURCE_ARCHS="i386 arm" cscope

    This change also works for etags etc, and I presume it is just as useful
    there.

    Signed-off-by: Ian Campbell
    Signed-off-by: Sam Ravnborg

    Ian Campbell
     
  • I tried the Linux Makefile 'make cscope' target, and found that the
    generated database is not compatible with 'cscope.el' under XEmacs.
    The thing is that 'cscope.el' does not allow setting the command line
    options to the 'cscope' commands it runs, and it errors with a message
    about the options not matching the ones used to generate the index.

    It turns out the cscope designers already thought of this. The
    options can be written into the "cscope.files". The included patch
    moves the "-q" and "-k" options from the 'cmd_cscope' to the
    'cmd_cscope-file', echoing them into the top of the files listing.

    Now the index is generated with the "-q" option, and when 'cscope.el'
    performs it's search, it uses that argument as well. Lookups are fast
    and everyone is happy.

    Signed-off-by: Sam Ravnborg

    Karl Hegbloom
     

13 Jul, 2005

1 commit


08 Jul, 2005

2 commits

  • Using the syntax:
    make dir/module.ko

    kbuild now allows one to build a module including the final link stage.
    This is usefull when one only wants to compile a single module and thus do
    not have to wait until a full kernel has finished compiling. Tested by:
    randy_dunlap

    Signed-off-by: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Sam Ravnborg
     
  • make O=/dir TAGS

    fails with:

    MAKE TAGS
    find: security/selinux/include: No such file or directory
    find: include: No such file or directory
    find: include/asm-i386: No such file or directory
    find: include/asm-generic: No such file or directory

    The problem is in this line:
    ifeq ($(KBUILD_OUTPUT),)

    KBUILD_OUTPUT is not defined (ever) after make reruns itself. This line is
    used in the TAGS, tags, and cscope makes.

    Signed-off-by: George Anzinger
    Cc: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    George Anzinger
     

06 Jul, 2005

1 commit


29 Jun, 2005

1 commit


26 Jun, 2005

1 commit


24 Jun, 2005

1 commit

  • Frame pointers are supposed to enable debuggers to reliably tell where a
    call comes from. That is defeated by GCC's sibling call optimization (aka
    tail recursion elimination).

    This patch turns this optimization off when compiling with frame pointers.

    Signed-Off-By: Matthias Urlichs
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthias Urlichs
     

18 Jun, 2005

1 commit