summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2014-10-09 14:04:32 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-15 20:49:35 +0000
commit4a9cabc3f9e8cfbeee857180c8a0b400ef7c8092 (patch)
tree6cdc15de6e9995be04351870030ef334fee9459d /Makefile
parentb8f73a451d9f0e62aba43dab1184bc1352ee968f (diff)
downloadchrome-ec-4a9cabc3f9e8cfbeee857180c8a0b400ef7c8092.tar.gz
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 <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/222660 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
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