Eugeniy Paltsev | 61569f3 | 2018-06-27 15:20:48 +0300 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # |
| 3 | # Copyright (C) 2018 Synopsys, Inc. All rights reserved. |
| 4 | |
| 5 | bsp-generate: u-boot u-boot.bin |
| 6 | ifdef CONFIG_ISA_ARCV2 |
| 7 | $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-axs.py \ |
| 8 | --header-type v2 \ |
| 9 | --arc-id 0x53 \ |
| 10 | --spi-flash-offset 0x200000 \ |
| 11 | --image $(srctree)/u-boot.bin \ |
| 12 | --elf $(srctree)/u-boot |
| 13 | else |
| 14 | $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-axs.py \ |
| 15 | --header-type v1 \ |
| 16 | --arc-id 0x434 \ |
| 17 | --spi-flash-offset 0x0 \ |
| 18 | --image $(srctree)/u-boot.bin \ |
| 19 | --elf $(srctree)/u-boot |
| 20 | endif |
| 21 | $(Q)mkimage -T script -C none -n 'uboot update script' \ |
| 22 | -d $(srctree)/u-boot-update.txt \ |
| 23 | $(srctree)/u-boot-update.img &> /dev/null |