08 Jun, 2019

1 commit


04 Jun, 2019

1 commit


01 Jun, 2019

1 commit

  • Recent makefile changes included an invocation of
    ./scripts/sphinx-pre-install. Unfortunately, that fails when a separate
    build directory is in use with:

    /bin/bash: ./scripts/sphinx-pre-install: No such file or directory

    Use $(srctree) to fully specify the location of this script.

    Signed-off-by: Jonathan Corbet

    Jonathan Corbet
     

31 May, 2019

2 commits

  • Since Sphinx version 1.7, it is possible to use "-jauto" in
    order to speedup documentation builds. On older versions,
    while -j was already supported, one would need to set the
    number of threads manually.

    So, if SPHINXOPTS is not provided, add -jauto, in order to
    speed up the build. That makes it *a lot* times faster than
    without -j.

    If one really wants to slow things down, it can just use:

    make SPHINXOPTS=-j1 htmldocs

    Signed-off-by: Mauro Carvalho Chehab
    [ jc: fixed perl magic to determine sphinx version ]
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     
  • Call the script every time a make docs target is selected, on
    a simplified check mode.

    With this change, the script will set two vars:

    $min_version - obtained from `needs_sphinx` var inside
    conf.py (currently, '1.3')

    $rec_version - obtained from sphinx/requirements.txt.

    With those changes, a target like "make htmldocs" will do:

    1) If no sphinx-build/sphinx-build3 is found, it will run
    the script on normal mode as before, checking for all
    system dependencies and providing install hints for the
    needed programs and will abort the build;

    2) If no sphinx-build/sphinx-build3 is found, but there is
    a sphinx_${VER}/bin/activate file, and if
    ${VER} >= $min_version (string comparation), it will
    run in full mode, and will recommend to activate the
    virtualenv. If there are multiple virtualenvs, it
    will string sort the versions, recommending the
    highest version and will abort the build;

    3) If Sphinx is detected but has a version lower than
    $min_version, it will run in full mode - with will
    recommend creating a virtual env using sphinx/requirements.txt,
    and will abort the build.

    4) If Sphinx is detected and version is lower than
    $rec_version, it will run in full mode and will
    recommend creating a virtual env using sphinx/requirements.txt.

    In this case, it **won't** abort the build.

    5) If Sphinx is detected and version is equal or righer than
    $rec_version it will return just after detecting the
    version ("quick mode"), not checking if are there any
    missing dependencies.

    Just like before, if one wants to install Sphinx from the
    distro, it has to call the script manually and use `--no-virtualenv`
    argument to get the hints for his OS:

    You should run:

    sudo dnf install -y python3-sphinx python3-sphinx_rtd_theme

    While here, add a small help for the three optional arguments
    for the script.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

02 Apr, 2019

1 commit

  • In the past, Sphinx was generating a LaTex Makefile that would
    run xelatex 3 times. Running it multiple times is needed in order
    to make the indexes right.

    However, newer versions of it runs it just once, as it expects
    the machine to use the "latexmk" build, with automatically
    detects the need for rebuilds.

    So, add a logic at the Makefile in order to detect if latexmk
    is installed. If so, it will call it.

    As an additional bonus, the output of latexmk is a little bit
    better, making easier to identify build problems.

    Signed-off-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Mauro Carvalho Chehab
     

13 Dec, 2018

1 commit

  • This adds the build infrastructure for checking DT binding schema
    documents and validating dts files using the binding schema.

    Check DT binding schema documents:
    make dt_binding_check

    Build dts files and check using DT binding schema:
    make dtbs_check

    Optionally, DT_SCHEMA_FILES can be passed in with a schema file(s) to
    use for validation. This makes it easier to find and fix errors
    generated by a specific schema.

    Currently, the validation targets are separate from a normal build to
    avoid a hard dependency on the external DT schema project and because
    there are lots of warnings generated.

    Cc: Jonathan Corbet
    Cc: Mark Rutland
    Acked-by: Masahiro Yamada
    Cc: Michal Marek
    Cc: linux-doc@vger.kernel.org
    Cc: devicetree@vger.kernel.org
    Cc: linux-kbuild@vger.kernel.org
    Signed-off-by: Rob Herring

    Rob Herring
     

13 Oct, 2017

2 commits


25 Aug, 2017

1 commit


24 Jul, 2017

1 commit


16 May, 2017

1 commit


10 Oct, 2016

