From 994c1dd57a6faae06b53ea5082ace6e5ee956141 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Wed, 4 Mar 2020 16:34:27 +1100 Subject: [PATCH] stm32/Makefile: Add missing ordering dependency on generated headers. --- ports/stm32/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 31d75f3fbe..7d372f4ae1 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -14,9 +14,12 @@ include ../../py/mkenv.mk -include mpconfigport.mk include $(BOARD_DIR)/mpconfigboard.mk +# Files that are generated and needed before the QSTR build. +QSTR_GENERATED_HEADERS = $(BUILD)/pins_qstr.h $(BUILD)/modstm_qstr.h + # qstr definitions (must come before including py.mk) -QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h $(BUILD)/modstm_qstr.h -QSTR_GLOBAL_DEPENDENCIES = mpconfigboard_common.h $(BOARD_DIR)/mpconfigboard.h +QSTR_DEFS = qstrdefsport.h $(QSTR_GENERATED_HEADERS) +QSTR_GLOBAL_DEPENDENCIES = mpconfigboard_common.h $(BOARD_DIR)/mpconfigboard.h $(QSTR_GENERATED_HEADERS) # File containing description of content to be frozen into firmware. FROZEN_MANIFEST ?= boards/manifest.py