360a062147
While most projects name their tarball <name>-<version>, where <version> is just the version number, some other projects add some prefix and/or suffix to their version number. In Buildroot, we currently encode the full version (with its prefix/suffix) in the <pkg>_VERSION variable. However, that doesn't work well to match version numbers with the release-monitoring.org website, which filters such prefixes/suffixes. This commit therefore removes the prefix/suffix from tarball-fetched packages. The name of the files being downloaded does not change. Signed-off-by: Victor Huesca <victor.huesca@bootlin.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
23 lines
728 B
Makefile
23 lines
728 B
Makefile
################################################################################
|
|
#
|
|
# zynq-boot-bin
|
|
#
|
|
################################################################################
|
|
|
|
ZYNQ_BOOT_BIN_VERSION = 2015.1
|
|
ZYNQ_BOOT_BIN_SOURCE = zynq-boot-bin.py
|
|
ZYNQ_BOOT_BIN_SITE = https://raw.githubusercontent.com/Xilinx/u-boot-xlnx/xilinx-v$(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))
|