Browse Source

- wpa_supplicant: rework build

master
vanhofen 3 years ago
parent
commit
76d8fd593b
  1. 17
      package/wpa_supplicant/wpa_supplicant.mk

17
package/wpa_supplicant/wpa_supplicant.mk

@ -9,8 +9,16 @@ WPA_SUPPLICANT_DIR = wpa_supplicant-$(WPA_SUPPLICANT_VERSION)
WPA_SUPPLICANT_SOURCE = wpa_supplicant-$(WPA_SUPPLICANT_VERSION).tar.gz WPA_SUPPLICANT_SOURCE = wpa_supplicant-$(WPA_SUPPLICANT_VERSION).tar.gz
WPA_SUPPLICANT_SITE = https://w1.fi/releases WPA_SUPPLICANT_SITE = https://w1.fi/releases
WPA_SUPPLICANT_SUBDIR = wpa_supplicant
WPA_SUPPLICANT_DEPENDENCIES = openssl WPA_SUPPLICANT_DEPENDENCIES = openssl
WPA_SUPPLICANT_MAKE_ENV = \
$(TARGET_CONFIGURE_ENV)
WPA_SUPPLICANT_MAKE_INSTALL_OPTS = \
BINDIR=$(sbindir)
ifeq ($(BOXTYPE),coolstream) ifeq ($(BOXTYPE),coolstream)
WPA_SUPPLICANT_CONFIG = $(PKG_FILES_DIR)/wpa_supplicant.config-$(WPA_SUPPLICANT_VERSION) WPA_SUPPLICANT_CONFIG = $(PKG_FILES_DIR)/wpa_supplicant.config-$(WPA_SUPPLICANT_VERSION)
else else
@ -19,7 +27,7 @@ WPA_SUPPLICANT_DEPENDENCIES += libnl
endif endif
define WPA_SUPPLICANT_INSTALL_CONFIG define WPA_SUPPLICANT_INSTALL_CONFIG
$(INSTALL_DATA) $(WPA_SUPPLICANT_CONFIG) $(PKG_BUILD_DIR)/wpa_supplicant/.config $(INSTALL_DATA) $(WPA_SUPPLICANT_CONFIG) $(PKG_BUILD_DIR)/.config
endef endef
WPA_SUPPLICANT_POST_PATCH_HOOKS += WPA_SUPPLICANT_INSTALL_CONFIG WPA_SUPPLICANT_POST_PATCH_HOOKS += WPA_SUPPLICANT_INSTALL_CONFIG
@ -38,9 +46,4 @@ WPA_SUPPLICANT_TARGET_FINALIZE_HOOKS += WPA_SUPPLICANT_INSTALL_LINK
endif endif
wpa_supplicant: | $(TARGET_DIR) wpa_supplicant: | $(TARGET_DIR)
$(call PREPARE) $(call generic-package)
$(CHDIR)/$($(PKG)_DIR)/wpa_supplicant; \
$(TARGET_CONFIGURE_ENV) \
$(MAKE); \
$(MAKE) install DESTDIR=$(TARGET_DIR) BINDIR=$(sbindir)
$(call TARGET_FOLLOWUP)

Loading…
Cancel
Save