1 commit

  • Move blackfin gptimers-example to samples and remove it from Documentation
    Makefile. Update samples Kconfig and Makefile to build gptimers-example.

    blackfin is the last CONFIG_BUILD_DOCSRC target in Documentation/Makefile.
    Hence this patch also includes changes to remove CONFIG_BUILD_DOCSRC from
    Makefile and lib/Kconfig.debug and updates VIDEO_PCI_SKELETON dependency
    on BUILD_DOCSRC.

    Documentation/Makefile is not deleted to avoid braking make htmldocs and
    make distclean.

    Acked-by: Michal Marek
    Acked-by: Jonathan Corbet
    Reviewed-by: Kees Cook
    Reported-by: Valentin Rothberg
    Reported-by: Paul Gortmaker
    Signed-off-by: Shuah Khan

    Shuah Khan
     

24 Sep, 2016

7 commits

  • Move pcmcia crc32hash tool from Documentation to tools/pcmcia and
    remove it from Documentation Makefile. Update location information
    for this tool. Create a new Makefile to build pcmcia. It can be built
    from top level directory or from pcmcia directory:

    Run make -C tools/pcmcia or cd tools/pcmcia; make

    Acked-by: Dominik Brodowski
    Acked-by: Greg Kroah-Hartman
    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Move laptops dslm tool to tools/laptop/dslm and remove it from
    Documentation Makefile. Update location information for this
    tool. Create a new Makefile to build dslm. It can be built
    from top level directory or from laptops directory:

    Run make -C tools/laptop/dslm or cd tools/laptop/dslm; make

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Move accounting tool to tools and remove it from Documentation
    Makefile. Update location information for this tool. Create a
    new Makefile to build accounting. It can be built from top level
    directory or from accounting directory:

    Run make -C tools/accounting or cd tools/accounting; make

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Move auxdisplay examples to samples and remove it from Documentation
    Makefile. Create a new Makefile to build auxdisplay. It can be built
    from top level directory or from auxdisplay directory:

    Run make -C samples/auxdisplay or cd samples/auxdisplay; make

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Move watchdog examples to samples and remove it from Documentation
    Makefile. Create a new Makefile to build watchdog. It can be built
    from top level directory or from watchdog directory:

    Run make -C samples/watchdog or cd samples/watchdog; make

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Move timers examples to samples and remove it from Documentation
    Makefile. Create a new Makefile to build timers. It can be built
    from top level directory or from timers directory:

    Run make -C samples/timers or cd samples/timers; make

    Acked-by: Jonathan Corbet
    Acked-by: Clemens Ladisch
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Move misc-devices/mei examples to samples/mei and remove it from
    Documentation Makefile. Delete misc-devices/Makefile.

    Create a new Makefile to build samples/mei. It can be built from top
    level directory or from mei directory:

    Run make -C samples/mei or cd samples/mei; make

    Acked-by: Jonathan Corbet
    Acked-by: Greg Kroah-Hartman
    Acked-by: Tomas Winkler
    Signed-off-by: Shuah Khan

    Shuah Khan
     

21 Sep, 2016

1 commit

  • Move mic/mpssd examples to samples and remove it from Documentation
    Makefile. Create a new Makefile to build mic/mpssd. It can be built
    from top level directory or from mic/mpssd directory:

    Run make -C samples/mic/mpssd or cd samples/mic/mpssd; make

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     

20 Sep, 2016

6 commits

  • Remove networking from Documentation Makefile to move the test to
    selftests. Update networking/timestamping Makefile to work under
    selftests. These tests will not be run as part of selftests suite
    and will not be included in install targets. They can be built and
    run separately for now.

    This is part of the effort to move runnable code from Documentation.

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Remove ia64 from Makefile to move the test to selftests.

    Update ia64 Makefile to work under selftests. ia64 will not be run as part
    of selftests suite and will not be included in install targets. They can be
    built separately for now.

    The original Makefile built this test on all archirectures and this update
    doesn't change that.

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Remove vDSO from Makefile to move the to selftests. Update vDSO Makefile
    to work under selftests. vDSO will not be run as part of selftests suite
    and will not be included in install targets. They can be built separately
    for now.

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Remove ptp from Makefile to move the test to selftests. Update ptp Makefile
    to work under selftests. ptp will not be run as part of selftests suite and
    will not be included in install targets. They can be built separately for
    now.

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Move prctl tests from Documentation/prctl to selftests/prctl.

    Remove prctl from Makefile to move the test. Update prctl Makefile to work
    under selftests. prctl will not be run as part of selftests suite and will
    not be included in install targets. They can be built separately for now.

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     
  • Move dnotify_test.c, Makefile, and .gitignore from Documentation/filesystems
    to selftests/filesystems.

    Remove filesystems build target from Documentation/Makefile and update
    selftests/filesystems/Makefile to work under selftests. dnotify_test will
    not be run as part of selftests suite and will not be included in install
    targets. It can be built separately for now.

    Acked-by: Jonathan Corbet
    Signed-off-by: Shuah Khan

    Shuah Khan
     

