1*5113495bSYour Nameifeq ($(obj),) 2*5113495bSYour Nameobj := . 3*5113495bSYour Nameendif 4*5113495bSYour Name 5*5113495bSYour NameDEPTH := ../.. 6*5113495bSYour Name 7*5113495bSYour Nameinclude $(obj)/$(DEPTH)/os/linux/Makefile-linux.common 8*5113495bSYour Name 9*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/inc -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/obj_mgr/inc 10*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/cmn_defs/inc 11*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/utils/nlink/inc 12*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/scan/dispatcher/inc 13*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/cmn_defs/inc 14*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/global_umac_dispatcher/lmac_if/inc 15*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/scheduler/inc 16*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/global_lmac_if/inc 17*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/umac/scan 18*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/mgmt_txrx/dispatcher/inc 19*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/regulatory/dispatcher/inc 20*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/umac/son/dispatcher/inc 21*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/umac/son/os/linux 22*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/regulatory/inc 23*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/dfs/dispatcher/inc 24*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/os_if/linux/scan/inc 25*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/target_if/direct_buf_rx/inc 26*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/wbuff/inc 27*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/cfg/inc 28*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/ini_cfg/inc/ 29*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/component_dev/wmi/inc 30*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/pld/inc 31*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/component_dev/dp/inc 32*5113495bSYour Name 33*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/crypto/inc 34*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/component_dev/crypto/inc 35*5113495bSYour Name 36*5113495bSYour Nameifeq ($(WLAN_SUPPORT_GREEN_AP), 1) 37*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/green_ap/dispatcher/inc 38*5113495bSYour Nameendif 39*5113495bSYour Name 40*5113495bSYour Name#Start of offload related deifines 41*5113495bSYour NameHOST_CMN_CONVG_SRC := $(DEPTH)/cmn_dev 42*5113495bSYour Name 43*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/include -I$(obj)/$(DEPTH)/umac/include \ 44*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/crypto \ 45*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/scan -I$(obj)/$(DEPTH)/umac/resmgr \ 46*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/pm -I$(obj)/$(DEPTH)/umac/txrx \ 47*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/acs -I$(obj)/$(DEPTH)/umac/txbf \ 48*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/wnm \ 49*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/tdls \ 50*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/rpt_placement \ 51*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/wifipos \ 52*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/wds -I$(obj)/$(DEPTH)/umac/ique \ 53*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/vi_dbg \ 54*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/smart_antenna \ 55*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/smart_ant \ 56*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/ald \ 57*5113495bSYour Name -I$(obj)/$(DEPTH)/lmac/ath_pktlog \ 58*5113495bSYour Name -I$(obj)/$(DEPTH)/os/linux/mem/ \ 59*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/base \ 60*5113495bSYour Name -I$(obj)/$(DEPTH)/qca_ol \ 61*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/qdf/inc \ 62*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/qdf/linux/src \ 63*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/qal/inc \ 64*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/qal/linux/src \ 65*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hif \ 66*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hif/inc \ 67*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hif/src \ 68*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hif/src/ce \ 69*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hif/src/pcie \ 70*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hif/src/snoc \ 71*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hif/src/dispatcher \ 72*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/pld_stub/inc \ 73*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hal/inc \ 74*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/hal/wifi3.0 \ 75*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/dp/inc \ 76*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/dp/wifi3.0 \ 77*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/wlan_cfg \ 78*5113495bSYour Name -I$(obj)/$(HOST_CMN_CONVG_SRC)/htc \ 79*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/wmi/inc \ 80*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/obj_mgr/inc \ 81*5113495bSYour Name -I$(obj)/$(HOST_CMN_CONVG_SRC)/scheduler/inc \ 82*5113495bSYour Name -I$(obj)/$(HOST_CMN_CONVG_SRC)/init_deinit/dispatcher/inc \ 83*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/inc \ 84*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/global_umac_dispatcher/lmac_if/inc \ 85*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/mgmt_txrx/dispatcher/inc \ 86*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/target_if/init_deinit/inc \ 87*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/global_lmac_if/inc \ 88*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/os_if/linux \ 89*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/cmn_defs/inc \ 90*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/target_if/core/inc \ 91*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/scan/dispatcher/inc \ 92*5113495bSYour Name -I$(obj)/$(DEPTH)/umac/scan \ 93*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/ol_if \ 94*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/target_if/scan/inc \ 95*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/cmn_services/serialization/core/inc \ 96*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/regulatory/dispatcher/inc \ 97*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/target_if/regulatory/inc \ 98*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/mlme/mlme_objmgr/dispatcher/inc/ \ 99*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/mlme/vdev_mgr/dispatcher/inc \ 100*5113495bSYour Name -I$(obj)/$(DEPTH)/cmn_dev/umac/mlme/pdev_mgr/dispatcher/inc \ 101*5113495bSYour Name -I$(obj)/$(DEPTH)/direct_attach/hal/linux \ 102*5113495bSYour Name 103*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/target_if/iot_sim 104*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/wmi/inc 105*5113495bSYour Name#end of offload related defines 106*5113495bSYour Name 107*5113495bSYour Nameifeq ($(QCA_CFR_SUPPORT), 1) 108*5113495bSYour Nameccflags-y+= -DWLAN_CFR_ENABLE=1 109*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/umac/cfr/dispatcher/inc/ 110*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/component_dev/umac/cfr/dispatcher/inc 111*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/component_dev/qal/inc 112*5113495bSYour Nameendif 113*5113495bSYour Name 114*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/iot_sim/core 115*5113495bSYour NameINCS += -I$(obj)/$(DEPTH)/cmn_dev/iot_sim/dispatcher/inc 116*5113495bSYour Name 117*5113495bSYour Nameobj-m += qca_iot_sim.o 118*5113495bSYour Name 119*5113495bSYour Nameinc_file := $(obj)/$(DEPTH)/iot_inc_opts 120*5113495bSYour Nameinc_var := $(shell echo $(INCS) > $(inc_file)) 121*5113495bSYour Namevar := "@$(inc_file)" 122*5113495bSYour Name 123*5113495bSYour Nameccflags-y+= $(var) $(COPTS) 124*5113495bSYour Name 125*5113495bSYour Nameifeq ($(strip ${QCA_PARTNER_MAKE_F_SUPPORT}),1) 126*5113495bSYour NameMOD_CFLAGS = -D"KBUILD_STR(s)=\#s" -D"KBUILD_BASENAME=KBUILD_STR(qca_iot_sim.mod)" -D"KBUILD_MODNAME=KBUILD_STR(qca_iot_sim)" 127*5113495bSYour Nameendif 128*5113495bSYour Name 129*5113495bSYour NameIOT_SIM_CMN_OBJS += core/iot_sim_common.o \ 130*5113495bSYour Name dispatcher/src/wlan_iot_sim_utils_api.o \ 131*5113495bSYour Name dispatcher/src/wlan_iot_sim_tgt_api.o \ 132*5113495bSYour Name core/iot_sim_utils.o \ 133*5113495bSYour Name core/iot_sim_module.o 134*5113495bSYour Name 135*5113495bSYour Nameqca_iot_sim-objs += ${IOT_SIM_CMN_OBJS} 136*5113495bSYour Name 137*5113495bSYour Nameifeq ($(strip ${QCA_PARTNER_MAKE_F_SUPPORT}),1) 138*5113495bSYour Nameall: qca_iot_sim.ko 139*5113495bSYour Name 140*5113495bSYour Nameqca_iot_sim.mod.o: qca_iot_sim.mod.c 141*5113495bSYour Name ${CC} -c -o $@ ${ccflags-y} ${MOD_CFLAGS} $< 142*5113495bSYour Name 143*5113495bSYour Nameqca_iot_sim.o: ${qca_iot_sim-objs} 144*5113495bSYour Name $(LD) -m elf32btsmip -r -o qca_iot_sim.o $(qca_iot_sim-objs) 145*5113495bSYour Name $(KERNELPATH)/scripts/mod/modpost qca_iot_sim.o 146*5113495bSYour Name 147*5113495bSYour Nameqca_iot_sim.ko: qca_iot_sim.o qca_iot_sim.mod.o 148*5113495bSYour Name $(LD) -o qca_iot_sim.ko qca_iot_sim.o qca_iot_sim.mod.o 149*5113495bSYour Name 150*5113495bSYour Name%.o: %.c 151*5113495bSYour Name ${CC} -c -o $@ ${ccflags-y} $< 152*5113495bSYour Nameendif 153