mirror of
https://github.com/brektrou/rtl8821CU.git
synced 2025-12-26 04:36:18 +08:00
debian: initial package
This commit is contained in:
parent
428a082048
commit
0dd5682645
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*~
|
||||||
9
Makefile
9
Makefile
@ -449,7 +449,7 @@ endif
|
|||||||
EXTRA_CFLAGS += -DCONFIG_RTL8821A
|
EXTRA_CFLAGS += -DCONFIG_RTL8821A
|
||||||
|
|
||||||
_HAL_INTFS_FILES += hal/rtl8812a/hal8821a_fw.o
|
_HAL_INTFS_FILES += hal/rtl8812a/hal8821a_fw.o
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_BT_COEXIST), y)
|
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)_led.o \
|
||||||
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_SUB_NAME)_xmit.o \
|
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_SUB_NAME)_xmit.o \
|
||||||
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_SUB_NAME)_recv.o
|
hal/$(RTL871X)/$(HCI_NAME)/rtl$(MODULE_SUB_NAME)_recv.o
|
||||||
|
|
||||||
ifeq ($(CONFIG_PCI_HCI), y)
|
ifeq ($(CONFIG_PCI_HCI), y)
|
||||||
_HAL_INTFS_FILES += hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_ops_linux.o
|
_HAL_INTFS_FILES += hal/$(RTL871X)/$(HCI_NAME)/$(HCI_NAME)_ops_linux.o
|
||||||
else
|
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-
|
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
|
KSRC := /home/android_sdk/Telechips/v13.05_r1-tcc-android-4.2.2_tcc893x-evm_build/kernel
|
||||||
MODULE_NAME := wlan
|
MODULE_NAME := wlan
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PLATFORM_RTL8197D), y)
|
ifeq ($(CONFIG_PLATFORM_RTL8197D), y)
|
||||||
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN -DCONFIG_PLATFORM_RTL8197D
|
EXTRA_CFLAGS += -DCONFIG_BIG_ENDIAN -DCONFIG_PLATFORM_RTL8197D
|
||||||
@ -2177,7 +2177,7 @@ rtk_core := core/rtw_cmd.o \
|
|||||||
core/rtw_odm.o \
|
core/rtw_odm.o \
|
||||||
core/rtw_rm.o \
|
core/rtw_rm.o \
|
||||||
core/rtw_rm_fsm.o \
|
core/rtw_rm_fsm.o \
|
||||||
core/efuse/rtw_efuse.o
|
core/efuse/rtw_efuse.o
|
||||||
|
|
||||||
ifeq ($(CONFIG_SDIO_HCI), y)
|
ifeq ($(CONFIG_SDIO_HCI), y)
|
||||||
rtk_core += core/rtw_sdio.o
|
rtk_core += core/rtw_sdio.o
|
||||||
@ -2208,6 +2208,7 @@ else
|
|||||||
|
|
||||||
export CONFIG_RTL8821CU = m
|
export CONFIG_RTL8821CU = m
|
||||||
|
|
||||||
|
module: modules
|
||||||
all: modules
|
all: modules
|
||||||
|
|
||||||
modules:
|
modules:
|
||||||
|
|||||||
5
debian/changelog
vendored
Normal file
5
debian/changelog
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
rtl8821cu (5.4.1-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
1
debian/compat
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
10
|
||||||
39
debian/control
vendored
Normal file
39
debian/control
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
Source: rtl8821cu
|
||||||
|
Section: misc
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Marc Leeman <m.leeman@televic.com>
|
||||||
|
Build-Depends: debhelper (>= 10),
|
||||||
|
dkms,
|
||||||
|
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: amd64
|
||||||
|
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: amd64
|
||||||
|
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
17
debian/control.modules.in
vendored
Normal 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
|
||||||
|
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#
|
||||||
|
|
||||||
22
debian/copyright
vendored
Normal file
22
debian/copyright
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: rtl8821CU
|
||||||
|
Source: https://github.com/brektrou/rtl8821CU
|
||||||
|
|
||||||
|
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'.
|
||||||
7
debian/rtl8821-module-_KVERS_.postinst.modules.in
vendored
Normal file
7
debian/rtl8821-module-_KVERS_.postinst.modules.in
vendored
Normal 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
34
debian/rtl8821-module-_KVERS_.postrm
vendored
Normal 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#
|
||||||
|
|
||||||
|
|
||||||
28
debian/rules
vendored
Executable file
28
debian/rules
vendored
Executable file
@ -0,0 +1,28 @@
|
|||||||
|
#!/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
|
||||||
30
debian/rules.m-a
vendored
Normal file
30
debian/rules.m-a
vendored
Normal 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
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (native)
|
||||||
Loading…
x
Reference in New Issue
Block a user