This repository has been archived on 2023-07-17. You can view files and clone it, but cannot push or open issues or pull requests.
bl_mcu_sdk/examples/Makefile

49 lines
1.2 KiB
Makefile
Raw Permalink Normal View History

2023-02-24 21:33:12 +08:00
makefile_files += $(shell find ./peripherals -name 'Makefile' -not -path "*/build/*")
makefile_dirs = $(sort $(dir $(makefile_files)))
ifeq ($(CHIP),bl602)
2023-02-24 21:33:12 +08:00
filter_out_dirs += ./peripherals/csi/%
filter_out_dirs += ./peripherals/emac/%
filter_out_dirs += ./peripherals/pwm_v2/%
filter_out_dirs += ./peripherals/iso11898/%
filter_out_dirs += ./peripherals/usbdev/%
endif
ifeq ($(CHIP),bl702)
2023-02-24 21:33:12 +08:00
filter_out_dirs += ./peripherals/csi/%
filter_out_dirs += ./peripherals/emac/%
filter_out_dirs += ./peripherals/pwm_v2/%
filter_out_dirs += ./peripherals/iso11898/%
endif
ifeq ($(CHIP),bl702L)
2023-02-24 21:33:12 +08:00
filter_out_dirs += ./peripherals/csi/%
filter_out_dirs += ./peripherals/emac/%
filter_out_dirs += ./peripherals/pwm_v2/%
filter_out_dirs += ./peripherals/iso11898/%
filter_out_dirs += ./peripherals/usbdev/%
endif
ifeq ($(CHIP),bl616)
2023-02-24 21:33:12 +08:00
filter_out_dirs += ./peripherals/csi/%
filter_out_dirs += ./peripherals/pwm_v1/%
endif
ifeq ($(CHIP),bl808)
filter_out_dirs += ./peripherals/pwm_v1/%
endif
build_dirs = $(filter-out $(filter_out_dirs), $(makefile_dirs))
listall:
@for n in $(build_dirs); do echo $$n ; done
buildall:
2023-02-24 21:33:12 +08:00
@for n in $(build_dirs); do make -C $$n || break ; done
cleanall:
@for n in $(build_dirs); do make -C $$n clean; done
.PHONY: buildall cleanall