aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Jan Viktorin <viktorin@rehivetech.com>2015-07-14 17:14:13 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-07-18 23:02:26 +0200
commitee845a46e2e7d60ac52c38555c183020ce8cd711 (patch)
tree10e71d9dc1a7eedf4ddf1aca31f7ff4b71a751a8 /package
parent0773991694359905338ced70fb295ddbdf3a01bc (diff)
downloadbuildroot-ee845a46e2e7d60ac52c38555c183020ce8cd711.tar.gz
buildroot-ee845a46e2e7d60ac52c38555c183020ce8cd711.tar.bz2
host-zynq-boot-bin: new package
The package provides a Python script that can create the file BOOT.BIN to boot Xilinx Zynq based boards. The script zynq-boot-bin.py is contained in the Xilinx repository of U-Boot (it is not in upstream). [Thomas: - remove appearance of the package in menuconfig, U-Boot will depend on it directly, so there's no need for it to appear in menuconfig - use $(INSTALL) instead of cp for the installation - remove @ before the extract and install commands.] Signed-off-by: Jan Viktorin <viktorin@rehivetech.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package')
-rw-r--r--package/zynq-boot-bin/zynq-boot-bin.hash2
-rw-r--r--package/zynq-boot-bin/zynq-boot-bin.mk22
2 files changed, 24 insertions, 0 deletions
diff --git a/package/zynq-boot-bin/zynq-boot-bin.hash b/package/zynq-boot-bin/zynq-boot-bin.hash
new file mode 100644
index 0000000000..0bc23de197
--- /dev/null
+++ b/package/zynq-boot-bin/zynq-boot-bin.hash
@@ -0,0 +1,2 @@
+# From https://raw.githubusercontent.com/Xilinx/u-boot-xlnx
+sha1 940331ee02b0007099effa61e382fe7ea4174054 zynq-boot-bin.py
diff --git a/package/zynq-boot-bin/zynq-boot-bin.mk b/package/zynq-boot-bin/zynq-boot-bin.mk
new file mode 100644
index 0000000000..46051fb8a6
--- /dev/null
+++ b/package/zynq-boot-bin/zynq-boot-bin.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# 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 = GPLv3+
+
+HOST_ZYNQ_BOOT_BIN_DEPENDENCIES = host-python
+
+define HOST_ZYNQ_BOOT_BIN_EXTRACT_CMDS
+ cp $(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)/usr/bin/$(ZYNQ_BOOT_BIN_SOURCE)
+endef
+
+$(eval $(host-generic-package))