blob: def944aad2b69cde5927d7ead22f2e19bcdf8bd9 [file] [log] [blame]
Eugeniy Paltsev55457592018-06-04 14:52:32 +03001# SPDX-License-Identifier: GPL-2.0+
2#
3# Copyright (C) 2018 Synopsys, Inc. All rights reserved.
4
Eugeniy Paltseve87a5522020-04-22 00:33:40 +03005ifdef CONFIG_BOARD_HSDK
Eugeniy Paltseva2e27092020-02-12 14:23:54 +03006PLATFORM_CPPFLAGS += -mcpu=hs38_linux -mlittle-endian -matomic -mll64 \
7 -mdiv-rem -mswap -mnorm -mmpy-option=9 -mbarrel-shifter \
8 -mfpu=fpud_all
Eugeniy Paltseva8ca0522020-04-22 01:57:41 +03009
10bsp-generate: u-boot u-boot.bin
11 $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-hsdk.py \
12 --arc-id 0x52 --image $(srctree)/u-boot.bin \
13 --elf $(srctree)/u-boot
14 $(Q)tools/mkimage -T script -C none -n 'uboot update script' \
15 -d $(srctree)/u-boot-update.txt \
16 $(srctree)/u-boot-update.scr &> /dev/null
Eugeniy Paltseve87a5522020-04-22 00:33:40 +030017endif
18
19ifdef CONFIG_BOARD_HSDK_4XD
20PLATFORM_CPPFLAGS += -mcpu=hs4x_rel31 -mlittle-endian -matomic -mll64 \
21 -mdiv-rem -mswap -mnorm -mmpy-option=9 -mbarrel-shifter \
22 -mfpu=fpud_all
Eugeniy Paltseva2e27092020-02-12 14:23:54 +030023
Eugeniy Paltsev55457592018-06-04 14:52:32 +030024bsp-generate: u-boot u-boot.bin
25 $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-hsdk.py \
Eugeniy Paltseva8ca0522020-04-22 01:57:41 +030026 --arc-id 0x54 --image $(srctree)/u-boot.bin \
Eugeniy Paltsev55457592018-06-04 14:52:32 +030027 --elf $(srctree)/u-boot
Alexey Brodkin7fd7b932018-07-11 18:24:44 +030028 $(Q)tools/mkimage -T script -C none -n 'uboot update script' \
Eugeniy Paltsev55457592018-06-04 14:52:32 +030029 -d $(srctree)/u-boot-update.txt \
30 $(srctree)/u-boot-update.scr &> /dev/null
Eugeniy Paltseva8ca0522020-04-22 01:57:41 +030031endif