mirror of
https://github.com/nxp-imx/mwifiex.git
synced 2024-11-15 11:35:35 +00:00
33d9f8e4f3
Add initial MxM (multi-chip-multi-interface) wifi driver. The driver target is to support 88w8987/88w8997/88w9098, currently it only supports 88w8987. The MxM wifi driver is merged from below repo and applied some patches for block and build issues. ssh://git@bitbucket.sw.nxp.com/wcswrel/ rel-nxp-wifi-fp92-bt-fp85-linux-android-mxm4x17169-gpl.git The sdk only includes application, the driver already is merged into linux kernel. Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
# File : uaputl/Makefile
|
|
#
|
|
# Copyright 2014-2020 NXP
|
|
|
|
# Path to the top directory of the wlan distribution
|
|
PATH_TO_TOP = ../..
|
|
|
|
# Determine how we should copy things to the install directory
|
|
ABSPATH := $(filter /%, $(INSTALLDIR))
|
|
RELPATH := $(filter-out /%, $(INSTALLDIR))
|
|
INSTALLPATH := $(ABSPATH)
|
|
ifeq ($(strip $(INSTALLPATH)),)
|
|
INSTALLPATH := $(PATH_TO_TOP)/$(RELPATH)
|
|
endif
|
|
|
|
# Override CFLAGS for application sources, remove __ kernel namespace defines
|
|
CFLAGS := $(filter-out -D__%, $(ccflags-y))
|
|
# remove KERNEL include dir
|
|
CFLAGS := $(filter-out -I$(KERNELDIR)%, $(CFLAGS))
|
|
|
|
|
|
#CFLAGS += -DAP22 -fshort-enums
|
|
CFLAGS += -Wall
|
|
#ECHO = @
|
|
LIBS = -lrt
|
|
|
|
|
|
.PHONY: default tags all
|
|
|
|
OBJECTS = uaputl.o uapcmd.o uaphostcmd.o
|
|
HEADERS = uaputl.h uapcmd.h
|
|
|
|
TARGET = uaputl.exe
|
|
|
|
build default: $(TARGET)
|
|
@cp -f $(TARGET) $(INSTALLPATH)
|
|
@cp -rf config $(INSTALLPATH)
|
|
|
|
|
|
all : tags default
|
|
|
|
$(TARGET): $(OBJECTS) $(HEADERS)
|
|
$(ECHO)$(CC) $(LIBS) -o $@ $(OBJECTS)
|
|
|
|
%.o: %.c $(HEADERS)
|
|
$(ECHO)$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
tags:
|
|
ctags -R -f tags.txt
|
|
|
|
distclean clean:
|
|
$(ECHO)$(RM) $(OBJECTS) $(TARGET)
|
|
$(ECHO)$(RM) tags.txt
|
|
|