use target optimization flags for madwifi tools

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5314 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Nicolas Thill 2006-10-27 19:14:43 +00:00
parent 35d17c5169
commit 803f212243
1 changed files with 5 additions and 2 deletions

View File

@ -105,19 +105,22 @@ MADWIFI_MAKEOPTS= -C $(PKG_BUILD_DIR) \
ifeq ($(findstring AHB,$(BUS)),AHB) ifeq ($(findstring AHB,$(BUS)),AHB)
define Build/Compile/ahb define Build/Compile/ahb
$(MAKE) $(MADWIFI_MAKEOPTS) BUS="AHB" all $(MAKE) $(MADWIFI_MAKEOPTS) BUS="AHB" modules
endef endef
endif endif
ifeq ($(findstring PCI,$(BUS)),PCI) ifeq ($(findstring PCI,$(BUS)),PCI)
define Build/Compile/pci define Build/Compile/pci
$(MAKE) $(MADWIFI_MAKEOPTS) BUS="PCI" all $(MAKE) $(MADWIFI_MAKEOPTS) BUS="PCI" modules
endef endef
endif endif
define Build/Compile define Build/Compile
$(call Build/Compile/ahb) $(call Build/Compile/ahb)
$(call Build/Compile/pci) $(call Build/Compile/pci)
$(MAKE) $(MADWIFI_MAKEOPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
tools
endef endef
define Build/InstallDev define Build/InstallDev