X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a30d5ade953ce04e6541201181ea6f500b9fd653..46ff394de278350ffaed9e866561fb250904e342:/openwrt/target/linux/package/hostap/Makefile diff --git a/openwrt/target/linux/package/hostap/Makefile b/openwrt/target/linux/package/hostap/Makefile index c7d187bf3..d28550975 100644 --- a/openwrt/target/linux/package/hostap/Makefile +++ b/openwrt/target/linux/package/hostap/Makefile @@ -31,6 +31,7 @@ $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.built: $(MAKE) -C $(KERNEL_DIR)/ \ ARCH="$(LINUX_KARCH)" \ + CROSS_COMPILE="$(TARGET_CROSS)" \ SUBDIRS="$(PKG_BUILD_DIR)/driver/modules" \ modules touch $@ @@ -38,10 +39,10 @@ $(PKG_BUILD_DIR)/.built: $(IPKG_KMOD_HOSTAP): install -m0755 -d $(IDIR_KMOD_HOSTAP)/lib/modules/$(LINUX_VERSION) cp -fpR \ - $(PKG_BUILD_DIR)/driver/modules/hostap.o \ - $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_ccmp.o \ - $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_tkip.o \ - $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_wep.o \ + $(PKG_BUILD_DIR)/driver/modules/hostap.$(LINUX_KMOD_SUFFIX) \ + $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_ccmp.$(LINUX_KMOD_SUFFIX) \ + $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_tkip.$(LINUX_KMOD_SUFFIX) \ + $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_wep.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_HOSTAP)/lib/modules/$(LINUX_VERSION)/ $(RSTRIP_KMOD) $(IDIR_KMOD_HOSTAP) $(IPKG_BUILD) $(IDIR_KMOD_HOSTAP) $(PACKAGE_DIR) @@ -49,7 +50,7 @@ $(IPKG_KMOD_HOSTAP): $(IPKG_KMOD_HOSTAP_PCI): install -m0755 -d $(IDIR_KMOD_HOSTAP_PCI)/lib/modules/$(LINUX_VERSION) cp -fpR \ - $(PKG_BUILD_DIR)/driver/modules/hostap_pci.o \ + $(PKG_BUILD_DIR)/driver/modules/hostap_pci.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_HOSTAP_PCI)/lib/modules/$(LINUX_VERSION)/ $(RSTRIP_KMOD) $(IDIR_KMOD_HOSTAP_PCI) $(IPKG_BUILD) $(IDIR_KMOD_HOSTAP_PCI) $(PACKAGE_DIR) @@ -57,7 +58,7 @@ $(IPKG_KMOD_HOSTAP_PCI): $(IPKG_KMOD_HOSTAP_PLX): install -m0755 -d $(IDIR_KMOD_HOSTAP_PLX)/lib/modules/$(LINUX_VERSION) cp -fpR \ - $(PKG_BUILD_DIR)/driver/modules/hostap_plx.o \ + $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX) \ $(IDIR_KMOD_HOSTAP_PLX)/lib/modules/$(LINUX_VERSION)/ $(RSTRIP_KMOD) $(IDIR_KMOD_HOSTAP_PLX) $(IPKG_BUILD) $(IDIR_KMOD_HOSTAP_PLX) $(PACKAGE_DIR)