1ifneq ($(GEN_SDK_LIB),1) 2ifeq ($(A7_DSP_ENABLE),1) 3LIB_NAME := platform_a7 4else 5LIB_NAME := platform 6endif 7ifneq ($(SDK),1) 8 9src_obj := drivers/ 10 11$(LIB_NAME)-y := $(src_obj) 12endif 13 14obj-y := 15obj-y += $(LIB_NAME).a 16ifneq ($(DUAL_BOOT),1) 17obj-y += cmsis/ hal/ main/ 18endif 19 20 21else 22 23 24cur_dir := $(dir $(lastword $(MAKEFILE_LIST))) 25 26LIB_NAME := libplatform 27ifneq ($(SDK),1) 28 29src_obj := cmsis/ drivers/ hal/ 30 31ifneq ($(DUAL_BOOT),1) 32src_obj += main/ 33endif 34 35$(LIB_NAME)-y := $(src_obj) 36endif 37 38obj-y := $(LIB_NAME).a 39endif 40 41subdir-ccflags-y += -Iplatform/cmsis/inc -Iplatform/hal -Iutils/hwtimer_list 42