28 Apr, 2016

2 commits

  • A small bug with the new autoksyms support showed that there are
    two kernel modules in the Documentation directory that qualify
    as samples, while all other samples are in the samples/ directory.

    This patch was originally meant as a workaround for that bug, but
    it has now been solved in a different way. However, I still think
    it makes sense as a cleanup to consolidate all sample code in
    one place.

    Signed-off-by: Arnd Bergmann
    Acked-by: Hans Verkuil
    Acked-by: Mauro Carvalho Chehab
    Signed-off-by: Jonathan Corbet

    Arnd Bergmann
     
  • A small bug with the new autoksyms support showed that there are
    two kernel modules in the Documentation directory that qualify
    as samples, while all other samples are in the samples/ directory.

    This patch was originally meant as a workaround for that bug, but
    it has now been solved in a different way. However, I still think
    it makes sense as a cleanup to consolidate all sample code in
    one place.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Jonathan Corbet

    Arnd Bergmann
     

23 Nov, 2015

1 commit

  • Jon Corbet requested this code moved with the last changeset,
    https://lkml.org/lkml/2015/3/1/144,
    but the patch was not applied because it missed the Makefile.
    Moved spidev_test, spidev_fdx and their Makefile infrastructure.

    Signed-off-by: Joshua Clayton
    Signed-off-by: Mark Brown

    Joshua Clayton
     

24 Feb, 2015

1 commit


26 Sep, 2014

2 commits


10 May, 2012

1 commit


29 Mar, 2012

1 commit

  • hugepage-mmap.c, hugepage-shm.c and map_hugetlb.c in Documentation/vm are
    simple pass/fail tests, It's better to promote them to
    tools/testing/selftests.

    Thanks suggestion of Andrew Morton about this. They all need firstly
    setting up proper nr_hugepages and hugepage-mmap need to mount hugetlbfs.
    So I add a shell script run_vmtests to do such work which will call the
    three test programs and check the return value of them.

    Changes to original code including below:
    a. add run_vmtests script
    b. return error when read_bytes mismatch with writed bytes.
    c. coding style fixes: do not use assignment in if condition

    [akpm@linux-foundation.org: build the targets before trying to execute them]
    [akpm@linux-foundation.org: Documentation/vm/ no longer has a Makefile. Fixes "make clean"]
    Signed-off-by: Dave Young
    Cc: Wu Fengguang
    Cc: Christoph Lameter
    Cc: Pekka Enberg
    Cc: Frederic Weisbecker
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dave Young
     

29 Dec, 2010

1 commit


13 Mar, 2010

3 commits

  • Make dnotify_test.c source file and add it to Makefile so that
    bitrot can be prevented.

    Signed-off-by: Randy Dunlap
    Cc: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Documentation/laptops/laptop-mode.txt:
    Expose example and tool source files in the Documentation/ directory in
    their own files instead of being buried (almost hidden) in readme/txt files.
    This should help to prevent bitrot.

    This will make them more visible/usable to users who may need
    to use them, to developers who may need to test with them, and
    to anyone who would fix/update them if they were more visible.

    Also, if any of these possibly should not be in the kernel tree at
    all, it will be clearer that they are here and we can discuss if
    they should be removed.

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Documentation/timers/hpet.txt:
    Expose example and tool source files in the Documentation/timers/ directory in
    their own files instead of being buried (almost hidden) in readme/txt files.
    This should help to prevent bitrot.

    This will make them more visible/usable to users who may need
    to use them, to developers who may need to test with them, and
    to anyone who would fix/update them if they were more visible.

    Also, if any of these possibly should not be in the kernel tree at
    all, it will be clearer that they are here and we can discuss if
    they should be removed.

    Signed-off-by: Randy Dunlap
    Cc: Thomas Gleixner
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     

13 Aug, 2008

1 commit

  • Currently source files in the Documentation/ sub-dir can easily bit-rot
    since they are not generally buildable, either because they are hidden in
    text files or because there are no Makefile rules for them. This needs to
    be fixed so that the source files remain usable and good examples of code
    instead of bad examples.

    Add the ability to build source files that are in the Documentation/ dir.
    Add to Kconfig as "BUILD_DOCSRC" config symbol.

    Use "CONFIG_BUILD_DOCSRC=1 make ..." to build objects from the
    Documentation/ sources. Or enable BUILD_DOCSRC in the *config system.
    However, this symbol depends on HEADERS_CHECK since the header files need
    to be installed (for userspace builds).

    Built (using cross-tools) for x86-64, i386, alpha, ia64, sparc32,
    sparc64, powerpc, sh, m68k, & mips.

    Signed-off-by: Randy Dunlap
    Reviewed-by: Sam Ravnborg
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap