Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driver for 5.10.x kernels #495

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions patches/bcm43455c0/7_45_206/nexmon/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ ifeq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
ifeq ($(findstring 5.4,$(shell uname -r)),5.4)
@printf "\033[0;31m BUILDING DRIVER for kernel 5.4\033[0m brcmfmac_5.4.y-nexmon/brcmfmac.ko (details: log/driver.log)\n" $@
$(Q)make -C /lib/modules/$(shell uname -r)/build M=$$PWD/brcmfmac_5.4.y-nexmon -j2 >log/driver.log
else ifeq ($(findstring 5.10,$(shell uname -r)),5.10)
@printf "\033[0;31m BUILDING DRIVER for kernel 5.10\033[0m brcmfmac_5.10.y-nexmon/brcmfmac.ko (details: log/driver.log)\n" $@
$(Q)make -C /lib/modules/$(shell uname -r)/build M=$$PWD/brcmfmac_5.10.y-nexmon -j2 >log/driver.log
else
$(warning Warning: Kernel version not supported)
endif
Expand Down Expand Up @@ -187,6 +190,8 @@ endif
@printf "\033[0;31m RELOADING\033[0m brcmfmac\n"
ifeq ($(findstring 5.4,$(shell uname -r)),5.4)
$(Q)insmod brcmfmac_5.4.y-nexmon/brcmfmac.ko
else ifeq ($(findstring 5.10,$(shell uname -r)),5.10)
$(Q)insmod brcmfmac_5.10.y-nexmon/brcmfmac.ko
endif
else
$(warning Warning: Cannot install firmware on this arch. brcmfmac43455-sdio.bin needs to be copied manually into /lib/firmware/brcm/ on your RPI3B+/4)
Expand All @@ -201,6 +206,9 @@ ifeq ($(shell uname -m),$(filter $(shell uname -m), armv6l armv7l))
ifeq ($(findstring 5.4,$(shell uname -r)),5.4)
@printf "\033[0;31m CLEANING DRIVER\033[0m\n" $@
$(Q)make -C /lib/modules/$(shell uname -r)/build M=$$PWD/brcmfmac_5.4.y-nexmon clean
else ifeq ($(findstring 5.10,$(shell uname -r)),5.10)
@printf "\033[0;31m CLEANING DRIVER\033[0m\n" $@
$(Q)make -C /lib/modules/$(shell uname -r)/build M=$$PWD/brcmfmac_5.10.y-nexmon clean
endif
endif
$(Q)rm -f BUILD_NUMBER
Expand Down
56 changes: 56 additions & 0 deletions patches/bcm43455c0/7_45_206/nexmon/brcmfmac_5.10.y-nexmon/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#
# Makefile fragment for Broadcom 802.11n Networking Device Driver
#
# Copyright (c) 2010 Broadcom Corporation
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
# SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
# OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

ccflags-y += \
-I$(NEXMON_ROOT)/patches/bcm43455c0/7_45_206/nexmon/brcmfmac_5.10.y-nexmon \
-I$(NEXMON_ROOT)/patches/bcm43455c0/7_45_206/nexmon/brcmfmac_5.10.y-nexmon/include \
-DDEBUG

obj-$(CONFIG_BRCMFMAC) += brcmfmac.o
brcmfmac-objs += \
cfg80211.o \
chip.o \
fwil.o \
fweh.o \
p2p.o \
proto.o \
common.o \
core.o \
firmware.o \
feature.o \
btcoex.o \
vendor.o \
pno.o \
debug.o
brcmfmac-$(CONFIG_BRCMFMAC_PROTO_BCDC) += \
bcdc.o \
fwsignal.o
brcmfmac-$(CONFIG_BRCMFMAC_PROTO_MSGBUF) += \
commonring.o \
flowring.o \
msgbuf.o
brcmfmac-$(CONFIG_BRCMFMAC_SDIO) += \
sdio.o \
bcmsdh.o
brcmfmac-$(CONFIG_BRCMFMAC_USB) += \
usb.o
brcmfmac-$(CONFIG_BRCMFMAC_PCIE) += \
pcie.o
brcmfmac-$(CONFIG_BRCM_TRACING) += \
tracepoint.o
brcmfmac-$(CONFIG_OF) += \
of.o
Loading