blob: db04b986d1b9d83dc4d54d60d0fab00be4a4f689 [file] [log] [blame]
Eugeniy Paltsev61569f32018-06-27 15:20:48 +03001# SPDX-License-Identifier: GPL-2.0+
2#
3# Copyright (C) 2018 Synopsys, Inc. All rights reserved.
4
5bsp-generate: u-boot u-boot.bin
6ifdef 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
13else
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
20endif
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