wifi: pseudo library to install firmware

The patch prevents linking wifi_drv on each build.
This commit is contained in:
Christian Helmuth 2015-09-07 12:05:08 +02:00
parent 28fdc51a76
commit 5230adfd63
2 changed files with 15 additions and 11 deletions

View File

@ -0,0 +1,14 @@
#
# Pseudo library to copy Intel Wireless firmware to build directory
#
WIFI_CONTRIB_DIR := $(call select_from_ports,dde_linux)
IMAGES := $(notdir $(wildcard $(WIFI_CONTRIB_DIR)/firmware/*.ucode))
BIN_DIR := $(BUILD_BASE_DIR)/bin
FW_DIR := $(WIFI_CONTRIB_DIR)/firmware
all: $(addprefix $(BIN_DIR)/,$(IMAGES))
$(BIN_DIR)/%.ucode: $(FW_DIR)/%.ucode
$(VERBOSE)cp $^ $@

View File

@ -1,16 +1,6 @@
TARGET = wifi_drv
SRC_CC = main.cc
LIBS = wifi wpa_supplicant server
LIBS = wifi iwl_firmware wpa_supplicant server
# needed for firmware.h
INC_DIR += $(REP_DIR)/src/lib/wifi/include
#
# Copy all firmware images to the build directory
#
WIFI_CONTRIB_DIR := $(call select_from_ports,dde_linux)
$(TARGET): firmware_images
firmware_images:
$(VERBOSE)for img in $(WIFI_CONTRIB_DIR)/firmware/*.ucode; do \
cp $$img $(PWD)/bin; \
done