dde_linux: create wifi recipe

This commit is contained in:
Josef Söntgen 2017-11-13 17:02:50 +01:00 committed by Christian Helmuth
parent 5a5af878f7
commit b3b10c1439
13 changed files with 88 additions and 5 deletions

View File

@ -7,7 +7,9 @@ LX_EMUL_H := $(REP_DIR)/src/lib/wifi/include/lx_emul.h
# Determine the header files included by the contrib code. For each # Determine the header files included by the contrib code. For each
# of these header files we create a symlink to 'lx_emul.h'. # of these header files we create a symlink to 'lx_emul.h'.
# #
GEN_INCLUDES := $(shell grep -rIh "^\#include .*\/" $(WIFI_CONTRIB_DIR) |\ SCAN_DIRS := $(addprefix $(WIFI_CONTRIB_DIR)/include/, asm-generic crypto linux net trace uapi) \
$(addprefix $(WIFI_CONTRIB_DIR)/, crypto drivers lib net)
GEN_INCLUDES := $(shell grep -rIh "^\#include .*\/" $(SCAN_DIRS) |\
sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" |\ sed "s/^\#include [^<\"]*[<\"]\([^>\"]*\)[>\"].*/\1/" |\
sort | uniq) sort | uniq)
# #

View File

@ -0,0 +1,2 @@
Package for bundling wifi_drv and wifi_firmware

View File

@ -0,0 +1,5 @@
_/src/wifi_drv
_/src/libcrypto
_/src/libssl
_/src/vfs_jitterentropy
_/raw/wifi_firmware

View File

@ -0,0 +1 @@
2017-11-14 4e7bd5d760094aab93b079a4fc3529a113d16645

View File

@ -0,0 +1,15 @@
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/dde_linux)
content: ucode_files LICENSE.iwlwifi
.PHONY: ucode_files
ucode_files:
cp $(PORT_DIR)/firmware/*.ucode .
LICENSE.iwlwifi:
for i in $(PORT_DIR)/firmware/LICENSE.*; do \
echo "$${i##*/}:" >> $@; \
cat $$i >> $@; \
echo >> $@; \
done

View File

@ -0,0 +1 @@
2017-11-14-h 125e2160d4c780dbbcb24faccfabe45c8bb792ff

View File

@ -0,0 +1,44 @@
LIB_MK := $(addprefix lib/mk/,libnl.inc libnl_include.mk iwl_firmware.mk wifi.inc \
wifi_include.mk) \
$(foreach SPEC,x86_32 x86_64,lib/mk/spec/$(SPEC)/libnl.mk) \
$(foreach SPEC,x86_32 x86_64,lib/mk/spec/$(SPEC)/lx_kit_setjmp.mk) \
$(foreach SPEC,x86_32 x86_64,lib/mk/spec/$(SPEC)/wifi.mk) \
$(addprefix lib/mk/spec/x86/,wpa_driver_nl80211.mk wpa_supplicant.mk)
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/dde_linux)
MIRROR_FROM_REP_DIR := $(LIB_MK) \
lib/import/import-wifi_include.mk \
lib/import/import-libnl_include.mk \
lib/import/import-libnl.mk \
include/wifi src/include src/lx_kit \
$(shell cd $(REP_DIR); find src/drivers/wifi -type f) \
$(shell cd $(REP_DIR); find src/lib/libnl -type f) \
$(shell cd $(REP_DIR); find src/lib/wifi -type f) \
$(shell cd $(REP_DIR); find src/lib/wpa_driver_nl80211 -type f) \
$(shell cd $(REP_DIR); find src/lib/wpa_supplicant -type f)
MIRROR_FROM_PORT_DIR := $(shell cd $(PORT_DIR); find src/lib/libnl -type f) \
$(shell cd $(PORT_DIR); find src/lib/wifi -type f) \
$(shell cd $(PORT_DIR); find src/app/wpa_supplicant -type f)
MIRROR_FROM_PORT_DIR := $(filter-out $(MIRROR_FROM_REP_DIR),$(MIRROR_FROM_PORT_DIR))
content: $(MIRROR_FROM_REP_DIR) $(MIRROR_FROM_PORT_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
$(MIRROR_FROM_PORT_DIR):
mkdir -p $(dir $@)
cp -r $(PORT_DIR)/$@ $@
content: LICENSE
LICENSE:
( echo "Linux is subject to GNU General Public License version 2, see:"; \
echo "https://www.kernel.org/pub/linux/kernel/COPYING"; \
echo; \
echo "Libnl is subject to GNU LESSER GENERAL PUBLIC LICENSE Verson 2.1, see:"; \
echo " src/lib/libnl/COPYING"; \
echo; \
echo "Wpa_supplicant is subject to 3-clause BSD license, see:"; \
echo " src/app/wpa_supplicant/COPYING"; ) > $@

View File

@ -0,0 +1 @@
2017-11-14 59fb14482e1e4e2dc57b0a0b3b7614007b1be9da

View File

@ -0,0 +1,12 @@
base
os
libc
libcrypto
libssl
file_system
file_system_session
nic_session
platform_session
report_session
timer_session
vfs

View File

@ -2,7 +2,7 @@ REQUIRES = x86
TARGET = wifi_drv TARGET = wifi_drv
SRC_CC = main.cc SRC_CC = main.cc
LIBS = wifi iwl_firmware wpa_supplicant LIBS = base wifi iwl_firmware wpa_supplicant
# needed for firmware.h # needed for firmware.h
INC_DIR += $(REP_DIR)/src/lib/wifi/include INC_DIR += $(REP_DIR)/src/lib/wifi/include

View File

@ -1 +0,0 @@
../lx_user_emul.h

View File

@ -0,0 +1 @@
#include <lx_user_emul.h>

View File

@ -1 +0,0 @@
../lx_user_emul.h

View File

@ -0,0 +1 @@
#include <lx_user_emul.h>

View File

@ -1 +0,0 @@
../lx_user_emul.h

View File

@ -0,0 +1 @@
#include <lx_user_emul.h>