2019-10-18 13:51:46 +02:00
|
|
|
-include $(DIR)/Makefile.ci
|
|
|
|
|
|
|
|
define create_Makefile.ci
|
|
|
|
@echo "BOARD_INSUFFICIENT_MEMORY := \\" > $(1)
|
|
|
|
@for b in $(sort $(BOARD_INSUFFICIENT_MEMORY)); do echo " $$b \\" >> $(1); done
|
|
|
|
@echo " #" >> $(1)
|
|
|
|
endef
|
|
|
|
|
2023-12-01 10:21:17 +01:00
|
|
|
BOARD_INSUFFICIENT_MEMORY += $(ADD_BOARDS)
|
|
|
|
BOARD_INSUFFICIENT_MEMORY := $(filter-out $(REMOVE_BOARDS),$(BOARD_INSUFFICIENT_MEMORY))
|
2019-10-18 13:51:46 +02:00
|
|
|
|
|
|
|
.PHONY: Makefile.ci
|
|
|
|
ifeq ($(BOARD_INSUFFICIENT_MEMORY),)
|
|
|
|
Makefile.ci:
|
|
|
|
@echo "skipping empty Makefile.ci"
|
|
|
|
else
|
|
|
|
Makefile.ci:
|
|
|
|
$(call create_Makefile.ci, $(DIR)/Makefile.ci)
|
|
|
|
endif
|