Index: package/madwifi/Makefile =================================================================== --- package/madwifi/Makefile (revision 10836) +++ package/madwifi/Makefile (working copy) @@ -164,10 +164,12 @@ $(SED) 's,-E[LB] ,,g' $(PKG_BUILD_DIR)/hal/public/*.inc endef -define Build/Compile +ifneq ($(CONFIG_PACKAGE_kmod-madwifi),) + define Build/Compile $(call Build/Compile/ahb) $(call Build/Compile/pci) -endef + endef +endif define Build/InstallDev mkdir -p $(1)/usr/include/madwifi