diff options
author | Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> | 2018-06-04 14:52:32 +0300 |
---|---|---|
committer | Alexey Brodkin <abrodkin@synopsys.com> | 2018-06-15 15:54:43 +0300 |
commit | 9ddcfef6d425f373a20dc218d93c8039afd8a625 (patch) | |
tree | 1b1dc86a4387c140d758e24c19cbff7cf2c11604 /board/synopsys/hsdk/config.mk | |
parent | 606fddd76c7a045c09d544357806b0b4de4845c7 (diff) |
ARC: HSDK: Add tool and make target to generate bsp
HSDK board has preloader that reads SPI flash pages and searches
for a special image header to fetch and load binary.
Add tool, make target (bsp-generate) to generate
update script and u-boot binary image with header for preloader.
Also add script to default environment to apply updates.
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'board/synopsys/hsdk/config.mk')
-rw-r--r-- | board/synopsys/hsdk/config.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/board/synopsys/hsdk/config.mk b/board/synopsys/hsdk/config.mk new file mode 100644 index 0000000000..16fb59c438 --- /dev/null +++ b/board/synopsys/hsdk/config.mk @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# Copyright (C) 2018 Synopsys, Inc. All rights reserved. + +bsp-generate: u-boot u-boot.bin + $(Q)python3 $(srctree)/board/$(BOARDDIR)/headerize-hsdk.py \ + --arc-id 0x52 --image $(srctree)/u-boot.bin \ + --elf $(srctree)/u-boot + $(Q)mkimage -T script -C none -n 'uboot update script' \ + -d $(srctree)/u-boot-update.txt \ + $(srctree)/u-boot-update.scr &> /dev/null |