2021-05-04 22:51:36 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
2021-05-10 11:06:57 +02:00
|
|
|
# beaglev-ddrinit
|
2021-05-04 22:51:36 +02:00
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
# Commit on the 'starfive' branch
|
2022-07-25 01:51:38 +02:00
|
|
|
BEAGLEV_DDRINIT_VERSION = 8d6318acfe71e790c983b34448c9abfcfcec3ed8
|
2021-05-10 11:06:57 +02:00
|
|
|
BEAGLEV_DDRINIT_SITE = $(call github,starfive-tech,beagle_ddrinit,$(BEAGLEV_DDRINIT_VERSION))
|
|
|
|
BEAGLEV_DDRINIT_INSTALL_TARGET = NO
|
|
|
|
BEAGLEV_DDRINIT_INSTALL_IMAGES = YES
|
|
|
|
BEAGLEV_DDRINIT_DEPENDENCIES = host-riscv64-elf-toolchain
|
|
|
|
BEAGLEV_DDRINIT_LICENSE = GPL-2.0+
|
2021-06-09 08:38:35 +02:00
|
|
|
BEAGLEV_DDRINIT_LICENSE_FILES = LICENSE
|
2021-05-04 22:51:36 +02:00
|
|
|
|
2021-05-10 11:06:57 +02:00
|
|
|
define BEAGLEV_DDRINIT_BUILD_CMDS
|
2021-05-04 22:51:36 +02:00
|
|
|
$(MAKE) -C $(@D)/build \
|
2022-07-25 01:51:38 +02:00
|
|
|
CROSS_COMPILE=$(HOST_DIR)/bin/riscv64-unknown-elf- \
|
2021-05-04 22:51:36 +02:00
|
|
|
SUFFIX=buildroot \
|
2021-05-10 11:06:57 +02:00
|
|
|
GIT_VERSION=$(BEAGLEV_DDRINIT_VERSION)
|
2021-05-04 22:51:36 +02:00
|
|
|
endef
|
|
|
|
|
2021-05-10 11:06:57 +02:00
|
|
|
define BEAGLEV_DDRINIT_INSTALL_IMAGES_CMDS
|
2021-05-04 22:51:36 +02:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/build/ddrinit-2133-buildroot.bin.out \
|
|
|
|
$(BINARIES_DIR)/ddrinit-2133-buildroot.bin.out
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|