44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
[#ftl]
|
|
[#--
|
|
ChibiOS - Copyright (C) 2006..2020 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)
|