13 Dec, 2017

8 commits


08 Dec, 2017

1 commit


04 Dec, 2017

1 commit


30 Nov, 2017

3 commits


28 Nov, 2017

2 commits

  • The patch is adding external pmufw "Platform Management Unit firmware"
    to boot.bin image. Boot.bin is a Xilinx format which bootrom is capable
    to read and boot the system. pmufw is copied to the header data section
    follows by u-boot-spl.bin. pmufw is consumed by PMU unit (Microblaze)
    and SPL runs on a53-0.

    This is generated command line when PMUFW_INIT_FILE is setup.

    ./tools/mkimage -T zynqmpimage -R ./"" -n
    ./"board/xilinx/zynqmp/pmufw.bin" -d spl/u-boot-spl.bin spl/boot.bin

    Signed-off-by: Michal Simek
    Reviewed-by: Simon Glass

    Michal Simek
     
  • Move cadence/zynq serial driver via Kconfig

    Signed-off-by: Michal Simek
    Reviewed-by: Simon Glass

    Michal Simek
     

23 Nov, 2017

1 commit

  • There is a debugging option in the Makefile to allow people to figure out
    which u-boot.dtsi files are used in the build. But is it not easy to use
    since it only shows files it finds, not those it is looking for. Update it
    and update the mention of it to the docs.

    Signed-off-by: Simon Glass

    Simon Glass
     

21 Nov, 2017

4 commits

  • Add some useful static code analysis scripts for coccinelle
    copied from the Linux kernel v4.14-rc8:

    Warn on check against NULL before calling free.
    scripts/coccinelle/free/ifnullfree.cocci

    Detect superfluous NULL check for list iterator.
    scripts/coccinelle/iterators/itnull.cocci

    Check if list iterator is reassigned.
    scripts/coccinelle/iterators/list_entry_update.cocci

    Check if list iterator is used after loop.
    scripts/coccinelle/iterators/use_after_iter.cocci

    Find wrong argument of sizeof in allocation function:
    scripts/coccinelle/misc/badty.cocci

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • Coccinelle is a program for static code analysis.
    For details on Coccinelle see

    http://coccinelle.lip6.fr/

    Add scripts/coccicheck copied from Linux kernel v4.14.

    The coccicheck script executes the tests *.cocci in
    directory scripts/coccinelle by calling spatch.

    In Makefile add a coccicheck target. You can use it with

    make coccicheck MODE=

    where mode in patch, report, context, org.

    Add a copy of Linux v4.14 file Documentation/dev-tools/coccinelle.rst
    as doc/README.coccinelle.

    Cc: Simon Glass
    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • ld --version | scripts/ld-version.sh
    fails with
    awk: scripts/ld-version.sh:
    line 4: regular expression compile failed (missing '(')
    .*)

    So let's refresh the script from Linux kernel v4.14-rc8.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     
  • sym_arr is of type struct symbol **.
    So in malloc we need sizeof(struct symbol *).

    The problem was indicated by coccinelle.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

17 Nov, 2017

4 commits

  • Currently, pylibfdt is always compiled if swig is installed on your
    machine. It is really annoying because most of targets (excepts
    x86, sunxi, rockchip) do not use dtoc or binman.

    "checkbinman" and "checkdtoc" are wrong. It is odd that the final
    build stage checks if we have built necessary tools. If your platform
    depends on dtoc/binman, you must be able to build pylibfdt. If swig
    is not installed, it should fail immediately.

    I added PYLIBFDT, DTOC, BINMAN entries to Kconfig. They should be
    property select:ed by platforms that need them. Kbuild will descend
    into scripts/dtc/pylibfdt/ only when CONFIG_PYLIBFDT is enabled.

    Signed-off-by: Masahiro Yamada
    Reviewed-by: Simon Glass

    Masahiro Yamada
     
  • The pylibfdt is used by dtoc (and, indirectly by binman), but there
    is no reason why it must be generated in the tools/ directory.

    Recently, U-Boot switched over to the bundled DTC, and the directory
    structure under scripts/dtc/ now mirrors the upstream DTC project.
    So, scripts/dtc/pylibfdt is the best location.

    I also rewrote the Makefile in a cleaner Kbuild style.

    The scripts from the upstream have been moved as follows:

    lib/libfdt/pylibfdt/setup.py -> scripts/dtc/pylibfdt/setup.py
    lib/libfdt/pylibfdt/libfdt.i -> scripts/dtc/pylibfdt/libfdt.i_shipped

    The .i_shipped is coped to .i during building because the .i must be
    located in the objtree when we build it out of tree.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This adds the following commits from upstream:

    b1a6003 tests: Add a test for overlays syntactic sugar
    737b2df overlay: Add syntactic sugar version of overlays
    497432f checks: Use proper format modifier for size_t
    22a65c5 dtc: Bump version to v1.4.5
    c575d80 Add fdtoverlay to .gitignore
    b6a6f94 fdtoverlay: Sanity check blob size
    8c1eb15 pylibfdt: Use Python2 explicitly
    ee3d26f checks: add interrupts property check
    c1e7738 checks: add gpio binding properties check
    b3bbac0 checks: add phandle with arg property checks

    [ sync with Linux commit: 4201d057ea91c3d6efd2db65219bc91fae413bc2 ]

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • libfdt has gained some new files. We need to include them in the
    kernel's copy.

    Reported-by: Kyle Yan
    Signed-off-by: Rob Herring
    Signed-off-by: Masahiro Yamada

    [ Linux commit: 4322323058f010274564006d61945187a15b6361 ]

    Rob Herring
     

