mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
wifi: pseudo library to install firmware
The patch prevents linking wifi_drv on each build.
This commit is contained in:
parent
28fdc51a76
commit
5230adfd63
14
repos/dde_linux/lib/mk/iwl_firmware.mk
Normal file
14
repos/dde_linux/lib/mk/iwl_firmware.mk
Normal 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 $^ $@
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user