1. 19 7月, 2018 1 次提交
    • L
      arm/arm64: zynq/zynqmp: pass the PS init file as a kconfig variable · 6da4f67a
      Luca Ceresoli 提交于
      U-Boot needs to link ps7_init_gpl.c on Zynq or psu_init_gpl.c on
      ZynqMP (PS init for short). The current logic to locate this file for
      both platforms is:
      
       1. if a board-specific file exists in
          board/xilinx/zynq[mp]/$(CONFIG_DEFAULT_DEVICE_TREE)/ps?_init_gpl.c
          then use it
       2. otherwise use board/xilinx/zynq/ps?_init_gpl.c
      
      In the latter case the file does not exist in the U-Boot sources and
      must be copied in the source tree from the outside before starting the
      build. This is typical when it is generated from Xilinx tools while
      developing a custom hardware. However making sure that a
      board-specific file is _not_ found (and used) requires some trickery
      such as removing or overwriting all PS init files (e.g.: the current
      meta-xilinx yocto layer).
      
      This generates a few problems:
      
       * if the source tree is shared among different out-of-tree builds,
         they will pollute (and potentially corrupt) each other
       * the source tree cannot be read-only
       * any buildsystem must add a command to copy the PS init file binary
       * overwriting or deleting files in the source tree is ugly as hell
      
      Simplify usage by allowing to pass the path to the desired PS init
      file in kconfig variable XILINX_PS_INIT_FILE. It can be an absolute
      path or relative to $(srctree). If the variable is set, the
      user-specified file will always be used without being copied
      around. If the the variable is left empty, for backward compatibility
      fall back to the old behaviour.
      
      Since the issue is the same for Zynq and ZynqMP, add one kconfig
      variable in a common place and use it for both.
      
      Also use the new kconfig help text to document all the ways to give
      U-Boot the PS init file.
      
      Build-tested with all combinations of:
       - platform: zynq or zynqmp
       - PS init file: from XILINX_PS_INIT_FILE (absolute, relative path,
         non-existing), in-tree board-specific, in board/xilinx/zynq[mp]/
       - building in-tree, in subdir, in other directory
      Signed-off-by: NLuca Ceresoli <luca@lucaceresoli.net>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Cc: Nathan Rossi <nathan@nathanrossi.com>
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      6da4f67a
  2. 07 5月, 2018 1 次提交
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  3. 24 5月, 2016 1 次提交
    • M
      ARM: zynq: Simplify zynq configuration · ad5b5801
      Michal Simek 提交于
      Extending Kconfig for adding new platform is a lot of work
      for nothing. Setting SYS_CONFIG_NAME directly in Kconfig and
      remove all dependencies on TARGET_ZYNQ_* options including SPL.
      As a side-effect it also remove custom init folder for ps7_init_gpl.*
      files. Folder is chosen based on device-tree file.
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      ad5b5801
  4. 18 12月, 2015 1 次提交
    • N
      ARM: zynq: Add default ps7_init_gpl.c/h for ZYBO · f0b567bf
      Nathan Rossi 提交于
      Add ps7_init_gpl.c/h for the ZYBO board. This instance of the ps7_init
      is generated by the Vivado 2015.3 tools using the system configuration
      provided by Digilent located on their website.
      
      Update the kconfig so that the defconfig is not overrided to use the
      custom init ps7_init_gpl target by default.
      Signed-off-by: NNathan Rossi <nathan@nathanrossi.com>
      Cc: Albert Aribaud <albert.u.boot@aribaud.net>
      Cc: Michal Simek <monstr@monstr.eu>
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Cc: Joe Hershberger <joe.hershberger@ni.com>
      Cc: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      f0b567bf
  5. 04 11月, 2015 1 次提交
  6. 28 7月, 2015 1 次提交
  7. 25 5月, 2015 2 次提交
  8. 29 4月, 2015 1 次提交
  9. 11 11月, 2014 1 次提交
  10. 23 7月, 2014 1 次提交
    • M
      zynq: disable -Wstrict-prototypes option for ps7_init.c · 32747491
      Masahiro Yamada 提交于
      The files ps7_init.c and ps7_init.h are supposed to be generated by
      hw projects such as Vivado, PlanAhead and then to be copied into
      board/xilinx/zynq directory.
      
      But some prototypes in them cause annoying warning messages:
      
        CC      spl/board/xilinx/zynq/ps7_init.o
      In file included from board/xilinx/zynq/ps7_init.c:50:0:
      board/xilinx/zynq/ps7_init.h:137:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      board/xilinx/zynq/ps7_init.h:138:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      board/xilinx/zynq/ps7_init.h:139:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      board/xilinx/zynq/ps7_init.h:145:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      board/xilinx/zynq/ps7_init.c:12602:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      board/xilinx/zynq/ps7_init.c:12723:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      board/xilinx/zynq/ps7_init.c:12742:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      board/xilinx/zynq/ps7_init.c:12761:1: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      board/xilinx/zynq/ps7_init.c:12854:6: warning: function declaration isn't a prototype [-Wstrict-prototypes]
      
      The prototypes should be
      
        int ps7_init(void);
        int ps7_post_config(void);
        int ps7_debug(void);
      
      rather than
      
        int ps7_init();
        int ps7_post_config();
        int ps7_debug();
      
      We do not want to be bothered because of automatically generated files.
      But we cannot touch the external projects for now.
      What we can do is to disable -Wstrict-prototypes for ps7_init.c
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Tested-by: NMichal Simek <michal.simek@xilinx.com>
      Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
      32747491
  11. 14 5月, 2014 1 次提交
  12. 19 2月, 2014 1 次提交
  13. 01 11月, 2013 1 次提交
  14. 24 7月, 2013 1 次提交
  15. 04 2月, 2013 1 次提交
  16. 04 10月, 2012 1 次提交
  17. 28 10月, 2011 1 次提交
  18. 16 10月, 2011 1 次提交
  19. 18 11月, 2010 1 次提交
    • S
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier 提交于
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      Signed-off-by: NSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  20. 22 10月, 2010 1 次提交
  21. 03 7月, 2008 1 次提交
  22. 09 10月, 2006 1 次提交
  23. 02 9月, 2006 1 次提交
    • M
      Add support for a saving build objects in a separate directory. · f9328639
      Marian Balakowicz 提交于
      Modifications are based on the linux kernel approach and
      support two use cases:
      
        1) Add O= to the make command line
        'make O=/tmp/build all'
      
        2) Set environement variable BUILD_DIR to point to the desired location
        'export BUILD_DIR=/tmp/build'
        'make'
      
      The second approach can also be used with a MAKEALL script
      'export BUILD_DIR=/tmp/build'
      './MAKEALL'
      
      Command line 'O=' setting overrides BUILD_DIR environent variable.
      
      When none of the above methods is used the local build is performed and
      the object files are placed in the source directory.
      f9328639
  24. 03 4月, 2005 1 次提交
    • W
      Prepare for SoC rework of ARM code: · 400558b5
      wdenk 提交于
      - rename CONFIG_BOOTBINFUNC into  CONFIG_INIT_CRITICAL
      - rename memsetup into lowlevel_init (function name and source files)
      400558b5
  25. 28 6月, 2003 1 次提交
    • W
      * Code cleanup: · 8bde7f77
      wdenk 提交于
        - remove trailing white space, trailing empty lines, C++ comments, etc.
        - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
      
      * Patches by Kenneth Johansson, 25 Jun 2003:
        - major rework of command structure
          (work done mostly by Michal Cendrowski and Joakim Kristiansen)
      8bde7f77
  26. 11 9月, 2002 1 次提交
  27. 02 3月, 2001 1 次提交
  28. 12 1月, 2001 1 次提交
  29. 14 12月, 2000 1 次提交
  30. 10 7月, 2000 1 次提交