I've been looking and searching for a while now but can't figure this out.
I've downloaded Linux 64-bit drivers for my Broadcom wireless internal adapter in my laptop.
The file was in .tar.gaz, so far I've understood that you have to extract it an go on from there, so I have, now I can't figure out how to actually install it.
I doubt it's as easy as just moving over the files to my c:\ drive.
The files structure is like this:
/lib/
/src/
Makefile
Notice, I installed Ubuntu TODAY, so I have no idea what I'm doing. The Makefile file has install commands at the bottom when opened with Notepad++, but it does not make sense to me. Here's the info from the file:
#Check GCC version so we can apply -Wno-date-time if supported. GCC >= 4.9
empty:=
space:= $(empty) $(empty)
GCCVERSIONSTRING := $(shell expr `$(CC) -dumpversion`)
#Create version number without "."
GCCVERSION := $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f1 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f2 -d.)
GCCVERSION += $(shell expr `echo $(GCCVERSIONSTRING)` | cut -f3 -d.)
# Make sure the version number has at least 3 decimals
GCCVERSION += 00
# Remove spaces from the version number
GCCVERSION := $(subst $(space),$(empty),$(GCCVERSION))
# Crop the version number to 3 decimals.
GCCVERSION := $(shell expr `echo $(GCCVERSION)` | cut -b1-3)
GE_49 := $(shell expr `echo $(GCCVERSION)` \>= 490)
EXTRA_CFLAGS :=
ifeq ($(APIFINAL),CFG80211)
EXTRA_CFLAGS += -DUSE_CFG80211
$(info Using CFG80211 API)
endif
ifeq ($(APIFINAL),WEXT)
EXTRA_CFLAGS += -DUSE_IW
$(info Using Wireless Extension API)
endif
obj-m += wl.o
wl-objs :=
wl-objs += src/shared/linux_osl.o
wl-objs += src/wl/sys/wl_linux.o
wl-objs += src/wl/sys/wl_iw.o
wl-objs += src/wl/sys/wl_cfg80211_hybrid.o
EXTRA_CFLAGS += -I$(src)/src/include -I$(src)/src/common/include
EXTRA_CFLAGS += -I$(src)/src/wl/sys -I$(src)/src/wl/phy -I$(src)/src/wl/ppr/include
EXTRA_CFLAGS += -I$(src)/src/shared/bcmwifi/include
#EXTRA_CFLAGS += -DBCMDBG_ASSERT -DBCMDBG_ERR
ifeq "$(GE_49)" "1"
EXTRA_CFLAGS += -Wno-date-time
endif
EXTRA_LDFLAGS := $(src)/lib/wlc_hybrid.o_shipped
KBASE ?= /lib/modules/`uname -r`
KBUILD_DIR ?= $(KBASE)/build
MDEST_DIR ?= $(KBASE)/kernel/drivers/net/wireless
# Cross compile setup. Tool chain and kernel tree, replace with your own.
CROSS_TOOLS = /path/to/tools
CROSS_KBUILD_DIR = /path/to/kernel/tree
all:
KBUILD_NOPEDANTIC=1 make -C $(KBUILD_DIR) M=`pwd`
cross:
KBUILD_NOPEDANTIC=1 make CROSS_COMPILE=${CROSS_TOOLS} -C $(CROSS_KBUILD_DIR) M=`pwd`
clean:
KBUILD_NOPEDANTIC=1 make -C $(KBUILD_DIR) M=`pwd` clean
install:
install -D -m 755 wl.ko $(MDEST_DIR)