blob: 81ff498f818921be1de12eeabfc6ead10a60a4d4 [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
Alexey Brodkin7fd7b932018-07-11 18:24:44 +030021 $(Q)tools/mkimage -T script -C none -n 'uboot update script' \
Eugeniy Paltsev61569f32018-06-27 15:20:48 +030022 -d $(srctree)/u-boot-update.txt \
23 $(srctree)/u-boot-update.img &> /dev/null