From 4a9cabc3f9e8cfbeee857180c8a0b400ef7c8092 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Thu, 9 Oct 2014 14:04:32 -0700 Subject: Factor out common flash code for STM32F and STM32F0 This is a preparatory work for the following change for write protection support on STM32F0. BUG=chrome-os-partner:32745 TEST=make buildall BRANCH=samus Change-Id: Ic4deea06e26c4a6ac024a5388e1a5783b40e9876 Signed-off-by: Vic Yang Reviewed-on: https://chromium-review.googlesource.com/222660 Reviewed-by: Randall Spangler --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 92440e4c36..321823a5d5 100644 --- a/Makefile +++ b/Makefile @@ -92,14 +92,17 @@ _rw_size_str:=$(shell echo "CONFIG_FW_RW_SIZE" | $(CPP) $(CPPFLAGS) -P \ -Ichip/$(CHIP) -Iboard/$(BOARD) -imacros include/config.h) _rw_size:=$(shell echo "$$(($(_rw_size_str)))") +$(eval BOARD_$(UC_BOARD)=y) +$(eval CHIP_$(UC_CHIP)=y) +$(eval CHIP_VARIANT_$(UC_CHIP_VARIANT)=y) +$(eval CHIP_FAMILY_$(UC_CHIP_FAMILY)=y) + # Get build configuration from sub-directories # Note that this re-includes the board and chip makefiles include board/$(BOARD)/build.mk include chip/$(CHIP)/build.mk include core/$(CORE)/build.mk -$(eval BOARD_$(UC_BOARD)=y) - include common/build.mk include driver/build.mk include power/build.mk -- cgit v1.2.1