06 Nov, 2017

1 commit


31 Oct, 2017

1 commit


29 Oct, 2017

3 commits


27 Oct, 2017

2 commits


26 Oct, 2017

1 commit

  • The sunxi DE1 video option used to be CONFIG_VIDEO, which has the same
    name as the "Enable legacy video support" option in
    drivers/video/Kconfig.

    Change the option name to CONFIG_VIDEO_SUNXI, which is really used by
    Makefile under drivers/video/sunxi/, and defined in sunxi-common.h
    when CONFIG_VIDEO is selected before this change. Now CONFIG_VIDEO_SUNXI
    selects CONFIG_VIDEO and the usages of CONFIG_VIDEO in sunxi Kconfig and
    config headers are all converted to use CONFIG_VIDEO_SUNXI.

    Signed-off-by: Icenowy Zheng

    Icenowy Zheng
     

21 Oct, 2017

2 commits

  • We add the various SMC91XX symbols to drivers/net/Kconfig and then this
    converts the following to Kconfig:
    CONFIG_SMC911X
    CONFIG_SMC911X_BASE
    CONFIG_SMC911X_16_BIT
    CONFIG_SMC911X_32_BIT

    Signed-off-by: Adam Ford
    [trini: Apply to the rest of the tree, re-squash old and new patch]
    Signed-off-by: Tom Rini

    Adam Ford
     
  • This converts the following to Kconfig:
    CONFIG_NAND_MXC
    CONFIG_NAND_OMAP_GPMC
    CONFIG_NAND_OMAP_GPMC_PREFETCH
    CONFIG_NAND_OMAP_ELM
    CONFIG_SPL_NAND_AM33XX_BCH
    CONFIG_SPL_NAND_SIMPLE
    CONFIG_SYS_NAND_BUSWIDTH_16BIT

    Signed-off-by: Adam Ford
    Reviewed-by: Heiko Schocher
    [trini: Finish migration of CONFIG_SPL_NAND_SIMPLE, fix some build issues,
    add CONFIG_NAND_MXC so we can do CONFIG_SYS_NAND_BUSWIDTH_16BIT]
    Signed-off-by: Tom Rini

    Adam Ford
     

17 Oct, 2017

2 commits

  • Rsync all defconfig files using moveconfig.py

    Signed-off-by: Tom Rini

    Tom Rini
     
  • Update the script to version 0.26 (as of Linux v4.14-rc1)
    Keep our "penguin_chief".
    Keep our top_of_kernel_tree.

    The negative forms of the command line parameters are described
    when using --help.

    New options are

    --git-blame-signatures => when used with --git-blame,
    also include all commit signers
    --r => include reviewer(s) if any
    --letters => print all matching 'letter' types
    from all matching sections

    File .get_maintainer.ignore can be used to specify
    email addressees that shall be ignored.

    Signed-off-by: Heinrich Schuchardt

    Heinrich Schuchardt
     

16 Oct, 2017

4 commits

  • I saw a DT build issue report some time before [1]. I was able to
    reproduce the bug, and figure out the root cause.

    Since commit 6d427c6b1fa0 ("binman: Automatically include a U-Boot
    .dtsi file"), invalid .*.cmd files are generated.

    Since that commit, DTS files are put into sed and piped to CPP.
    Because CPP reads the stream from stdin, -Wp,-MD,$(depfile).pre.tmp
    option generates a depfile with the target name "-". This is not
    the format expected by fixdep.

    Use one more temporary file instead of using pipe. With this, deps_
    in the .*.cmd will be fixed. Having a temp file name in source_ is
    odd, but it is unsed in the build system. Not a big deal.

    [1] https://lists.denx.de/pipermail/u-boot/2017-June/294451.html

    Fiexes: 6d427c6b1fa0 ("binman: Automatically include a U-Boot .dtsi file")
    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • Last user of this option went away in commit:

    fdc7718999 ("board: usb_a9263: Update to support DT and DM")

    Signed-off-by: Tuomas Tynkkynen

    Tuomas Tynkkynen
     
  • This macro isn't used by anything, and in fact hasn't ever been used
    according to the Git logs.

    Signed-off-by: Tuomas Tynkkynen

    Tuomas Tynkkynen
     
  • CONFIG options surrounded by

    CONFIG_IS_ENABLED(...)
    CONFIG_IS_BUILTIN(...)
    CONFIG_IS_MODULE(...)
    CONFIG_VAL(...)

    need special care for proper dependency tracking.

    I do not remember why, but I missed to add CONFIG_VAL(...) handling.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada