All pastes #93805 Raw Edit

Someone

public text v1 · immutable
#93805 ·published 2006-07-20 19:41 UTC
rendered paste body
#EXTRA_CFLAGS += -DCONFIG_IEEE80211_NOWEP=y
#EXTRA_CFLAGS += -DCONFIG_RTL8180_PM=y
#EXTRA_CFLAGS += -DCONIFG_RTL8180_IOMAP
EXTRA_CFLAGS += -I$(TOPDIR)/drivers/net/wireless
PWD = $(shell pwd)
KVER := $(shell uname -r)
KSRC := /lib/modules/$(KVER)/build
include $(KSRC)/.config
INSTALL_PREFIX :=
EXTRA_CFLAGS += -std=gnu89
EXTRA_CFLAGS += -O2
EXTRA_CFLAGS += -mhard-float -DCONFIG_FORCE_HARD_FLOAT=y

# if Rules.make exists in the kernel tree, we assume 2.4 style modules
# if it doesn't assume 2.6 style
OLDMAKE = $(wildcard $(KSRC)/Rules.make)

ifneq (,$(OLDMAKE))
export-objs:= ieee80211_rx.o ieee80211_tx.o ieee80211_wx.o ieee80211_module.o
export-objs+= ieee80211_crypt.o ieee80211_crypt_wep.o
export-objs+= r8180_core.o r8180_sa2400.o r8180_93cx6.o r8180_wx.o r8180_max2820.o r8180_gct.o
endif
ieee80211-r8180-objs := ieee80211_rx.o ieee80211_tx.o ieee80211_wx.o ieee80211_module.o
ieee80211_crypt-r8180-objs := ieee80211_crypt.o
ieee80211_crypt_wep-r8180-objs := ieee80211_crypt_wep.o
r8180-objs := r8180_core.o r8180_sa2400.o r8180_93cx6.o r8180_wx.o r8180_pm.o r8180_max2820.o r8180_gct.o

obj-m += ieee80211-r8180.o
obj-m += r8180.o
obj-m += ieee80211_crypt-r8180.o
obj-m += ieee80211_crypt_wep-r8180.o

ifeq (,$(OLDMAKE))
# Build for kernel 2.6
all: modules

modules: 2.6
Makefile: unmodified: line 1