1. 12 11月, 2019 1 次提交
  2. 07 11月, 2019 1 次提交
  3. 06 11月, 2019 1 次提交
    • H
      Makefile: fix dependency for imx targets · 0f282c18
      Heiko Schocher 提交于
      imx targets are defined in arch/arm/mach-imx/Makefile.
      Some of them are dependent on targets defined in main
      Makefile. For the Makefile in arch/arm/mach-imx this
      targets must be finished before the imx targets are
      build, if not you get for example the error:
      
      make -f /home/hs/abb/mainlining/u-boot/scripts/Makefile.build obj=arch/arm/mach-imx u-boot-dtb.imx
      make[2]: *** No rule to make target 'u-boot-fit-dtb.bin', needed by 'u-boot-dtb.imx'.  Stop.
      make[1]: *** [/home/hs/abb/mainlining/u-boot/Makefile:1123: u-boot-dtb.imx] Error 2
      make[1]: *** Waiting for unfinished jobs....
      make[1]: Leaving directory '/work/hs/compile/u-boot/aristainetos2_defconfig'
      make: *** [Makefile:148: sub-make] Error 2
      compile failed
      
      In above case of CONFIG_MULTI_DTB_FIT is defined, the
      u-boot-dtb.imx is dependent on the u-boot-fit-dtb.bin
      which may is not build yet ...
      
      I could reproduce this error on a travis build also if
      I build an out-of-tree build on a local machine with a
      build directory on a "slow" slow storage device. If
      building the same source target with a build dir on a
      fast storage device, the build works.
      
      I found no solution to tell the arch/arm/mach-imx/Makefile
      to find the targets in main Makefile, if there is a way
      this would be the better fix.
      
      I solved it by adding a IMX_DEPS var, which holds a list
      of main u-boot targets, which must be finished, before
      calling imx targets and fixed the build for imx
      targets which enabled CONFIG_MULTI_DTB_FIT.
      
      I think it is just luck, that imx targets with
      CONFIG_OF_SEPARATE enabled build, because the
      u-boot-dtb.imx target depends on u-boot-dtb.bin
      which gets build early enough before starting with
      u-boot-dtb.imx. May this targets should be fixed too.
      Signed-off-by: NHeiko Schocher <hs@denx.de>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      0f282c18
  4. 03 11月, 2019 1 次提交
  5. 31 10月, 2019 2 次提交
  6. 30 10月, 2019 1 次提交
  7. 29 10月, 2019 1 次提交
    • B
      tools: Avoid creating symbolic links for tools/version.h · 4d90f6cd
      Bin Meng 提交于
      When building U-Boot host tools for Windows from Microsoft Azure
      Pipelines, the following errors were seen:
      
        HOSTCC  tools/mkenvimage.o
        In file included from tools/mkenvimage.c:25:
        ./tools/version.h:1:1: error: expected identifier or ‘(’ before ‘.’ token
           1 | ../include/version.h
             | ^
        tools/mkenvimage.c: In function ‘main’:
        tools/mkenvimage.c:117:4: warning: implicit declaration of function ‘usage’ [-Wimplicit-function-declaration]
         117 |    usage(prg);
             |    ^~~~~
        tools/mkenvimage.c:120:35: error: ‘PLAIN_VERSION’ undeclared (first use in this function)
         120 |    printf("%s version %s\n", prg, PLAIN_VERSION);
             |                                   ^~~~~~~~~~~~~
        tools/mkenvimage.c:120:35: note: each undeclared identifier is reported only once for each function it appears in
        make[2]: *** [scripts/Makefile.host:114: tools/mkenvimage.o] Error 1
      
      It turns out tools/version.h is a symbolic link and with Windows
      default settings it is unsupported hence the actual content of
      tools/version.h is not what file include/version.h has, but the
      the linked file path, which breaks the build.
      
      To fix this, remove the symbolic links for tools/version.h. Instead
      we perform a copy from include/version.h during the build.
      Signed-off-by: NBin Meng <bmeng.cn@gmail.com>
      4d90f6cd
  8. 17 10月, 2019 1 次提交
    • A
      Makefile: Skip symbolic links to files for cscope · e15a951d
      Andy Shevchenko 提交于
      cscope complains that it can't find files that appears to be symbolic links
      
      cscope: cannot find file tools/binman/test/u_boot_binman_syms_bad.c
      cscope: cannot find file tools/version.h
      
      `find -L` tests properties, but name, and cscope can't cope with symbolic
      links (a lot of bugs in upstream were simple closed as kinda invalid).
      
      To work around the problem, exclude symbolic links from the cscope.files.
      Note, it's done in two pass to speed up the process (`-exec realpath ...`
      approach is not portable and introduces a 3x delay).
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      e15a951d
  9. 15 10月, 2019 1 次提交
    • S
      binman: x86: Separate out 16-bit reset and init code · 5e239183
      Simon Glass 提交于
      At present these two sections of code are linked together into a single
      2KB chunk in a single file. Some Intel SoCs like to have a FIT (Firmware
      Interface Table) in the ROM and the pointer for this needs to go at
      0xffffffc0 which is in the middle of these two sections.
      
      Make use of the new 'reset' entry and change the existing 16-bit entry to
      include just the 16-bit data.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      5e239183
  10. 14 10月, 2019 1 次提交
  11. 08 10月, 2019 6 次提交
  12. 05 10月, 2019 2 次提交
  13. 24 9月, 2019 1 次提交
  14. 20 9月, 2019 1 次提交
  15. 11 9月, 2019 1 次提交
    • M
      rockchip, Makefile: add idbloader.img target · 1b0a936b
      Matwey V. Kornilov 提交于
      Many Rockchip platforms require the same u-boot deploy procedure
      when TPL and SPL both enabled.
      
      The following examples are taken from doc/README.rockchip
      and board/theobroma-systems/lion_rk3368/README:
      
      RK3288:
      
        ./tools/mkimage -n rk3288 -T rksd -d ./tpl/u-boot-tpl.bin out
        cat ./spl/u-boot-spl-dtb.bin >> out
        sudo dd if=out of=/dev/mmcblk0 seek=64
      
      RK3328:
      
        ./tools/mkimage -n rk3328 -T rksd -d ./tpl/u-boot-tpl.bin idbloader.img
        cat ./spl/u-boot-spl.bin >> idbloader.img
        sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64
      
      RK3368:
      
        ./tools/mkimage -n rk3368 -T rksd -d tpl/u-boot-tpl.bin spl-3368.img
        cat spl/u-boot-spl-dtb.bin >> spl-3368.img
        dd if=spl-3368.img of=/dev/sdb seek=64
      
      RK3399:
      
        ./tools/mkimage -n rk3399 -T rksd -d ./tpl/u-boot-tpl-dtb.bin out
        cat ./spl/u-boot-spl-dtb.bin >> out
        sudo dd if=out of=/dev/sdc seek=64
      
      Here, we introduce generic idbloader.img target
      which is the TPL image followed by the SPL binary.
      Signed-off-by: NMatwey V. Kornilov <matwey.kornilov@gmail.com>
      Reviewed-by: NKever Yang <kever.yang@rock-chips.com>
      1b0a936b
  16. 05 9月, 2019 1 次提交
  17. 31 8月, 2019 2 次提交
  18. 27 8月, 2019 1 次提交
  19. 26 8月, 2019 2 次提交
  20. 14 8月, 2019 1 次提交
  21. 30 7月, 2019 3 次提交
  22. 29 7月, 2019 1 次提交
  23. 25 7月, 2019 1 次提交
  24. 10 7月, 2019 1 次提交
    • M
      arm64: add an option to switch visibility of CONFIG_SYS_INIT_SP_BSS_OFFSET · 382de4a7
      Masahiro Yamada 提交于
      By default, CONFIG_SYS_INIT_SP_BSS_OFFSET was made invisible by not
      giving a prompt to it.
      
      The only way to define it is to hard-code an extra entry in SoC/board
      Kconfig, like arch/arm/mach-tegra/tegra{186,210}/Kconfig.
      
      Add a prompt to it in order to allow defconfig files to specify the
      value of CONFIG_SYS_INIT_SP_BSS_OFFSET.
      
      With this, CONFIG_SYS_INIT_SP_BSS_OFFSET would become always visible.
      So, we need a new bool option to turn it off by default.
      
      I move the 'default 524288' to the common place. This value is not too
      big, but is big enough to avoid the overwrap of DT in most platforms.
      If 512KB is not a suitable choice for your platform, you can change it
      from your defconfig or menuconfig etc.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: NStephen Warren <swarren@nvidia.com>
      382de4a7
  25. 09 7月, 2019 1 次提交
  26. 26 6月, 2019 3 次提交
    • J
      rockchip: rk3399: Get bl31.elf via BL31 · 96070460
      Jagan Teki 提交于
      Right now rockchip platform need to copy bl31.elf into u-boot
      source directory to make use of building u-boot.itb.
      
      So, add environment variable BL31 like Allwinner SoC so-that the
      bl31.elf would available via BL31.
      
      If the builds are not exporting BL31 env, the make_fit_atf.py
      explicitly create dummy bl31.elf in u-boot root directory to
      satisfy travis builds and it will show the warning on console as
      
       WARNING: BL31 file bl31.elf NOT found, resulting binary is non-functional
       WARNING: Please read Building section in doc/README.rockchip
      
      Note, that the dummy bl31 files were created during not exporting
      BL31 case would be removed via clean target in Makefile.
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      96070460
    • J
      Makefile: clean bl31_*.bin · cc2cf690
      Jagan Teki 提交于
      Rockchip platform has its python script that would generate various
      bl31_*bin for creating u-boot.itb file by taking bl31.elf as input.
      
      These bl31_*.bin files are generated in u-boot root directory and
      have no rule to clean it up. so add support for it by adding in
      command entry of clean target in Makefile.
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      Reviewed-by: NKever Yang <kever.yang@rock-chips.com>
      cc2cf690
    • J
      Makefile: clean image.map · 8f06f0ce
      Jagan Teki 提交于
      binman tools for creating single image build will create image.map
      at the end, which has information about binman image node details.
      
      current u-boot, is unable to clean this image.map so add a command
      entry in clean target in Makefile.
      Signed-off-by: NJagan Teki <jagan@amarulasolutions.com>
      Reviewed-by: NKever Yang <kever.yang@rock-chips.com>
      8f06f0ce
  27. 20 6月, 2019 1 次提交
    • B
      doc: Remove duplicated documentation directory · 656d8da9
      Breno Matheus Lima 提交于
      Commit ad7061ed ("doc: Move device tree bindings documentation to
       doc/device-tree-bindings") moved all device tree binding documentation
      to doc/device-tree-bindings directory.
      
      The current U-Boot project still have two documentation directories:
      
      - doc/
      - Documentation/
      
      Move all documentation and sphinx files to doc directory so all content
      can be in a common place.
      Signed-off-by: NBreno Lima <breno.lima@nxp.com>
      656d8da9