Merge pull request #110 from mleeman/debian/buster/unstable

debian: initial package
This commit is contained in:
brektrou 2020-12-24 10:55:47 +00:00 committed by GitHub
commit deff094b9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
635 changed files with 216 additions and 4 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
*~

9
Makefile Executable file → Normal file
View File

@ -449,7 +449,7 @@ endif
EXTRA_CFLAGS += -DCONFIG_RTL8821A
_HAL_INTFS_FILES += hal/rtl8812a/hal8821a_fw.o
endif
ifeq ($(CONFIG_BT_COEXIST), y)
@ -903,7 +903,7 @@ _HAL_INTFS_FILES += \
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_SUB_NAME)_led.o \
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_SUB_NAME)_xmit.o \
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_SUB_NAME)_recv.o
ifeq ($(CONFIG_PCI_HCI), y)
_HAL_INTFS_FILES += hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_ops_linux.o
else
@ -2027,7 +2027,7 @@ ARCH := arm
CROSS_COMPILE := /home/android_sdk/Telechips/v13.05_r1-tcc-android-4.2.2_tcc893x-evm_build/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
KSRC := /home/android_sdk/Telechips/v13.05_r1-tcc-android-4.2.2_tcc893x-evm_build/kernel
MODULE_NAME := wlan
endif
endif
ifeq ($(CONFIG_PLATFORM_RTL8197D), y)
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN -DCONFIG_PLATFORM_RTL8197D
@ -2177,7 +2177,7 @@ rtk_core := core/rtw_cmd.o \
core/rtw_odm.o \
core/rtw_rm.o \
core/rtw_rm_fsm.o \
core/efuse/rtw_efuse.o
core/efuse/rtw_efuse.o
ifeq ($(CONFIG_SDIO_HCI), y)
rtk_core += core/rtw_sdio.o
@ -2208,6 +2208,7 @@ else
export CONFIG_RTL8821CU = m
module: modules
all: modules
modules:

0
core/efuse/rtw_efuse.c Executable file → Normal file
View File

0
core/mesh/rtw_mesh.c Executable file → Normal file
View File

0
core/mesh/rtw_mesh.h Executable file → Normal file
View File

0
core/mesh/rtw_mesh_hwmp.c Executable file → Normal file
View File

0
core/mesh/rtw_mesh_hwmp.h Executable file → Normal file
View File

0
core/mesh/rtw_mesh_pathtbl.c Executable file → Normal file
View File

0
core/mesh/rtw_mesh_pathtbl.h Executable file → Normal file
View File

0
core/rtw_ap.c Executable file → Normal file
View File

0
core/rtw_beamforming.c Executable file → Normal file
View File

0
core/rtw_br_ext.c Executable file → Normal file
View File

0
core/rtw_bt_mp.c Executable file → Normal file
View File

0
core/rtw_btcoex.c Executable file → Normal file
View File

0
core/rtw_btcoex_wifionly.c Executable file → Normal file
View File

0
core/rtw_cmd.c Executable file → Normal file
View File

0
core/rtw_debug.c Executable file → Normal file
View File

0
core/rtw_eeprom.c Executable file → Normal file
View File

0
core/rtw_ieee80211.c Executable file → Normal file
View File

0
core/rtw_io.c Executable file → Normal file
View File

0
core/rtw_ioctl_query.c Executable file → Normal file
View File

0
core/rtw_ioctl_rtl.c Executable file → Normal file
View File

0
core/rtw_ioctl_set.c Executable file → Normal file
View File

0
core/rtw_iol.c Executable file → Normal file
View File

0
core/rtw_mem.c Executable file → Normal file
View File

0
core/rtw_mi.c Executable file → Normal file
View File

0
core/rtw_mlme.c Executable file → Normal file
View File

0
core/rtw_mlme_ext.c Executable file → Normal file
View File

0
core/rtw_mp.c Executable file → Normal file
View File

0
core/rtw_mp_ioctl.c Executable file → Normal file
View File

0
core/rtw_odm.c Executable file → Normal file
View File

0
core/rtw_p2p.c Executable file → Normal file
View File

0
core/rtw_pwrctrl.c Executable file → Normal file
View File

0
core/rtw_recv.c Executable file → Normal file
View File

0
core/rtw_rf.c Executable file → Normal file
View File

0
core/rtw_rm.c Executable file → Normal file
View File

0
core/rtw_rm_fsm.c Executable file → Normal file
View File

0
core/rtw_rson.c Executable file → Normal file
View File

0
core/rtw_sdio.c Executable file → Normal file
View File

0
core/rtw_security.c Executable file → Normal file
View File

0
core/rtw_sreset.c Executable file → Normal file
View File

0
core/rtw_sta_mgt.c Executable file → Normal file
View File

0
core/rtw_tdls.c Executable file → Normal file
View File

0
core/rtw_vht.c Executable file → Normal file
View File

0
core/rtw_wapi.c Executable file → Normal file
View File

0
core/rtw_wapi_sms4.c Executable file → Normal file
View File

