diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-05-01 09:23:48 -0700 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-05-01 17:13:33 -0700 |
commit | a9ceb116c7c047bfb076e1c69bcc0587cd79ac2a (patch) | |
tree | 31b662dd2e4f28412f2da6d71c243fa76331b0b5 /Makefile.toolchain | |
parent | 709eee03f583a5af918bfbe5898f7f0b1f013ecb (diff) | |
download | chrome-ec-a9ceb116c7c047bfb076e1c69bcc0587cd79ac2a.tar.gz |
introducing chip variant for stm32 family [2/3]
Add a parameter to define the chip variant and pass it to build/make
processes.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BUG=chrome-os-partner:9057
TEST=make BOARD=daisy ; make BOARD=adv ; make BOARD=discovery
Change-Id: I87b65b582ed5fc2cf5966446e15224ac15e328e9
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r-- | Makefile.toolchain | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain index 4aae435863..1b55247ff5 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -1,4 +1,4 @@ -# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Copyright (c) 2012 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # @@ -25,7 +25,8 @@ CFLAGS_WARN=-Wall -Werror -Wundef -Wstrict-prototypes -Wno-trigraphs \ CFLAGS_DEBUG= -g CFLAGS_INCLUDE=$(foreach i,$(includes),-I$(i) ) CFLAGS_DEFINE=-DOUTDIR=$(out) -DCHIP=$(CHIP) -DTASKFILE=$(PROJECT).tasklist \ - -DBOARD=$(BOARD) -DBOARD_$(BOARD) -DCORE=$(CORE) -DCHIP_$(CHIP) + -DBOARD=$(BOARD) -DBOARD_$(BOARD) -DCORE=$(CORE) -DCHIP_$(CHIP) \ + -DCHIP_VARIANT=$(CHIP_VARIANT) -DCHIP_VARIANT_$(CHIP_VARIANT) CPPFLAGS=$(CFLAGS_DEFINE) $(CFLAGS_INCLUDE) CFLAGS=$(CPPFLAGS) $(CFLAGS_CPU) $(CFLAGS_DEBUG) $(CFLAGS_WARN) BUILD_CFLAGS=$(CPPFLAGS) -O3 $(CFLAGS_DEBUG) $(CFLAGS_WARN) |