Debugging function cleanup:
[madwifi/.git] / ath_hal / Makefile
index aeda73143a5d61373c9d0a54f5ec0cb3867b06c1..c9a3ef4a36d21ffa7a474ed301b6a3016a9c1c26 100644 (file)
@@ -87,10 +87,18 @@ ifdef LINUX24
 else
        $(call if_changed,uudecode)
 endif
+       # Replace as many hashed names as possible with meaningful
+       # ones in the symbol table of the binary kernel module for HAL.
+       $(OBJCOPY) \
+               `cat $(shell dirname $(obj))/scripts/hal_unmangle.objcopy` \
+               $(obj)/$(TARGET).hal.o
 
 install:
        test -d $(DESTDIR)/$(KMODPATH) || mkdir -p $(DESTDIR)/$(KMODPATH)
        install -m 0644 ath_hal.$(KMODSUF) $(DESTDIR)/$(KMODPATH)
+ifneq ($(strip $(ALQ)),0)
+       install -m 0644 alq.$(KMODSUF) $(DESTDIR)/$(KMODPATH)
+endif
 
 clean:
        rm -f *~ *.o *.ko *.mod.c uudecode .*.cmd
@@ -99,3 +107,4 @@ clean:
 
 ath_hal.o: $(ath_hal-objs)
        $(LD) $(LDFLAGS) -o ath_hal.$(KMODSUF) -r $(ath_hal-objs)
+