Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtk_hciattach: introduce new package
- Loading branch information
adamg
committed
Feb 12, 2020
1 parent
773afd3
commit 3fa2943
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |
19 changes: 19 additions & 0 deletions
19
packages/tools/rtk_hciattach/patches/rtk_hciattach-01-Makefile.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |