config.mk 811 B

1234567891011121314151617181920212223242526272829
  1. # SPDX-License-Identifier: GPL-2.0+
  2. #
  3. # Copyright (C) 2018 Synopsys, Inc. All rights reserved.
  4. ifdef CONFIG_TARGET_AXS103
  5. PLATFORM_CPPFLAGS += -mcpu=archs
  6. else
  7. PLATFORM_CPPFLAGS += -mcpu=arc700 -mlock -mswape
  8. endif
  9. bsp-generate: u-boot u-boot.bin
  10. ifdef CONFIG_ISA_ARCV2
  11. $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-axs.py \
  12. --header-type v2 \
  13. --arc-id 0x53 \
  14. --spi-flash-offset 0x200000 \
  15. --image $(srctree)/u-boot.bin \
  16. --elf $(srctree)/u-boot
  17. else
  18. $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-axs.py \
  19. --header-type v1 \
  20. --arc-id 0x434 \
  21. --spi-flash-offset 0x0 \
  22. --image $(srctree)/u-boot.bin \
  23. --elf $(srctree)/u-boot
  24. endif
  25. $(Q)tools/mkimage -T script -C none -n 'uboot update script' \
  26. -d $(srctree)/u-boot-update.txt \
  27. $(srctree)/u-boot-update.img &> /dev/null