9fe92012ef
Examples (LED blinky and VGA + PS/2) for the Lattice iCE40-HX8K FPGA board from Olimex WWW: https://github.com/OLIMEX/iCE40HX8K-EVB PR: 227594 Submitted by: Johnny Sorocil <jsorocil@gmail.com> Differential Revision: https://reviews.freebsd.org/D15632
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# Created by: Johnny Sorocil <jsorocil@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= lattice-ice40-examples-hx8k
|
|
PORTVERSION= g20180310
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= jsorocil@gmail.com
|
|
COMMENT= Lattice iCE40 FPGA examples for the Olimex HX8K board
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= abc:cad/abc \
|
|
arachne-pnr:devel/arachne-pnr \
|
|
icepack:devel/icestorm \
|
|
yosys:devel/yosys
|
|
|
|
USES= gmake
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= OLIMEX
|
|
GH_PROJECT= iCE40HX8K-EVB
|
|
GH_TAGNAME= ae283711fc6c18f1905d0abf78195aed191ce612
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/lattice-ice40-olimex
|
|
NO_ARCH= yes
|
|
|
|
do-build:
|
|
${DO_MAKE_BUILD} -C ${WRKSRC}/demo/ice40hx8k-evb
|
|
${DO_MAKE_BUILD} -C ${WRKSRC}/demo/ice40-io-video
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/demo/ice40hx8k-evb/example.v \
|
|
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-blinky.v
|
|
${INSTALL_DATA} ${WRKSRC}/demo/ice40hx8k-evb/example.rpt \
|
|
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-blinky.rpt
|
|
${INSTALL_DATA} ${WRKSRC}/demo/ice40hx8k-evb/example.bin \
|
|
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-blinky.bin
|
|
${INSTALL_DATA} ${WRKSRC}/demo/ice40-io-video/example.v \
|
|
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-vga-ps2.v
|
|
${INSTALL_DATA} ${WRKSRC}/demo/ice40-io-video/example.rpt \
|
|
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-vga-ps2.rpt
|
|
${INSTALL_DATA} ${WRKSRC}/demo/ice40-io-video/example.bin \
|
|
${STAGEDIR}${EXAMPLESDIR}/ice40hx8k-vga-ps2.bin
|
|
|
|
.include <bsd.port.mk>
|