f26c0c62ba
The infrastructure only provides HOST_ZYNQ_BOOT_BIN_DL_DIR, because this package is host only. Ideally the infra should provide ZYNQ_BOOT_BIN_DL_DIR, but it doesn't currently, and that requires more significant changes. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
23 lines
728 B
Makefile
23 lines
728 B
Makefile
################################################################################
|
|
#
|
|
# zynq-boot-bin
|
|
#
|
|
################################################################################
|
|
|
|
ZYNQ_BOOT_BIN_VERSION = xilinx-v2015.1
|
|
ZYNQ_BOOT_BIN_SOURCE = zynq-boot-bin.py
|
|
ZYNQ_BOOT_BIN_SITE = https://raw.githubusercontent.com/Xilinx/u-boot-xlnx/$(ZYNQ_BOOT_BIN_VERSION)/tools
|
|
ZYNQ_BOOT_BIN_LICENSE = GPL-3.0+
|
|
|
|
HOST_ZYNQ_BOOT_BIN_DEPENDENCIES = host-python
|
|
|
|
define HOST_ZYNQ_BOOT_BIN_EXTRACT_CMDS
|
|
cp $(HOST_ZYNQ_BOOT_BIN_DL_DIR)/$(ZYNQ_BOOT_BIN_SOURCE) $(@D)
|
|
endef
|
|
|
|
define HOST_ZYNQ_BOOT_BIN_INSTALL_CMDS
|
|
$(INSTALL) -D -m 0755 $(@D)/$(ZYNQ_BOOT_BIN_SOURCE) $(HOST_DIR)/bin/$(ZYNQ_BOOT_BIN_SOURCE)
|
|
endef
|
|
|
|
$(eval $(host-generic-package))
|