wr-nic includes Chipscope components: use prebuilt bitstream from OHR

parent 43ea325b
SUMMARY = "Provides the FPGA bitstream for White Rabbit Network Interface Card on SPEC"
SUMMARY = "Provides wr_nic_dio.bin bitstream for wr-nic over spec"
LICENSE = "GPL-2.0"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
PR = "r1"
inherit module
PR = "r0"
PV = "0.1"
# Patch the top Manifest.py to adapt the old WR-NIC repo to the new HDLMake format.
SRC_URI = "git://ohwr.org/white-rabbit/wr-nic.git \
file://top-manifest.patch"
SRCREV = "3bf04881479303ae41ce3fd2f4df90cd22ea8991"
S = "${WORKDIR}/git/syn/specdio"
SRC_URI = "http://www.ohwr.org/attachments/download/2687/wr_nic_dio.bin-2014-02-14"
SRC_URI[md5sum] = "371f22659e5acf8612e7e11c1481abf6"
FILES_${PN} += "/lib/firmware/fmc"
S = "${WORKDIR}/"
# Update and init Git submodules to clone some dependent HDL libraries
do_fetch_extra(){
git submodule update --init
}
addtask fetch_extra after do_unpack before do_patch
FILES_${PN} += "/lib/firmware/fmc"
# Use HDLMake to analyze the project and generate the Makefile
do_configure() {
hdlmake
do_compile() {
:
}
# Deploy the bitstream into the appropriated target folder
do_install() {
install -d ${D}/lib/firmware/fmc
install -m 0755 ${S}/wr_nic_dio_top.bin ${D}/lib/firmware/fmc/wr_nic_dio.bin
install -d ${D}/lib/firmware/fmc
install -m 0755 ${S}/wr_nic_dio.bin-2014-02-14 ${D}/lib/firmware/fmc/wr_nic_dio.bin
}
# The inherit of module.bbclass will automatically name module packages with
# "kernel-module-" prefix as required by the oe-core build environment.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment