Skip to content
Permalink
Browse files

rtk_hciattach: introduce new package

  • Loading branch information
adamg88 committed Feb 12, 2020
1 parent 773afd3 commit 3fa2943d9dc59dcda73a15f4c0b14195477d5cc1
@@ -0,0 +1,17 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2018-present Team CoreELEC (https://coreelec.org)

PKG_NAME="rtk_hciattach"
PKG_VERSION="58820c428d2ecae6aaf5e4f00997652b9479853a"
PKG_SHA256="20161cf3011f57dc9912db7270be1a83e543a61ea8757c23eaf983542fb021e0"
PKG_LICENSE="GPL"
PKG_SITE="https://github.com/rockchip-linux/rkwifibt"
PKG_URL="https://github.com/rockchip-linux/rkwifibt/archive/$PKG_VERSION.tar.gz"
PKG_DEPENDS_TARGET="toolchain"
PKG_LONGDESC="Realtek BT FW loader"
PKG_TOOLCHAIN="make"

unpack() {
mkdir -p $PKG_BUILD
tar --strip-components=3 -xf $SOURCES/$PKG_NAME/$PKG_NAME-$PKG_VERSION.tar.gz -C $PKG_BUILD rkwifibt-$PKG_VERSION/realtek/rtk_hciattach
}
@@ -0,0 +1,19 @@
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS := -Wall -g
+CFLAGS := -g
#CC := $(CROSS_COMPLE)gcc
all: rtk_hciattach
OBJS := hciattach.o hciattach_rtk.o hciattach_h4.o rtb_fwc.o
@@ -12,6 +12,10 @@
clean:
rm -f $(OBJS) rtk_hciattach

+install:
+ install -m 755 -d $(DESTDIR)/usr/bin
+ install -m 755 rtk_hciattach $(DESTDIR)/usr/bin
+
tags: FORCE
ctags -R
find ./ -name "*.h" -o -name "*.c" -o -name "*.cc" -o -name "*.cpp" > cscope.files

0 comments on commit 3fa2943

Please sign in to comment.
You can’t perform that action at this time.