Changeset 3883
- Timestamp:
- 12/17/08 19:13:11 (1 year ago)
- Files:
-
- madwifi/branches/madwifi-free/Makefile (modified) (1 diff)
- madwifi/branches/madwifi-free/Makefile.inc (modified) (3 diffs)
- madwifi/branches/madwifi-free/ath/Makefile (modified) (1 diff)
- madwifi/branches/madwifi-free/ath/Makefile.kernel (modified) (1 diff)
- madwifi/branches/madwifi-free/ath_hal/Makefile (modified) (4 diffs)
- madwifi/branches/madwifi-free/ath_hal/Makefile.kernel (modified) (3 diffs)
- madwifi/branches/madwifi-free/ath_hal/ah_target.inc (deleted)
- madwifi/branches/madwifi-free/ath_hal/uudecode.c (deleted)
- madwifi/branches/madwifi-free/ath_rate/amrr/Makefile (modified) (1 diff)
- madwifi/branches/madwifi-free/ath_rate/amrr/Makefile.kernel (modified) (1 diff)
- madwifi/branches/madwifi-free/ath_rate/minstrel/Makefile (modified) (1 diff)
- madwifi/branches/madwifi-free/ath_rate/minstrel/Makefile.kernel (modified) (1 diff)
- madwifi/branches/madwifi-free/ath_rate/onoe/Makefile (modified) (1 diff)
- madwifi/branches/madwifi-free/ath_rate/onoe/Makefile.kernel (modified) (1 diff)
- madwifi/branches/madwifi-free/ath_rate/sample/Makefile (modified) (1 diff)
- madwifi/branches/madwifi-free/ath_rate/sample/Makefile.kernel (modified) (1 diff)
- madwifi/branches/madwifi-free/net80211/Makefile (modified) (1 diff)
- madwifi/branches/madwifi-free/net80211/Makefile.kernel (modified) (1 diff)
- madwifi/branches/madwifi-free/scripts/hal_unmangle.objcopy (deleted)
- madwifi/branches/madwifi-free/scripts/hal_unmangle.sed (deleted)
- madwifi/branches/madwifi-free/scripts/hal_unmangle_log (deleted)
- madwifi/branches/madwifi-free/scripts/update_hal_unmangle (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
madwifi/branches/madwifi-free/Makefile
r3772 r3883 139 139 info: 140 140 @echo "The following settings will be used for compilation:" 141 @echo "TARGET : $(TARGET)"142 141 @echo "ARCH : $(ARCH)" 143 142 @echo "BUS : $(BUS)" madwifi/branches/madwifi-free/Makefile.inc
r3816 r3883 97 97 export ARCH 98 98 99 # Determine TARGET100 include $(TOP)/ath_hal/ah_target.inc101 export TARGET102 COPTS += -DTARGET='"$(TARGET)"'103 104 99 # KMODPATH nominates the directory where the modules will be 105 100 # installed to … … 152 147 INCS= -include $(TOP)/include/compat.h -I$(TOP)/include 153 148 154 # TARGET defines the target platform architecture. It must match one of155 # the target platforms supported by the HAL. The default target is the156 # host machine architecture. You can override TARGET on the make command157 # line or in the environment. See hal/linux/*.inc for the list of158 # supported targets.159 ifeq (,$(wildcard $(HAL)/public/$(TARGET).inc))160 TARGETS=$(basename $(notdir $(wildcard $(HAL)/public/*.inc)))161 $(error TARGET $(TARGET) is invalid, valid targets are: $(TARGETS))162 endif163 164 149 ifndef ATH_DEBUG_SPINLOCKS 165 150 export ATH_DEBUG_SPINLOCKS=0 … … 211 196 endif 212 197 213 # Don't let HAL mess with the toolchain - save toolchain variables214 save_CC := $(CC)215 save_LD := $(LD)216 save_STRIP := $(STRIP)217 save_OBJCOPY := $(OBJCOPY)218 save_NM := $(NM)219 220 include $(HAL)/public/$(TARGET).inc221 222 # Restore toolchain variables223 CC := $(save_CC)224 LD := $(save_LD)225 STRIP := $(save_STRIP)226 OBJCOPY := $(save_OBJCOPY)227 NM := $(save_NM)228 229 198 include $(TOP)/BuildCaps.inc 230 199 madwifi/branches/madwifi-free/ath/Makefile
r3704 r3883 62 62 INCS += -I$(TOP) -I$(ATH_HAL) -I$(HAL) -I$(WLAN) 63 63 64 EXTRA_CFLAGS+= $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"64 EXTRA_CFLAGS+= $(INCS) $(COPTS) 65 65 66 66 -include $(TOPDIR)/Rules.make madwifi/branches/madwifi-free/ath/Makefile.kernel
r3748 r3883 34 34 INCS += -I$(TOP) -I$(ATH_HAL) -I$(HAL) -I$(WLAN) 35 35 36 EXTRA_CFLAGS += $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"36 EXTRA_CFLAGS += $(INCS) $(COPTS) 37 37 38 38 ifneq ($(VERSION).$(PATCHLEVEL),2.4) madwifi/branches/madwifi-free/ath_hal/Makefile
r3816 r3883 47 47 48 48 obj-m += ath_hal.o 49 ath_hal-objs := ah_os.o $(TARGET).hal.o 50 51 hostprogs-y := uudecode 52 53 # For older 2.6 kernels 54 host-progs := $(hostprogs-y) 49 ath_hal-objs := ah_os.o $(HAL)/ath_hal.o 55 50 56 51 ifdef LINUX24 … … 60 55 INCS += -I$(ATH_HAL) -I$(HAL) 61 56 62 EXTRA_CFLAGS+= $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\" 63 64 ifneq (,$(filter xscale% arm%,$(TARGET))) 65 LDFLAGS += --no-warn-mismatch 66 endif 57 EXTRA_CFLAGS+= $(INCS) $(COPTS) 67 58 68 59 -include $(TOPDIR)/Rules.make … … 71 62 all: 72 63 $(MAKE) -C $(KERNELPATH) SUBDIRS=$(shell pwd) modules 73 74 ifdef LINUX2475 $(obj)/uudecode: $(obj)/uudecode.c76 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<77 endif78 79 quiet_cmd_uudecode = UUDECODE $@80 cmd_uudecode = $(obj)/uudecode -o $@ $<81 82 $(obj)/$(TARGET)._hal.o: $(HAL)/public/$(TARGET).hal.o.uu $(obj)/uudecode83 ifdef LINUX2484 $(cmd_uudecode)85 else86 $(call if_changed,uudecode)87 endif88 89 # Replace as many hashed names as possible with meaningful90 # ones in the symbol table of the binary kernel module for HAL.91 quiet_cmd_unmangle = UNMANGLE $@92 cmd_unmangle = $(filter-out -O binary -S,$(OBJCOPY)) \93 $$(cat $(TOP)/scripts/hal_unmangle.objcopy) $< $@94 95 $(obj)/$(TARGET).hal.o: $(obj)/$(TARGET)._hal.o96 ifdef LINUX2497 $(cmd_unmangle)98 else99 $(call if_changed,unmangle)100 endif101 64 102 65 .PHONY: install … … 110 73 .PHONY: clean 111 74 clean: 112 rm -f *~ *.o *.ko *.mod.c uudecode.*.cmd75 rm -f *~ *.o *.ko *.mod.c .*.cmd 113 76 rm -f modules.order .depend .version .*.o.flags .*.o.d 114 77 rm -rf .tmp_versions madwifi/branches/madwifi-free/ath_hal/Makefile.kernel
r2626 r3883 10 10 11 11 include $(TOP)/BuildCaps.inc 12 include $(TOP)/ath_hal/ah_target.inc13 12 14 13 ATH_HAL=$(TOP)/ath_hal … … 19 18 INCS += -I$(ATH_HAL) -I$(HAL) 20 19 21 EXTRA_CFLAGS += $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\" \ 22 -DTARGET=\"$(TARGET)\" 23 24 ifneq (,$(filter xscale% arm%,$(TARGET))) 25 LDFLAGS := --no-warn-mismatch 26 endif 20 EXTRA_CFLAGS += $(INCS) $(COPTS) 27 21 28 22 ifneq ($(VERSION).$(PATCHLEVEL),2.4) 29 23 obj-$(CONFIG_ATHEROS) += ath_hal.o 30 ath_hal-objs := ah_os.o $(TARGET).hal.o 31 32 hostprogs-y := uudecode 33 host-progs := $(hostprogs-y) 24 ath_hal-objs := ah_os.o $(HAL)/ath_hal.o 34 25 endif 35 26 36 27 ifeq ($(VERSION).$(PATCHLEVEL),2.4) 37 obj-$(CONFIG_ATHEROS) += ah_os.o $( TARGET).hal.o28 obj-$(CONFIG_ATHEROS) += ah_os.o $(HAL)/ath_hal.o 38 29 39 30 O_TARGET := ath_hal.o … … 42 33 export-objs := ah_os.o 43 34 list-multi := ath_hal.o 44 45 uudecode: uudecode.c46 $(HOSTCC) $(HOSTCFLAGS) -o $@ $<47 35 endif 48 49 $(obj)/$(TARGET).hal.o: $(HAL)/public/$(TARGET).hal.o.uu $(obj)/uudecode50 $(Q)echo "deps_$@ :=" >$(@D)/.$(@F).cmd51 $(Q)$(obj)/uudecode -o $@ $<madwifi/branches/madwifi-free/ath_rate/amrr/Makefile
r3704 r3883 51 51 INCS += -I$(TOP) -I$(ATH) -I$(ATH_HAL) -I$(HAL) 52 52 53 EXTRA_CFLAGS+= $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"53 EXTRA_CFLAGS+= $(INCS) $(COPTS) 54 54 55 55 -include $(TOPDIR)/Rules.make madwifi/branches/madwifi-free/ath_rate/amrr/Makefile.kernel
r2395 r3883 20 20 INCS = -include $(COMPAT)/compat.h -I$(COMPAT) 21 21 INCS += -I$(TOP) -I$(ATH) -I$(ATH_HAL) -I$(HAL) 22 EXTRA_CFLAGS += $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"22 EXTRA_CFLAGS += $(INCS) $(COPTS) 23 23 24 24 ifneq ($(VERSION).$(PATCHLEVEL),2.4) madwifi/branches/madwifi-free/ath_rate/minstrel/Makefile
r3704 r3883 49 49 INCS += -I$(TOP) -I$(ATH) -I$(ATH_HAL) -I$(HAL) 50 50 51 EXTRA_CFLAGS+= $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"51 EXTRA_CFLAGS+= $(INCS) $(COPTS) 52 52 53 53 -include $(TOPDIR)/Rules.make madwifi/branches/madwifi-free/ath_rate/minstrel/Makefile.kernel
r2395 r3883 20 20 INCS = -include $(COMPAT)/compat.h -I$(COMPAT) 21 21 INCS += -I$(TOP) -I$(ATH) -I$(ATH_HAL) -I$(HAL) 22 EXTRA_CFLAGS += $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"22 EXTRA_CFLAGS += $(INCS) $(COPTS) 23 23 24 24 ifneq ($(VERSION).$(PATCHLEVEL),2.4) madwifi/branches/madwifi-free/ath_rate/onoe/Makefile
r3704 r3883 51 51 INCS += -I$(TOP) -I$(ATH) -I$(ATH_HAL) -I$(HAL) 52 52 53 EXTRA_CFLAGS+= $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"53 EXTRA_CFLAGS+= $(INCS) $(COPTS) 54 54 55 55 -include $(TOPDIR)/Rules.make madwifi/branches/madwifi-free/ath_rate/onoe/Makefile.kernel
r2395 r3883 20 20 INCS = -include $(COMPAT)/compat.h -I$(COMPAT) 21 21 INCS += -I$(TOP) -I$(ATH) -I$(ATH_HAL) -I$(HAL) 22 EXTRA_CFLAGS += $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"22 EXTRA_CFLAGS += $(INCS) $(COPTS) 23 23 24 24 ifneq ($(VERSION).$(PATCHLEVEL),2.4) madwifi/branches/madwifi-free/ath_rate/sample/Makefile
r3704 r3883 49 49 INCS += -I$(TOP) -I$(ATH) -I$(ATH_HAL) -I$(HAL) 50 50 51 EXTRA_CFLAGS+= $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"51 EXTRA_CFLAGS+= $(INCS) $(COPTS) 52 52 53 53 -include $(TOPDIR)/Rules.make madwifi/branches/madwifi-free/ath_rate/sample/Makefile.kernel
r2395 r3883 20 20 INCS = -include $(COMPAT)/compat.h -I$(COMPAT) 21 21 INCS += -I$(TOP) -I$(ATH) -I$(ATH_HAL) -I$(HAL) 22 EXTRA_CFLAGS += $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"22 EXTRA_CFLAGS += $(INCS) $(COPTS) 23 23 24 24 ifneq ($(VERSION).$(PATCHLEVEL),2.4) madwifi/branches/madwifi-free/net80211/Makefile
r3704 r3883 79 79 INCS += -I$(TOP) -I$(ATH_HAL) -I$(HAL) 80 80 81 EXTRA_CFLAGS+=$(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"81 EXTRA_CFLAGS+=$(INCS) $(COPTS) 82 82 83 83 -include $(TOPDIR)/Rules.make madwifi/branches/madwifi-free/net80211/Makefile.kernel
r3067 r3883 18 18 INCS = -include $(COMPAT)/compat.h -I$(COMPAT) 19 19 INCS += -I$(TOP) -I$(ATH_HAL) -I$(HAL) 20 EXTRA_CFLAGS += $(INCS) $(COPTS) -DOPT_AH_H=\"public/$(TARGET).opt_ah.h\"20 EXTRA_CFLAGS += $(INCS) $(COPTS) 21 21 22 22 #
