1. 18 5月, 2021 2 次提交
    • S
      Makefile: Handle building in a very old build directory · a7d03d53
      Simon Glass 提交于
      Versions of U-Boot before 2014.01 created a symlink from include/asm to
      the architecture-specific header directory.
      
      If an ARM board is build with that old version, then sandbox is built on
      a more recent version (both with in-tree builds), the include/asm symlink
      confuses the build system. It picks up the ARM headers when it should be
      using the sandbox ones.
      
      Since 2014 U-Boot has only created a symlink inside the include/asm/
      directory and only for out-of-tree builds. So for in-tree builds it does
      not expect to see an include/asm symlink. It is not removed by
      'make mrproper'. It does show up with 'git status' but is easy enough to
      miss.
      
      Add include/asm to the files to remove with 'make mkproper'. For recent
      U-Boot builds this has no effect, since include/asm is a directory, not a
      file. If the include/asm symlink is there, it will be removed.
      Reported-by: NMarek Szyprowski <m.szyprowski@samsung.com>
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      a7d03d53
    • A
      Makefile: allow to override python3 · f68ed0bc
      Andrey Zhizhikin 提交于
      Python3 taken from the PATH causes build issues when pylibfdt bindings are
      generated with Yocto SDK.
      
      Python3 provided as a part of SDK is not compatible with host Python3,
      therefore binding build breaks with following errors:
      
      scripts/dtc/pylibfdt/libfdt_wrap.c:154:11: fatal error: Python.h: No such file or directory
        154 | # include <Python.h>
            |           ^~~~~~~~~~
      
      Do not enforce the python3 from the PATH and make it conditionally-assigned
      so it can be overridden from outside of build system. Keep the default
      assignment to point to version that is taken from the PATH.
      
      Similar fix has been introduced in b48bfc74 ("tools: allow to override
      python"), where conditional assignment is used for python executable to
      address similar build errors.
      Signed-off-by: NAndrey Zhizhikin <andrey.zhizhikin@leica-geosystems.com>
      Cc: Simon Glass <sjg@chromium.org>
      Fixes: e91610da ("kconfig: re-sync with Linux 4.17-rc4")
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      f68ed0bc
  2. 11 5月, 2021 3 次提交
  3. 02 5月, 2021 1 次提交
  4. 28 4月, 2021 2 次提交
  5. 27 4月, 2021 2 次提交
  6. 20 4月, 2021 1 次提交
  7. 10 4月, 2021 1 次提交
  8. 05 4月, 2021 1 次提交
  9. 01 4月, 2021 1 次提交
  10. 30 3月, 2021 1 次提交
  11. 29 3月, 2021 1 次提交
    • J
      Support building on macOS/arm64 · 3b142045
      Jessica Clarke 提交于
      On Arm-based Macs, -no_pie is ignored and gives a linker warning.
      Moreover, the build falls over with:
      
        ld: Absolute addressing not allowed in arm64 code but used in '_image_type_ptr_aisimage' referencing '_image_type_aisimage'
      
      for dumpimage and mkimage, since we put data structs in text sections
      not data sections and so cannot have dynamic relocations. Instead, move
      the sections to __DATA and drop disabling PIE.
      Signed-off-by: NJessica Clarke <jrtc27@jrtc27.com>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      3b142045
  12. 27 3月, 2021 13 次提交
    • S
      dm: i2c: Add a migration method for I2C · 65c8cdc7
      Simon Glass 提交于
      This probably should have been done a while back since it is a core
      system. Add a migration deadline of later this year, to catch the
      stragglers.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      65c8cdc7
    • S
      Makefile: Drop the old SPI flash migration message · 782dac5b
      Simon Glass 提交于
      This message does not seem to make sense. It may be out of date. Drop it.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      782dac5b
    • S
      Makefile: Use common code for DM_ETH deprecation warning · 8cd1874f
      Simon Glass 提交于
      Update the CONFIG_DM_ETH check to use the 'deprecated' function.
      
      Tested with snow
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_ETH (Driver Model
      for Ethernet drivers). Please update the board to use
      CONFIG_DM_ETH before the v2020.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_ETH (Driver Model
      for Ethernet drivers). Please update the board to use
      CONFIG_DM_ETH before the v2020.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      8cd1874f
    • S
      Makefile: Use common code for WDT deprecation warning · 78b4a564
      Simon Glass 提交于
      Update the CONFIG_WDT check to use the 'deprecated' function.
      
      Tested with kmcent2
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_WDT (DM watchdog support).
      Please update the board to use CONFIG_WDT before the
      v2019.10 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_WDT (Driver Model
      for DM watchdog). Please update the board to use
      CONFIG_WDT before the v2019.10 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      78b4a564
    • S
      Makefile: Use common code for SPI_FLASH deprecation warning · ec384f9f
      Simon Glass 提交于
      Update the CONFIG_DM_SPI_FLASH check to use the 'deprecated' function.
      
      Tested with vinco
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_SPI_FLASH. Please update
      the board to use CONFIG_SPI_FLASH before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_SPI_FLASH (Driver Model
      for SPI flash). Please update the board to use
      CONFIG_DM_SPI_FLASH before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      ec384f9f
    • S
      Makefile: Use common code for DM_VIDEO deprecation warning · d13aee07
      Simon Glass 提交于
      Update the CONFIG_DM_VIDEO check to use the 'deprecated' function.
      
      Tested with pxm2
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_VIDEO Please update
      the board to use CONFIG_DM_VIDEO before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_VIDEO (Driver Model
      for video). Please update the board to use
      CONFIG_DM_VIDEO before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ==================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      d13aee07
    • S
      Makefile: Use common code for PCI deprecation warning · 39e526a8
      Simon Glass 提交于
      Update the CONFIG_DM_PCI check to use the 'deprecated' function.
      
      Tested with MPC8349ITX
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_PCI Please update
      the board to use CONFIG_DM_PCI before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_PCI (Driver Model
      for PCI). Please update the board to use
      CONFIG_DM_PCI before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      39e526a8
    • S
      Makefile: Use common code for LIBATA deprecation warning · 099288bf
      Simon Glass 提交于
      Update the CONFIG_LIBATA check to use the 'deprecated' function.
      
      Tested with MPC8349ITX
      
      Old message:
      
      ===================== WARNING ======================
      This board does use CONFIG_LIBATA but has CONFIG_AHCI not
      enabled. Please update the storage controller driver to use
      CONFIG_AHCI before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_AHCI (Driver Model
      for AHCI). Please update the board to use
      CONFIG_AHCI before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      099288bf
    • S
      Makefile: Use common code for MVSATA_IDE deprecation warning · a8834352
      Simon Glass 提交于
      Update the CONFIG_MVSATA_IDE check to use the 'deprecated' function.
      
      Tested with nas220
      
      Old message:
      
      ===================== WARNING ======================
      This board does use CONFIG_MVSATA_IDE which is not
      ported to driver-model (DM) yet. Please update the storage
      controller driver to use CONFIG_AHCI before the v2019.07
      release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_AHCI (Driver Model
      for AHCI instead of CONFIG_MVSATA_IDE). Please update the board to use
      CONFIG_AHCI before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      a8834352
    • S
      Makefile: Use common code for USB deprecation warning · 9e035b8e
      Simon Glass 提交于
      Update the USB check to use the 'deprecated' function.
      
      Tested with xpress
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_USB. Please update
      the board to use CONFIG_DM_USB before the v2019.07 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_USB (Driver Model
      for  USB). Please update the board to use
      CONFIG_DM_USB before the v2019.07 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      9e035b8e
    • S
      Makefile: Use common code for MMC deprecation warning · 77dc55ea
      Simon Glass 提交于
      Update the MMC check to use the 'deprecated' function.
      
      Tested with zc5202
      
      Old message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_MMC. Please update
      the board to use CONFIG_DM_MMC before the v2019.04 release.
      Failure to update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      
      New message:
      
      ===================== WARNING ======================
      This board does not use CONFIG_DM_MMC (Driver Model
      for MMC). Please update the board to use
      CONFIG_DM_MMC before the v2019.04 release. Failure to
      update by the deadline may result in board removal.
      See doc/driver-model/migration.rst for more info.
      ====================================================
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      77dc55ea
    • S
      Makefile: Add common code to report deprecation · 13732528
      Simon Glass 提交于
      Add a function which can be called to report a migration problem. This
      will make it easier to add new migration checks, since the logic and
      strings are not spread out over 8 lines of code.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      13732528
    • S
      Makefile: Move non-DM migration messages to the top · 06467e46
      Simon Glass 提交于
      At present the driver model migration messages are mixed with the others.
      Collect them together before starting to refactor them.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      06467e46
  13. 26 3月, 2021 1 次提交
  14. 22 3月, 2021 1 次提交
  15. 21 3月, 2021 1 次提交
  16. 16 3月, 2021 1 次提交
  17. 08 3月, 2021 1 次提交
  18. 03 3月, 2021 2 次提交
    • P
      usb: musb: Fix compilation of gadget code · 4cc53ef1
      Pali Rohár 提交于
      musb udc code depends on usb gadget code provided by CONFIG_USB_DEVICE as
      defined in drivers/usb/gadget/Makefile. But this Makefile is not included
      into U-Boot build when CONFIG_USB_GADGET is not set. As CONFIG_USB_DEVICE
      cannot be enabled together with CONFIG_USB_GADGET it means that dependency
      for musb udc code is not compiled during build. Fix it by including
      drivers/usb/gadget dependency also when CONFIG_USB_DEVICE is set.
      
      This patch fixes compile errors:
      
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `musb_peri_ep0_rx':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `ep0_recv_setup'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `musb_peri_ep0_idle':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `ep0_recv_setup'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `musb_peri_ep0_zero_data_request':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `musb_peri_ep0_idle':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `ep0_recv_setup'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `musb_peri_ep0_rx':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_rcv_complete'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `musb_peri_rx_ep':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_rcv_complete'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `udc_endpoint_write':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_tx_complete'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `udc_irq':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      arm-linux-gnueabi-ld.bfd: u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      arm-linux-gnueabi-ld.bfd: u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      arm-linux-gnueabi-ld.bfd: u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      arm-linux-gnueabi-ld.bfd: u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o:u-boot/drivers/usb/musb/musb_udc.c: more undefined references to `usbd_device_event_irq' follow
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `udc_setup_ep':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_alloc_urb'
      arm-linux-gnueabi-ld.bfd: drivers/usb/musb/built-in.o: in function `udc_startup_events':
      u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      arm-linux-gnueabi-ld.bfd: u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      arm-linux-gnueabi-ld.bfd: u-boot/drivers/usb/musb/musb_udc.c: undefined reference to `usbd_device_event_irq'
      make: *** [Makefile:1762: u-boot] Error 1
      Signed-off-by: NPali Rohár <pali@kernel.org>
      Reviewed-by: NLukasz Majewski <lukma@denx.de>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      4cc53ef1
    • S
      binman: Indicate how to make binman verbose · ef108047
      Simon Glass 提交于
      Add notes about how to make binman produce verbose logging when building.
      
      Add a comment on how to do this.
      Signed-off-by: NSimon Glass <sjg@chromium.org>
      ef108047
  19. 02 3月, 2021 1 次提交
  20. 01 3月, 2021 1 次提交
    • M
      ARM: imx: Include u-boot.img in u-boot-with-spl.imx if OF_SEPARATE=y · 7034478a
      Marek Vasut 提交于
      The u-boot-with-spl.imx is a concatenation of SPL and u-boot.uim.
      The u-boot.uim is u-boot.bin wrapped in uImage. In case OF_SEPARATE
      is enabled, the u-boot.bin does not contain control DT for U-Boot,
      and so u-boot.uim does not contain the DT, and so u-boot-with-spl.imx
      does not contain the DT, and a system where u-boot-with-spl.imx is
      written to offset 1024B to the start of storage no longer boots, as
      it is missing DT.
      
      In case OF_SEPARATE is enabled, u-boot.img contains both u-boot.bin
      and the necessary DTs. Therefore, use u-boot.img instead of u-boot.uim
      to generate u-boot-with-spl.imx when OF_SEPARATE is enabled.
      Signed-off-by: NMarek Vasut <marex@denx.de>
      Cc: Christoph Niedermaier <cniedermaier@dh-electronics.de>
      Cc: Fabio Estevam <festevam@gmail.com>
      Cc: Peng Fan <peng.fan@nxp.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Stefano Babic <sbabic@denx.de>
      Cc: Ye Li <ye.li@nxp.com>
      Cc: uboot-imx <uboot-imx@nxp.com>
      7034478a
  21. 25 2月, 2021 1 次提交
  22. 16 2月, 2021 1 次提交