2021-05-04 22:51:37 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# beaglev-secondboot
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Commit on the 'starfive' branch
|
2022-07-25 01:52:09 +02:00
|
|
|
BEAGLEV_SECONDBOOT_VERSION = e17302063c9a4b74475b18ff24dd149c27257354
|
2021-05-04 22:51:37 +02:00
|
|
|
BEAGLEV_SECONDBOOT_SITE = $(call github,starfive-tech,beagle_secondBoot,$(BEAGLEV_SECONDBOOT_VERSION))
|
|
|
|
BEAGLEV_SECONDBOOT_INSTALL_TARGET = NO
|
|
|
|
BEAGLEV_SECONDBOOT_INSTALL_IMAGES = YES
|
|
|
|
BEAGLEV_SECONDBOOT_DEPENDENCIES = host-riscv64-elf-toolchain
|
|
|
|
BEAGLEV_SECONDBOOT_LICENSE = GPL-2.0+
|
2021-06-09 08:38:37 +02:00
|
|
|
BEAGLEV_SECONDBOOT_LICENSE_FILES = LICENSE
|
2021-05-04 22:51:37 +02:00
|
|
|
|
|
|
|
define BEAGLEV_SECONDBOOT_BUILD_CMDS
|
|
|
|
$(MAKE) -C $(@D)/build \
|
2022-07-25 01:52:09 +02:00
|
|
|
CROSS_COMPILE=$(HOST_DIR)/bin/riscv64-unknown-elf- \
|
2021-05-04 22:51:37 +02:00
|
|
|
SUFFIX=buildroot \
|
|
|
|
GIT_VERSION=$(BEAGLEV_SECONDBOOT_VERSION)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define BEAGLEV_SECONDBOOT_INSTALL_IMAGES_CMDS
|
2022-07-25 01:52:09 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/build/bootloader-JH7100-buildroot.bin.out \
|
|
|
|
$(BINARIES_DIR)/bootloader-JH7100-buildroot.bin.out
|
2021-05-04 22:51:37 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|