xref: /openbmc/u-boot/board/synopsys/axs10x/config.mk (revision e3963c09)
1# 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)tools/mkimage -T script -C none -n 'uboot update script' \
22		-d $(srctree)/u-boot-update.txt \
23		$(srctree)/u-boot-update.img &> /dev/null
24