mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 14:37:57 +00:00
parent
0153a9bfea
commit
79fcadc146
@ -17,7 +17,7 @@ include $(INCLUDE_DIR)/unpack.mk
|
|||||||
include $(INCLUDE_DIR)/depends.mk
|
include $(INCLUDE_DIR)/depends.mk
|
||||||
|
|
||||||
STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),)))
|
STAMP_PREPARED=$(PKG_BUILD_DIR)/.prepared$(if $(QUILT)$(DUMP),,_$(shell $(call find_md5,${CURDIR} $(PKG_FILE_DEPENDS),)))
|
||||||
STAMP_CONFIGURED:=$(PKG_BUILD_DIR)/.configured$(if $(QUILT)$(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS)))
|
STAMP_CONFIGURED:=$(PKG_BUILD_DIR)/.configured$(if $(DUMP),,_$(call confvar,$(PKG_CONFIG_DEPENDS)))
|
||||||
STAMP_BUILT:=$(PKG_BUILD_DIR)/.built
|
STAMP_BUILT:=$(PKG_BUILD_DIR)/.built
|
||||||
STAMP_INSTALLED:=$(STAGING_DIR)/stamp/.$(PKG_NAME)_installed
|
STAMP_INSTALLED:=$(STAGING_DIR)/stamp/.$(PKG_NAME)_installed
|
||||||
|
|
||||||
|
@ -80,9 +80,19 @@ define Package/hostapd-utils/description
|
|||||||
IEEE 802.1x/WPA/EAP/RADIUS Authenticator.
|
IEEE 802.1x/WPA/EAP/RADIUS Authenticator.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure
|
ifneq ($(wildcard $(PKG_BUILD_DIR)/.config_*),$(subst .configured_,.config_,$(STAMP_CONFIGURED)))
|
||||||
|
$(warning $(wildcard $(PKG_BUILD_DIR)/.config_*) != $(subst .configured_,.config_,$(STAMP_CONFIGURED)))
|
||||||
|
define Build/Configure/rebuild
|
||||||
rm -f $(PKG_BUILD_DIR)/hostapd/hostapd
|
rm -f $(PKG_BUILD_DIR)/hostapd/hostapd
|
||||||
|
rm -f $(PKG_BUILD_DIR)/hostapd/*.o
|
||||||
rm -f $(PKG_BUILD_DIR)/src/drivers/drivers.o
|
rm -f $(PKG_BUILD_DIR)/src/drivers/drivers.o
|
||||||
|
rm -f $(PKG_BUILD_DIR)/.config_*
|
||||||
|
touch $(subst .configured_,.config_,$(STAMP_CONFIGURED))
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
$(Build/Configure/rebuild)
|
||||||
$(CP) ./files/$(BUILD_VARIANT).config $(PKG_BUILD_DIR)/hostapd/.config
|
$(CP) ./files/$(BUILD_VARIANT).config $(PKG_BUILD_DIR)/hostapd/.config
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user