Merge pull request #1654 from lrusak/lan951x-led-ctl-libreelec-8.0

backport of #1653 (add lan951x-led-ctl)
This commit is contained in:
Christian Hewitt 2017-05-28 06:39:29 +04:00 committed by GitHub
commit 6dbb0a9698
2 changed files with 47 additions and 3 deletions

View File

@ -0,0 +1,41 @@
################################################################################
# This file is part of LibreELEC - https://libreelec.tv
# Copyright (C) 2016 Team LibreELEC
#
# LibreELEC is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# LibreELEC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with LibreELEC. If not, see <http://www.gnu.org/licenses/>.
################################################################################
PKG_NAME="lan951x-led-ctl"
PKG_VERSION="0291b91"
PKG_ARCH="arm"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/dradermacher/lan951x-led-ctl"
PKG_URL="https://github.com/dradermacher/lan951x-led-ctl/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain libusb"
PKG_SECTION="rpi-tools"
PKG_SHORTDESC="Control LEDs connected to LAN9512/LAN9514 ethernet USB controllers"
PKG_LONGDESC="Control LEDs connected to LAN9512/LAN9514 ethernet USB controllers"
PKG_AUTORECONF="no"
make_target() {
$CC -std=c11 -I./include -Wall -Wstrict-prototypes -Wconversion \
-Wmissing-prototypes -Wshadow -Wextra -Wunused \
$CFLAGS -lusb-1.0 $LDFLAGS -o lan951x-led-ctl src/lan951x-led-ctl.c
$STRIP lan951x-led-ctl
}
makeinstall_target() {
: # nop
}

View File

@ -18,15 +18,15 @@
PKG_NAME="rpi-tools"
PKG_VERSION=""
PKG_REV="102"
PKG_REV="104"
PKG_ARCH="arm"
PKG_LICENSE="GPL"
PKG_SITE=""
PKG_URL=""
PKG_DEPENDS_TARGET="toolchain RPi.GPIO picamera gpiozero"
PKG_DEPENDS_TARGET="toolchain RPi.GPIO picamera gpiozero lan951x-led-ctl"
PKG_SECTION="virtual"
PKG_SHORTDESC="A bundle of tools and programs for use on the Raspberry Pi"
PKG_LONGDESC="This bundle currently includes RPi.GPIO, picamera, gpiozero python modules"
PKG_LONGDESC="This bundle currently includes RPi.GPIO, picamera, gpiozero lan951x-led-ctl"
PKG_DISCAIMER="Raspberry Pi is a trademark of the Raspberry Pi Foundation http://www.raspberrypi.org"
PKG_IS_ADDON="yes"
@ -49,4 +49,7 @@ addon() {
cp -P $BCM2835_DIR/hardfp/opt/vc/bin/raspiyuv $ADDON_BUILD/$PKG_ADDON_ID/bin
cp -P $BCM2835_DIR/hardfp/opt/vc/bin/raspivid $ADDON_BUILD/$PKG_ADDON_ID/bin
cp -P $BCM2835_DIR/hardfp/opt/vc/bin/raspividyuv $ADDON_BUILD/$PKG_ADDON_ID/bin
# lan951x-led-ctl
cp -P $(get_build_dir lan951x-led-ctl)/lan951x-led-ctl $ADDON_BUILD/$PKG_ADDON_ID/bin
}