blob: ccac5442908e5032d754770a826aa041c6ff3164 [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
Eugeniy Paltseva2e27092020-02-12 14:23:54 +03005ifdef CONFIG_TARGET_AXS103
6 PLATFORM_CPPFLAGS += -mcpu=archs
7else
8 PLATFORM_CPPFLAGS += -mcpu=arc700 -mlock -mswape
9endif
10
Eugeniy Paltsev61569f32018-06-27 15:20:48 +030011bsp-generate: u-boot u-boot.bin
12ifdef CONFIG_ISA_ARCV2
13 $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-axs.py \
14 --header-type v2 \
15 --arc-id 0x53 \
16 --spi-flash-offset 0x200000 \
17 --image $(srctree)/u-boot.bin \
18 --elf $(srctree)/u-boot
19else
20 $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-axs.py \
21 --header-type v1 \
22 --arc-id 0x434 \
23 --spi-flash-offset 0x0 \
24 --image $(srctree)/u-boot.bin \
25 --elf $(srctree)/u-boot
26endif
Alexey Brodkin7fd7b932018-07-11 18:24:44 +030027 $(Q)tools/mkimage -T script -C none -n 'uboot update script' \
Eugeniy Paltsev61569f32018-06-27 15:20:48 +030028 -d $(srctree)/u-boot-update.txt \
29 $(srctree)/u-boot-update.img &> /dev/null