From 894974f73b5c33bc437d758cd0df4ccfc0c3f273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Tue, 24 Feb 2015 11:41:38 +0100 Subject: [PATCH] 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. --- repos/dde_linux/src/drivers/wifi/target.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/repos/dde_linux/src/drivers/wifi/target.mk b/repos/dde_linux/src/drivers/wifi/target.mk index 24020a5fb..b5c5e85ee 100644 --- a/repos/dde_linux/src/drivers/wifi/target.mk +++ b/repos/dde_linux/src/drivers/wifi/target.mk @@ -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