wifi_drv: copy firmware images to build directory

Always copy the firmware images to the bin directory within the
build directyry when building the wifi_drv binary.

Issue #1415.
This commit is contained in:
Josef Söntgen 2015-02-24 11:41:38 +01:00 committed by Christian Helmuth
parent 818dad72d0
commit 894974f73b
1 changed files with 10 additions and 2 deletions

View File

@ -1,8 +1,16 @@
TARGET = wifi_drv
SRC_CC = main.cc
LIBS = wifi wpa_supplicant server
# needed for firmware.h
INC_DIR += $(REP_DIR)/src/lib/wifi/include
LIBS = wifi wpa_supplicant server
#
# 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