1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-19 05:14:06 +02:00

build variants: only build opkg packages for the requested build variant (or any if no variant was specified for the package)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18464 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-11-22 07:08:39 +00:00
parent 4fba0adb64
commit a4b548a00d
2 changed files with 4 additions and 7 deletions

View File

@ -36,6 +36,7 @@ ifeq ($(DUMP),)
IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg-$(PKGARCH)/$(1) IDIR_$(1):=$(PKG_BUILD_DIR)/ipkg-$(PKGARCH)/$(1)
INFO_$(1):=$(IPKG_STATE_DIR)/info/$(1).list INFO_$(1):=$(IPKG_STATE_DIR)/info/$(1).list
ifeq ($(if $(VARIANT),$(BUILD_VARIANT)),$(VARIANT))
ifdef Package/$(1)/install ifdef Package/$(1)/install
ifneq ($(CONFIG_PACKAGE_$(1))$(SDK)$(DEVELOPER),) ifneq ($(CONFIG_PACKAGE_$(1))$(SDK)$(DEVELOPER),)
compile: $$(IPKG_$(1)) $(STAGING_DIR_ROOT)/stamp/.$(1)_installed compile: $$(IPKG_$(1)) $(STAGING_DIR_ROOT)/stamp/.$(1)_installed
@ -49,6 +50,7 @@ ifeq ($(DUMP),)
@echo "WARNING: skipping $(1) -- package not selected" @echo "WARNING: skipping $(1) -- package not selected"
endif endif
endif endif
endif
IDEPEND_$(1):=$$(call filter_deps,$$(DEPENDS)) IDEPEND_$(1):=$$(call filter_deps,$$(DEPENDS))

View File

@ -108,7 +108,7 @@ define Build/Compile
hostapd hostapd_cli hostapd hostapd_cli
endef endef
define Package/InstallTemplate define Package/hostapd/install
$(INSTALL_DIR) $(1)/etc/hotplug.d/net $(INSTALL_DIR) $(1)/etc/hotplug.d/net
$(INSTALL_DATA) ./files/hostapd.hotplug $(1)/etc/hotplug.d/net/ $(INSTALL_DATA) ./files/hostapd.hotplug $(1)/etc/hotplug.d/net/
$(INSTALL_DIR) $(1)/lib/wifi $(INSTALL_DIR) $(1)/lib/wifi
@ -116,12 +116,7 @@ define Package/InstallTemplate
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/hostapd/hostapd $(1)/usr/sbin/
endef endef
Package/hostapd-mini/install = $(Package/hostapd/install)
ifeq ($(BUILD_VARIANT),full)
Package/hostapd/install = $(Package/InstallTemplate)
else
Package/hostapd-mini/install = $(Package/InstallTemplate)
endif
define Package/hostapd-utils/install define Package/hostapd-utils/install
$(INSTALL_DIR) $(1)/usr/sbin $(INSTALL_DIR) $(1)/usr/sbin