0
core/rtw_wlan_util.c Executable file → Normal file
View File

0
core/rtw_xmit.c Executable file → Normal file
View File

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
rtl8821cu (5.4.1) unstable; urgency=medium
* Initial release
-- Marc Leeman <m.leeman@televic.com> Fri, 18 Oct 2019 13:46:27 +0200

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
10

40
debian/control vendored Normal file
View File

@ -0,0 +1,40 @@
Source: rtl8821cu
Section: misc
Priority: optional
Maintainer: Marc Leeman <m.leeman@televic.com>
Build-Depends: debhelper (>= 10),
dkms,
bc,
linux-kbuild-4.19
Standards-Version: 4.3.0
Vcs-Browser: https://github.com/brektrou/rtl8821CU
Vcs-Git: https://github.com/brektrou/rtl8821CU.git
Package: rtl8821cu-dkms
Architecture: all
Multi-Arch: foreign
Depends: ${misc:Depends}
Provides: rtl8821cu-module
Description: DKMS files to build and install rtl8821cu
The rtl8821cu driver provides the driver for Realtek RTL8811CU/RTL8821CU
USB wifi adapter.
.
This package contains the DKMS files to build and install rtl8821cu.
.
To install this package, you have to install the header files for your
current kernel manually (usually included in the "linux-headers-<your
architecture>").
Package: rtl8821cu-src
Architecture: all
Depends: module-assistant,
debhelper (>= 5.0.37),
xz-utils,
${misc:Depends}
Description: Source of the compressed rtl8821cu module
The rtl8821cu driver provides the driver for Realtek RTL8811CU/RTL8821CU
USB wifi adapter.
.
You can use module-assistant or make-kpkg to build a modules package
for specific kernel.

17
debian/control.modules.in vendored Normal file
View File

@ -0,0 +1,17 @@
Source: rtl8821cu
Section: misc
Priority: optional
Maintainer: Marc Leeman <m.leeman@televic.com>
Build-Depends: debhelper (>> 3.0.0), zlib1g-dev, module-assistant, bc
Standards-Version: 3.5.8
Package: rtl8821cu-module-#KVERS#
Depends: debconf, initramfs-tools
Architecture: any
Provides: rtl8821cu-module
Description: rtl8821cu kernel module
The rtl8821cu driver provides the driver for Realtek RTL8811CU/RTL8821CU
USB wifi adapter.
.
This package contains the pre-compiled version for kernel #KVERS#

42
debian/copyright vendored Normal file
View File

@ -0,0 +1,42 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: rtl8821CU
Source: https://github.com/brektrou/rtl8821CU
Files: *
Copyright: 2020 brektrou <48123110+brektrou@users.noreply.github.com>
License: GPL-2.0+
This program 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.
.
This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public
License version 2 can be found in `/usr/share/common-licenses/GPL-2'.
Files: debian/*
Copyright: 2020 Marc Leeman <marc.leeman@gmail.com>
License: GPL-2.0+
This program 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.
.
This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General Public
License version 2 can be found in `/usr/share/common-licenses/GPL-2'.

View File

@ -0,0 +1,7 @@
#!/bin/sh -e
if [ "`uname -r`" = _KVERS_ ] ; then
depmod -a &
fi
#DEBHELPER#

34
debian/rtl8821-module-_KVERS_.postrm vendored Normal file
View File

@ -0,0 +1,34 @@
#!/bin/sh
# postrm script for cloop
#
# see: dh_installdeb(1)
# summary of how this script can be called:
# * <postrm> `remove'
# * <postrm> `purge'
# * <old-postrm> `upgrade' <new-version>
# * <new-postrm> `failed-upgrade' <old-version>
# * <new-postrm> `abort-install'
# * <new-postrm> `abort-install' <old-version>
# * <new-postrm> `abort-upgrade' <old-version>
# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
# for details, see /usr/share/doc/packaging-manual/
case "$1" in
purge)
;;
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
depmod -aq || true &
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 0
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
#DEBHELPER#

View File

@ -0,0 +1 @@
national-encoding

31
debian/rules vendored Executable file
View File

