kumquat-buildroot/boot/beaglev-ddrinit/beaglev-ddrinit.mk
Peter Korsgaard 3b551f68a5 boot/beaglev-ddrlnit: rename to beaglev-ddrinit to match renamed upstream repo
And adjust DEVELOPERS and beaglev_defconfig to match.

The typo in the repo name has now been fixed:

https://github.com/starfive-tech/beagle_ddrinit/issues/6

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2021-05-10 22:04:38 +02:00

30 lines
1.0 KiB
Makefile

################################################################################
#
# beaglev-ddrinit
#
################################################################################
# Commit on the 'starfive' branch
BEAGLEV_DDRINIT_VERSION = 15b80de81263996affb2a29332aa681925709983
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
# unfortunately, no real license file, but several sources files are
# under GPL-2.0+, making the whole work GPL-2.0+
BEAGLEV_DDRINIT_LICENSE = GPL-2.0+
define BEAGLEV_DDRINIT_BUILD_CMDS
$(MAKE) -C $(@D)/build \
CROSSCOMPILE=$(HOST_DIR)/bin/riscv64-unknown-elf- \
SUFFIX=buildroot \
GIT_VERSION=$(BEAGLEV_DDRINIT_VERSION)
endef
define BEAGLEV_DDRINIT_INSTALL_IMAGES_CMDS
$(INSTALL) -D -m 0644 $(@D)/build/ddrinit-2133-buildroot.bin.out \
$(BINARIES_DIR)/ddrinit-2133-buildroot.bin.out
endef
$(eval $(generic-package))