diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-02 14:56:34 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-12-02 14:56:34 +0000 |
commit | 7fb3c807170fe737294d521ad1c8654b6e069c49 (patch) | |
tree | 6a465b372e10a57d2c9d645ef8f7fcb6ff038598 /tools/ftl/processors/boards/stm32l0xx/templates/board.mk.ftl | |
parent | afbc92a7f789d0f1a747341a37c0e6f881f36085 (diff) | |
download | ChibiOS-7fb3c807170fe737294d521ad1c8654b6e069c49.tar.gz ChibiOS-7fb3c807170fe737294d521ad1c8654b6e069c49.tar.bz2 ChibiOS-7fb3c807170fe737294d521ad1c8654b6e069c49.zip |
Added command line board files generation tool. Regenerated all board files automatically.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11104 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'tools/ftl/processors/boards/stm32l0xx/templates/board.mk.ftl')
-rw-r--r-- | tools/ftl/processors/boards/stm32l0xx/templates/board.mk.ftl | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/tools/ftl/processors/boards/stm32l0xx/templates/board.mk.ftl b/tools/ftl/processors/boards/stm32l0xx/templates/board.mk.ftl new file mode 100644 index 000000000..25fab9a6d --- /dev/null +++ b/tools/ftl/processors/boards/stm32l0xx/templates/board.mk.ftl @@ -0,0 +1,44 @@ +[#ftl]
+[#--
+ ChibiOS - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011,2012,2013,2014,2015,2016,2017 Giovanni Di Sirio.
+
+ This file is part of ChibiOS.
+
+ ChibiOS is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ ChibiOS is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ --]
+[@pp.dropOutputFile /]
+[#import "/@lib/libutils.ftl" as utils /]
+[@pp.changeOutputFile name="board.mk" /]
+[#if doc1.board.configuration_settings.board_files_path[0]??]
+ [#assign path = doc1.board.configuration_settings.board_files_path[0]?string?trim /]
+ [#if !path?ends_with("/")]
+ [#assign path = path + "/"]
+ [/#if]
+[#else]
+ [#if doc1.board.configuration_settings.hal_version[0]?trim == "2.6.x"]
+ [#assign path = "$(CHIBIOS)/boards/" /]
+ [#else]
+ [#assign path = "$(CHIBIOS)/os/hal/boards/" /]
+ [/#if]
+[/#if]
+# List of all the board related files.
+BOARDSRC = ${path}${doc1.board.board_id[0]}/board.c
+
+# Required include directories
+BOARDINC = ${path}${doc1.board.board_id[0]}
+
+# Shared variables
+ALLCSRC += $(BOARDSRC)
+ALLINC += $(BOARDINC)
|