A Gentoo overlay containing important ebuilds for using and developing the TBM.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tbm-overlay/dev-embedded/stlink/stlink-9999.ebuild

37 lines
794 B

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit git-r3 cmake-utils flag-o-matic linux-info
DESCRIPTION="On board debugger driver for stm32-discovery boards"
HOMEPAGE="https://github.com/texane/stlink"
EGIT_REPO_URI="https://github.com/texane/stlink"
LICENSE="BSD"
SLOT="0"
KEYWORDS=""
IUSE=""
RDEPEND="
virtual/libusb"
DEPEND="$RDEPEND
virtual/libusb
virtual/pkgconfig"
pkg_pretend() {
if linux_config_exists; then
if ! linux_chkconfig_module USB_STORAGE; then
ewarn "You will need to rebuild usb-storage as a module for v1 stlink to work."
fi
fi
}
src_install() {
enable_cmake-utils_src_install
cp -r etc $D
einfo "You may want to run \`udevadm control --reload-rules'."
dodoc README.md
}