1ifneq ($(REL_SDK),1) 2ifneq ($(GEN_SDK_LIB),1) 3LIB_NAME := libservices 4obj-y := 5ifneq ($(SDK),1) 6src_obj := wifi_app/ 7$(LIB_NAME)-y := $(src_obj) 8endif 9obj-y += $(LIB_NAME).a 10 11ifeq ($(BT_CLOSE),1) 12obj-y += audio_dump/ audioflinger/ audio_process/ hw_dsp/ resources/ \ 13 ../utils/crc32/ ../utils/heap/ norflash_api/ overlay/ 14else 15obj-y += audio_dump/ \ 16 audioflinger/ \ 17 audio_process/ \ 18 hw_dsp/ \ 19 bt_app/ \ 20 overlay/ \ 21 resources/ \ 22 ../utils/crc32/ \ 23 ../utils/heap/ \ 24 osif/ \ 25 norflash_api/ \ 26 app_ai/ 27endif 28ifeq ($(BONE_SENSOR_TDM),1) 29obj-y += bone_sensor/ 30endif 31 32ifeq ($(USE_BT_ADAPTER),1) 33obj-y += bt_service/ 34endif 35 36ifneq ($(INTERCONNECTION)_$(AI_VOICE),0_0) 37obj-y += interconnection/ 38endif 39ifeq ($(BT_CLOSE),0) 40ifeq ($(ENHANCED_STACK),1) 41obj-y += bt_profiles_enhanced/ 42obj-y += bt_if_enhanced/ 43else 44obj-y += bt_profiles/ 45obj-y += bt_if/ 46endif 47endif 48ifeq ($(MBED),1) 49obj-y += fs/ 50endif 51 52ifeq ($(SERVICE_ONE_LIB),1) 53obj-y += multimedia/ 54endif 55 56ifneq ($(MBED)_$(AI_VOICE),0_0) 57obj-y +=../utils/kfifo/ 58endif 59 60ifeq ($(UTILS_INTERSYSHCI),1) 61obj-y +=../utils/intersyshci/ 62endif 63ifeq ($(UTILS_BES_KV),1) 64obj-y +=../utils/bes_kv/ 65endif 66 67ifeq ($(VOICE_DATAPATH_ENABLED),1) 68obj-y += voicepath/ 69obj-y += voicepath/$(VOICE_DATAPATH_TYPE)/ 70endif 71ifeq ($(BT_CLOSE),0) 72ifeq ($(BLE),1) 73obj-y += ble_app/ \ 74 bridge/ \ 75 ble_stack/ \ 76 ../utils/retention_ram/ \ 77 ble_profiles/ 78endif 79endif 80 81ifeq ($(AUTO_TEST),1) 82obj-y += auto_test/ 83endif 84 85obj-y += nv_section/ 86 87obj-y += sys_time/ 88 89ifneq ($(FPGA),1) 90#ifneq ($(WIFI_APP_TEST),1) 91obj-y += nvrecord/ 92#endif 93endif 94 95ifeq ($(VOICE_RECOGNITION),1) 96obj-y += voice_recognition/ 97endif 98 99ifeq ($(APP_ANC_TEST),1) 100obj-y += anc_spp_tool/ 101endif 102ifeq ($(TEST_OVER_THE_AIR),1) 103obj-y += tota/ 104endif 105 106ifeq ($(BES_OTA_BASIC),1) 107ifeq ($(IBRT_OTA),1) 108ifeq ($(FPGA_IBRT_OTA),1) 109obj-y += fpga_ibrt_ota/ 110else 111obj-y += ibrt_ota/ 112endif 113else 114obj-y += ota/ 115endif 116endif 117 118ifeq ($(TILE_DATAPATH_ENABLED),1) 119obj-y += ../thirdparty/tile/ 120endif 121ifeq ($(AI_VOICE),1) 122obj-y += ai_voice/ \ 123 ../utils/crc16/ 124endif 125 126ifeq ($(CHIP_HAS_CP),1) 127obj-y += cp_accel/ 128ifeq ($(CP_ENABLE), 1) 129obj-y += cp_server/ 130endif 131endif 132 133ifeq ($(IBRT),1) 134obj-y += ibrt_core/ 135obj-y += app_ibrt/ 136obj-y += ibrt_ui/ 137endif 138 139ifeq ($(TWS_SYSTEM_ENABLED),1) 140obj-y += app_tws/ 141endif 142 143ifeq ($(RSA_SHA),1) 144obj-y +=../utils/sha256/ ../utils/rsa2048/ 145endif 146 147ifeq ($(AES256_FOR_BIN),1) 148obj-y +=../utils/aes256/ 149endif 150 151obj-y += communication/ 152 153ifeq ($(A7_DSP_ENABLE),1) 154obj-y += a7_dsp/ 155endif 156 157ifeq ($(USE_BT_ADAPTER),1) 158obj-y += bt_service/ 159endif 160 161obj-y += transq_msg/ 162 163else 164 165 166cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 167 168LIB_NAME := libservices 169obj-y := 170ifneq ($(SDK),1) 171ifeq ($(BT_CLOSE),1) 172src_obj := audio_dump/ audioflinger/ audio_process/ hw_dsp/ resources/ \ 173 ../utils/crc32/ ../utils/heap/ norflash_api/ overlay/ 174else 175src_obj := audio_dump/ \ 176 audioflinger/ \ 177 audio_process/ \ 178 hw_dsp/ \ 179 bt_app/ \ 180 overlay/ \ 181 resources/ \ 182 ../utils/crc32/ \ 183 ../utils/heap/ \ 184 osif/ \ 185 norflash_api/ \ 186 app_ai/ 187endif 188ifeq ($(BONE_SENSOR_TDM),1) 189src_obj += bone_sensor/ 190endif 191 192ifneq ($(INTERCONNECTION)_$(AI_VOICE),0_0) 193src_obj += interconnection/ 194endif 195 196ifeq ($(BT_CLOSE),0) 197ifeq ($(ENHANCED_STACK),1) 198src_obj += bt_profiles_enhanced/ 199src_obj += bt_if_enhanced/ 200else 201src_obj += bt_profiles/ 202src_obj += bt_if/ 203endif 204endif 205 206ifeq ($(MBED),1) 207src_obj += fs/ 208endif 209 210ifeq ($(SERVICE_ONE_LIB),1) 211src_obj += multimedia/ 212endif 213 214ifneq ($(MBED)_$(AI_VOICE),0_0) 215src_obj +=../utils/kfifo/ 216endif 217 218ifeq ($(UTILS_INTERSYSHCI),1) 219src_obj +=../utils/intersyshci/ 220endif 221ifeq ($(UTILS_BES_KV),1) 222src_obj +=../utils/bes_kv/ 223endif 224 225ifeq ($(VOICE_DATAPATH_ENABLED),1) 226src_obj += voicepath/ 227src_obj += voicepath/$(VOICE_DATAPATH_TYPE)/ 228endif 229 230ifeq ($(BT_CLOSE),0) 231ifeq ($(BLE),1) 232src_obj += ble_app/ \ 233 bridge/ \ 234 ble_stack/ \ 235 ../utils/retention_ram/ \ 236 ble_profiles/ 237endif 238endif 239 240ifeq ($(AUTO_TEST),1) 241src_obj += auto_test/ 242endif 243 244src_obj += nv_section/ 245 246src_obj += sys_time/ 247 248ifneq ($(FPGA),1) 249#ifneq ($(WIFI_APP_TEST),1) 250src_obj += nvrecord/ 251#endif 252endif 253 254ifeq ($(VOICE_RECOGNITION),1) 255src_obj+= voice_recognition/ 256endif 257 258ifeq ($(TEST_OVER_THE_AIR),1) 259src_obj += tota/ 260endif 261 262ifeq ($(BES_OTA_BASIC),1) 263src_obj += ota/ 264endif 265 266ifeq ($(AI_VOICE),1) 267src_obj += ai_voice/ 268endif 269 270ifeq ($(CHIP_HAS_CP),1) 271src_obj += cp_accel/ 272ifeq ($(CP_ENABLE), 1) 273src_obj += cp_server/ 274endif 275endif 276 277ifeq ($(IBRT),1) 278src_obj += tws_ibrt/ 279src_obj += app_ibrt/ 280endif 281 282ifeq ($(TWS_SYSTEM_ENABLED),1) 283src_obj += app_tws/ 284endif 285 286ifeq ($(RSA_SHA),1) 287src_obj +=../utils/sha256/ ../utils/rsa2048/ 288endif 289 290ifeq ($(AES256_FOR_BIN),1) 291src_obj +=../utils/aes256/ 292endif 293 294src_obj += communication/ 295src_obj += wifi_app/ 296 297ifeq ($(A7_DSP_ENABLE),1) 298ifeq ($(A7_INTO_LIB),1) 299src_obj += a7_dsp/ 300endif 301endif 302 303ifeq ($(USE_BT_ADAPTER),1) 304src_obj += bt_service/ 305endif 306 307src_obj += transq_msg/ 308 309$(LIB_NAME)-y := $(src_obj) 310endif 311obj-y := 312 313ifeq ($(A7_DSP_ENABLE),1) 314ifneq ($(A7_INTO_LIB),1) 315obj-y += a7_dsp/ 316endif 317endif 318 319obj-y += $(LIB_NAME).a 320endif 321 322subdir-ccflags-y += \ 323 -Inet 324 325ifeq ($(RPC_SUPPORT),1) 326obj-y += rpc/ 327endif 328else 329cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 330 331obj-y += libservices.a 332endif