Eugeniy Paltsev | 5545759 | 2018-06-04 14:52:32 +0300 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
| 2 | # |
| 3 | # Copyright (C) 2018 Synopsys, Inc. All rights reserved. |
| 4 | |
Eugeniy Paltsev | e87a552 | 2020-04-22 00:33:40 +0300 | [diff] [blame] | 5 | ifdef CONFIG_BOARD_HSDK |
Eugeniy Paltsev | a2e2709 | 2020-02-12 14:23:54 +0300 | [diff] [blame] | 6 | PLATFORM_CPPFLAGS += -mcpu=hs38_linux -mlittle-endian -matomic -mll64 \ |
| 7 | -mdiv-rem -mswap -mnorm -mmpy-option=9 -mbarrel-shifter \ |
| 8 | -mfpu=fpud_all |
Eugeniy Paltsev | a8ca052 | 2020-04-22 01:57:41 +0300 | [diff] [blame^] | 9 | |
| 10 | bsp-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 Paltsev | e87a552 | 2020-04-22 00:33:40 +0300 | [diff] [blame] | 17 | endif |
| 18 | |
| 19 | ifdef CONFIG_BOARD_HSDK_4XD |
| 20 | PLATFORM_CPPFLAGS += -mcpu=hs4x_rel31 -mlittle-endian -matomic -mll64 \ |
| 21 | -mdiv-rem -mswap -mnorm -mmpy-option=9 -mbarrel-shifter \ |
| 22 | -mfpu=fpud_all |
Eugeniy Paltsev | a2e2709 | 2020-02-12 14:23:54 +0300 | [diff] [blame] | 23 | |
Eugeniy Paltsev | 5545759 | 2018-06-04 14:52:32 +0300 | [diff] [blame] | 24 | bsp-generate: u-boot u-boot.bin |
| 25 | $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-hsdk.py \ |
Eugeniy Paltsev | a8ca052 | 2020-04-22 01:57:41 +0300 | [diff] [blame^] | 26 | --arc-id 0x54 --image $(srctree)/u-boot.bin \ |
Eugeniy Paltsev | 5545759 | 2018-06-04 14:52:32 +0300 | [diff] [blame] | 27 | --elf $(srctree)/u-boot |
Alexey Brodkin | 7fd7b93 | 2018-07-11 18:24:44 +0300 | [diff] [blame] | 28 | $(Q)tools/mkimage -T script -C none -n 'uboot update script' \ |
Eugeniy Paltsev | 5545759 | 2018-06-04 14:52:32 +0300 | [diff] [blame] | 29 | -d $(srctree)/u-boot-update.txt \ |
| 30 | $(srctree)/u-boot-update.scr &> /dev/null |
Eugeniy Paltsev | a8ca052 | 2020-04-22 01:57:41 +0300 | [diff] [blame^] | 31 | endif |