29 lines
588 B
Bash
29 lines
588 B
Bash
|
|
EAPI="7"
|
|
|
|
inherit git-r3
|
|
|
|
DESCRIPTION="Firmware and udev rules for the Xilinx DLC10 JTAG cable"
|
|
HOMEPAGE="https://github.com/mntmn/zz9000-fw/tree/master/xilinx-xusb"
|
|
|
|
EGIT_REPO_URI="https://github.com/mntmn/zz9000-fw.git"
|
|
EGIT_REPO_BRANCH="master"
|
|
|
|
KEYWORDS="amd64"
|
|
SLOT="0"
|
|
S="${WORKDIR}/${P}/xilinx-xusb"
|
|
|
|
src_prepare() {
|
|
default_src_prepare
|
|
sed -i -e "s:/etc/:/lib/firmware/:" "${S}/xusbdfwu.rules" || die "fixing up firmware location failed"
|
|
}
|
|
|
|
src_install() {
|
|
insinto /lib/udev/rules.d
|
|
newins xusbdfwu.rules 99-xusbdfwu.rules
|
|
|
|
insinto /lib/firmware/xilinx-xusb
|
|
doins *.hex
|
|
}
|
|
|