Fix Linux 2.4 compatibility

Filter out harmful options from OBJCOPY.  Linux 2.4 adds "-O binary" and
"-S" for i386 and x86_64, which would break the build.

Use $(TOP) in hal_unmangle.objcopy path.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3599 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2008-05-04 23:30:34 +00:00
parent 370c06ca3a
commit 9230ae95d4

View File

@ -89,8 +89,8 @@ else
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` \
$(filter-out -O binary -S,$(OBJCOPY)) \
`cat $(TOP)/scripts/hal_unmangle.objcopy` \
$(obj)/$(TARGET).hal.o
install: