support aliyun sdk on TencentOS tiny

sample: examples\aliyun_iotkit_csdk_mqtt
project: board\TencentOS_tiny_EVB_MX_Plus\KEIL\aliyun_iotkit_csdk_mqtt
This commit is contained in:
dcxajichu
2019-10-31 16:36:28 +08:00
parent 30ea36a7ab
commit 8c24d921b0
692 changed files with 199829 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
include $(CURDIR)/tools/internal_make_funcs.mk
SWITCH_VARS := \
$(shell grep '''config [_A-Z]*''' \
$$(find -L $(TOP_DIR)/tools -name 'Config.*') \
| cut -d: -f2 \
| grep -v menuconfig \
| grep -v SRCPATH \
| awk '{ print $$NF }' \
)
SWITCH_VARS := $(foreach V,$(sort $(SWITCH_VARS)),FEATURE_$(V))
$(foreach v, \
$(SWITCH_VARS), \
$(if $(filter y,$($(v))), \
$(eval CFLAGS += -D$(subst FEATURE_,,$(v)))) \
)