mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-20 17:08:52 +09:00
![Eugeniy Paltsev](/assets/img/avatar_default.png)
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>
12 lines
402 B
Makefile
12 lines
402 B
Makefile
# 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
|