@ -0,0 +1,31 @@
#!/usr/bin/make -f
# -*- makefile -*-
include /usr/share/dpkg/default.mk
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
VERSION ?= $(shell dpkg-parsechangelog | sed -rne 's/^Version: ([0-9.]+).*$$/\1/p')
XDIR=debian/rtl8821cu-src/usr/src/modules/rtl8821cu-src
%:
dh $@ --with dkms
override_dh_auto_install:
dh_install -prtl8821cu-dkms -X.o -X.ko core/ usr/src/rtl8821cu-$(VERSION)
dh_install -prtl8821cu-dkms -X.o -X.ko hal/ usr/src/rtl8821cu-$(VERSION)
dh_install -prtl8821cu-dkms -X.o -X.ko os_dep/ usr/src/rtl8821cu-$(VERSION)
dh_install -prtl8821cu-dkms -X.o -X.ko platform/ usr/src/rtl8821cu-$(VERSION)
dh_install -prtl8821cu-dkms -X.o -X.ko include/ usr/src/rtl8821cu-$(VERSION)
dh_install -prtl8821cu-dkms Makefile usr/src/rtl8821cu-$(VERSION)
dh_install -prtl8821cu-dkms rtl8821c.mk usr/src/rtl8821cu-$(VERSION)
install -d $(XDIR)/debian
cd debian && install rules.m-a ../$(XDIR)/debian/rules && cp -r *modules.in* changelog copyright compat *_KVERS_* ../$(XDIR)/debian/
cd debian/rtl8821cu-src/usr/src && cp -a ../../../rtl8821cu-dkms/usr/src/rtl8821cu-$(VERSION)/* modules/rtl8821cu-src/ && XZ_OPT=-9 tar --xz -c -f rtl8821cu.tar.xz modules && rm -rf modules
override_dh_dkms:
dh_dkms -V
override_dh_auto_build:
:

30
debian/rules.m-a vendored Normal file
View File

@ -0,0 +1,30 @@
#!/usr/bin/make -f
# for m-a
SHELL=/bin/bash
PACKAGE=rtl8821cu-module
MA_DIR ?= /usr/share/modass
-include $(MA_DIR)/include/generic.mk
-include $(MA_DIR)/include/common-rules.mk
kdist_config: kdist_configure
kdist_configure: prep-deb-files
binary-modules: kdist_configure
$(MAKE) module KERNEL_DIR=$(KSRC) KVERSION=$(KVERS)
dh_installdirs -p $(PKGNAME) lib/modules/$(KVERS)/extra
cp 8821cu.ko $(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/extra
dh_testdir -a
dh_testroot -a
dh_installdebconf -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_gencontrol -a -- -v$(VERSION)
dh_md5sums -a
dh_builddeb -a --destdir=$(DEB_DESTDIR)
kdist_clean:
rm -rf *.ko debian/$(PKGNAME)
.PHONY: kdist kdist_image kdist_configure kdist_clean kdist
.NOTPARALLEL:

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)

1
debian/source/lintian-overrides vendored Normal file
View File

@ -0,0 +1 @@
dep5-copyright-license-name-not-unique

0
hal/HalPwrSeqCmd.c Executable file → Normal file
View File

0
hal/btc/halbtc8821c1ant.c Executable file → Normal file
View File

0
hal/btc/halbtc8821c1ant.h Executable file → Normal file
View File

0
hal/btc/halbtc8821c2ant.c Executable file → Normal file
View File

0
hal/btc/halbtc8821c2ant.h Executable file → Normal file
View File

0
hal/btc/halbtc8821cwifionly.c Executable file → Normal file
View File

0
hal/btc/halbtc8821cwifionly.h Executable file → Normal file
View File

0
hal/btc/halbtcoutsrc.h Executable file → Normal file
View File

0
hal/btc/mp_precomp.h Executable file → Normal file
View File

0
hal/efuse/efuse_mask.h Executable file → Normal file
View File

0
hal/efuse/rtl8821c/HalEfuseMask8821C_PCIE.c Executable file → Normal file
View File

0
hal/efuse/rtl8821c/HalEfuseMask8821C_PCIE.h Executable file → Normal file
View File

0
hal/efuse/rtl8821c/HalEfuseMask8821C_SDIO.c Executable file → Normal file
View File

0
hal/efuse/rtl8821c/HalEfuseMask8821C_SDIO.h Executable file → Normal file
View File

0
hal/efuse/rtl8821c/HalEfuseMask8821C_USB.c Executable file → Normal file
View File

0
hal/efuse/rtl8821c/HalEfuseMask8821C_USB.h Executable file → Normal file
View File

0
hal/hal_btcoex.c Executable file → Normal file
View File

0
hal/hal_btcoex_wifionly.c Executable file → Normal file
View File

0
hal/hal_com.c Executable file → Normal file
View File

0
hal/hal_com_c2h.h Executable file → Normal file
View File

0
hal/hal_com_phycfg.c Executable file → Normal file
View File

0
hal/hal_dm.c Executable file → Normal file
View File

0
hal/hal_dm.h Executable file → Normal file
View File

0
hal/hal_dm_acs.c Executable file → Normal file
View File

0
hal/hal_dm_acs.h Executable file → Normal file
View File

0
hal/hal_halmac.c Executable file → Normal file
View File

0
hal/hal_halmac.h Executable file → Normal file
View File

0
hal/hal_hci/hal_usb.c Executable file → Normal file
View File

0
hal/hal_intf.c Executable file → Normal file
View File

0
hal/hal_mcc.c Executable file → Normal file
View File

0
hal/hal_mp.c Executable file → Normal file
View File

0
hal/hal_phy.c Executable file → Normal file
View File

0
hal/halmac/halmac_2_platform.h Executable file → Normal file
View File

0
hal/halmac/halmac_88xx/halmac_8821c/halmac_8821c_cfg.h Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

Some files were not shown because too many files have changed in this diff Show More