Revision efe86ca9

View differences:

amiro-os.mk
1
################################################################################
2
# AMiRo-OS is an operating system designed for the Autonomous Mini Robot       #
3
# (AMiRo) platform.                                                            #
4
# Copyright (C) 2016..2019  Thomas Schöpping et al.                            #
5
#                                                                              #
6
# This program is free software: you can redistribute it and/or modify         #
7
# it under the terms of the GNU General Public License as published by         #
8
# the Free Software Foundation, either version 3 of the License, or            #
9
# (at your option) any later version.                                          #
10
#                                                                              #
11
# This program is distributed in the hope that it will be useful,              #
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of               #
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                #
14
# GNU General Public License for more details.                                 #
15
#                                                                              #
16
# You should have received a copy of the GNU General Public License            #
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.        #
18
#                                                                              #
19
# This research/work was supported by the Cluster of Excellence Cognitive      #
20
# Interaction Technology 'CITEC' (EXC 277) at Bielefeld University, which is   #
21
# funded by the German Research Foundation (DFG).                              #
22
################################################################################
23

  
24

  
25

  
26
# path to this directory
27
AMIROOS_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
28

  
29
# set AMiRo-OS path variable
30
AMIROOS := $(AMIROOS_DIR:/=)
31

  
32
# load bootloader files
33
include $(AMIROOS)/bootloader/bootloader.mk
34

  
35
# load kernel files
36
include $(AMIROOS)/kernel/kernel.mk
37

  
38
# load peryphery LLD files
39
include $(AMIROOS)/periphery-lld/periphery-lld.mk
40

  
41
# load AMiRo-OS files
42
include $(AMIROOS)/modules/modules.mk
43
include $(AMIROOS)/core/core.mk
44
include $(AMIROOS)/test/test.mk
45

  
46
# inclusion directories
47
AMIROOS_INC = $(CONFDIR) \
48
              $(AMIROOS) \
49
              $(AMIROOS_BOOTLOADER_INC) \
50
              $(AMIROOS_KERNEL_INC) \
51
              $(AMIROOS_PERIPHERYLLD_INC) \
52
              $(AMIROOS_MODULES_INC) \
53
              $(AMIROOS_CORE_INC) \
54
              $(AMIROOS_TEST_INC) \
55
              $(MODULE_INC) \
56
              $(APPS_INC)
57

  
58
# C sources that can be compiled in ARM or THUMB mode depending on the global setting
59
AMIROOS_CSRC = $(AMIROOS_BOOTLOADER_CSRC) \
60
               $(AMIROOS_KERNEL_CSRC) \
61
               $(AMIROOS_PERIPHERYLLD_CSRC) \
62
               $(AMIROOS_MODULES_CSRC) \
63
               $(AMIROOS_CORE_CSRC) \
64
               $(AMIROOS_TEST_CSRC) \
65
               $(MODULE_CSRC) \
66
               $(APPS_CSRC)
67

  
68
# C++ sources that can be compiled in ARM or THUMB mode depending on the global setting
69
AMIROOS_CPPSRC = $(AMIROOS_BOOTLOADER_CPPSRC) \
70
                 $(AMIROOS_KERNEL_CPPSRC) \
71
                 $(AMIROOS_PERIPHERYLLD_CPPSRC) \
72
                 $(AMIROOS_MODULES_CPPSRC) \
73
                 $(AMIROOS_CORE_CPPSRC) \
74
                 $(AMIROOS_TEST_CPPSRC) \
75
                 $(MODULE_CPPSRC) \
76
                 $(APPS_CPPSRC)
77

  
78
# ASM source files
79
AMIROOS_ASMSRC = $(AMIROOS_BOOTLOADER_ASMSRC) \
80
                 $(AMIROOS_KERNEL_ASMSRC) \
81
                 $(AMIROOS_PERIPHERYLLD_ASMSRC) \
82
                 $(AMIROOS_MODULES_ASMSRC) \
83
                 $(AMIROOS_CORE_ASMSRC) \
84
                 $(AMIROOS_TEST_ASMSRC) \
85
                 $(MODULE_ASMSRC) \
86
                 $(APPS_ASMSRC)
87

  
88
# ASM with preprocessor source files here
89
AMIROOS_ASMXSRC = $(AMIROOS_BOOTLOADER_ASMXSRC) \
90
                  $(AMIROOS_KERNEL_ASMXSRC) \
91
                  $(AMIROOS_PERIPHERYLLD_ASMXSRC) \
92
                  $(AMIROOS_MODULES_ASMXSRC) \
93
                  $(AMIROOS_CORE_ASMXSRC) \
94
                  $(AMIROOS_TEST_ASMXSRC) \
95
                  $(MODULE_ASMXSRC) \
96
                  $(APPS_ASMXSRC)
97

  
amiroos.mk
1
################################################################################
2
# AMiRo-OS is an operating system designed for the Autonomous Mini Robot       #
3
# (AMiRo) platform.                                                            #
4
# Copyright (C) 2016..2019  Thomas Schöpping et al.                            #
5
#                                                                              #
6
# This program is free software: you can redistribute it and/or modify         #
7
# it under the terms of the GNU General Public License as published by         #
8
# the Free Software Foundation, either version 3 of the License, or            #
9
# (at your option) any later version.                                          #
10
#                                                                              #
11
# This program is distributed in the hope that it will be useful,              #
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of               #
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                #
14
# GNU General Public License for more details.                                 #
15
#                                                                              #
16
# You should have received a copy of the GNU General Public License            #
17
# along with this program.  If not, see <http://www.gnu.org/licenses/>.        #
18
#                                                                              #
19
# This research/work was supported by the Cluster of Excellence Cognitive      #
20
# Interaction Technology 'CITEC' (EXC 277) at Bielefeld University, which is   #
21
# funded by the German Research Foundation (DFG).                              #
22
################################################################################
23

  
24

  
25

  
26
# absolute path to this directory
27
AMIROOS_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
28

  
29
# set AMiRo-OS path variable
30
AMIROOS := $(AMIROOS_DIR:/=)
31

  
32
# load bootloader files
33
include $(AMIROOS)/bootloader/bootloader.mk
34

  
35
# load kernel files
36
include $(AMIROOS)/kernel/kernel.mk
37

  
38
# load peryphery LLD files
39
include $(AMIROOS)/periphery-lld/periphery-lld.mk
40

  
41
# load AMiRo-OS files
42
include $(AMIROOS)/modules/modules.mk
43
include $(AMIROOS)/core/core.mk
44
include $(AMIROOS)/test/test.mk
45

  
46
# inclusion directories
47
AMIROOS_INC = $(CONFDIR) \
48
              $(AMIROOS) \
49
              $(AMIROOS_BOOTLOADER_INC) \
50
              $(AMIROOS_KERNEL_INC) \
51
              $(AMIROOS_PERIPHERYLLD_INC) \
52
              $(AMIROOS_MODULES_INC) \
53
              $(AMIROOS_CORE_INC) \
54
              $(AMIROOS_TEST_INC) \
55
              $(MODULE_INC) \
56
              $(APPS_INC)
57

  
58
# C sources that can be compiled in ARM or THUMB mode depending on the global setting
59
AMIROOS_CSRC = $(AMIROOS_BOOTLOADER_CSRC) \
60
               $(AMIROOS_KERNEL_CSRC) \
61
               $(AMIROOS_PERIPHERYLLD_CSRC) \
62
               $(AMIROOS_MODULES_CSRC) \
63
               $(AMIROOS_CORE_CSRC) \
64
               $(AMIROOS_TEST_CSRC) \
65
               $(MODULE_CSRC) \
66
               $(APPS_CSRC)
67

  
68
# C++ sources that can be compiled in ARM or THUMB mode depending on the global setting
69
AMIROOS_CPPSRC = $(AMIROOS_BOOTLOADER_CPPSRC) \
70
                 $(AMIROOS_KERNEL_CPPSRC) \
71
                 $(AMIROOS_PERIPHERYLLD_CPPSRC) \
72
                 $(AMIROOS_MODULES_CPPSRC) \
73
                 $(AMIROOS_CORE_CPPSRC) \
74
                 $(AMIROOS_TEST_CPPSRC) \
75
                 $(MODULE_CPPSRC) \
76
                 $(APPS_CPPSRC)
77

  
78
# ASM source files
79
AMIROOS_ASMSRC = $(AMIROOS_BOOTLOADER_ASMSRC) \
80
                 $(AMIROOS_KERNEL_ASMSRC) \
81
                 $(AMIROOS_PERIPHERYLLD_ASMSRC) \
82
                 $(AMIROOS_MODULES_ASMSRC) \
83
                 $(AMIROOS_CORE_ASMSRC) \
84
                 $(AMIROOS_TEST_ASMSRC) \
85
                 $(MODULE_ASMSRC) \
86
                 $(APPS_ASMSRC)
87

  
88
# ASM with preprocessor source files here
89
AMIROOS_ASMXSRC = $(AMIROOS_BOOTLOADER_ASMXSRC) \
90
                  $(AMIROOS_KERNEL_ASMXSRC) \
91
                  $(AMIROOS_PERIPHERYLLD_ASMXSRC) \
92
                  $(AMIROOS_MODULES_ASMXSRC) \
93
                  $(AMIROOS_CORE_ASMXSRC) \
94
                  $(AMIROOS_TEST_ASMXSRC) \
95
                  $(MODULE_ASMXSRC) \
96
                  $(APPS_ASMXSRC)
97

  
bootloader/bootloader.mk
23 23

  
24 24

  
25 25

  
26
# the path to this makefile
26
# path to this makefile
27 27
AMIROOS_BOOTLOADER_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
28 28

  
29 29
# set AMiRo-BLT path variable
core/core.mk
23 23

  
24 24

  
25 25

  
26
# absolute path to this directory
26
# path to this directory
27 27
AMIROOS_CORE_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
28 28

  
29 29
# include paths
modules/DiWheelDrive_1-1/Makefile
122 122
MCU := cortex-m3
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F103xE.ld
133
LDSCRIPT = STM32F103xE.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/A3906/v1 \
145
                            $(AMIROLLD)/drivers/AT24C01B/v1 \
146
                            $(AMIROLLD)/drivers/HMC5883L/v1 \
147
                            $(AMIROLLD)/drivers/INA219/v1 \
148
                            $(AMIROLLD)/drivers/L3G4200D/v1 \
149
                            $(AMIROLLD)/drivers/LED/v1 \
150
                            $(AMIROLLD)/drivers/LIS331DLH/v1 \
151
                            $(AMIROLLD)/drivers/LTC4412/v1 \
152
                            $(AMIROLLD)/drivers/PCA9544A/v1 \
153
                            $(AMIROLLD)/drivers/TPS6211x/v1 \
154
                            $(AMIROLLD)/drivers/VCNL4020/v1
144
include $(AMIROLLD)/drivers/A3906/v1/alld_A3906.mk
145
include $(AMIROLLD)/drivers/AT24C01B/v1/alld_AT24C01B.mk
146
include $(AMIROLLD)/drivers/HMC5883L/v1/alld_HMC5883L.mk
147
include $(AMIROLLD)/drivers/INA219/v1/alld_INA219.mk
148
include $(AMIROLLD)/drivers/L3G4200D/v1/alld_L3G4200D.mk
149
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
150
include $(AMIROLLD)/drivers/LIS331DLH/v1/alld_LIS331DLH.mk
151
include $(AMIROLLD)/drivers/LTC4412/v1/alld_LTC4412.mk
152
include $(AMIROLLD)/drivers/PCA9544A/v1/alld_PCA9544A.mk
153
include $(AMIROLLD)/drivers/TPS6211x/v1/alld_TPS6211x.mk
154
include $(AMIROLLD)/drivers/VCNL4020/v1/alld_VCNL4020.mk
155 155

  
156 156
# Tests.
157 157
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/A3906_v1 \
......
167 167
                    $(AMIROOS_TEST_DIR)periphery-lld/VCNL4020_v1
168 168

  
169 169
# Module specific inclusion directories
170
MODULE_INC = $(MODULEDIR) \
171
             $(wildcard $(MODULEDIR)/test/*)
170
MODULE_INC = $(MODULE_DIR) \
171
             $(wildcard $(MODULE_DIR)/test/*)
172 172

  
173 173
# Module specific C source files.
174 174
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/DiWheelDrive_1-2/Makefile
122 122
MCU := cortex-m3
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F103xE.ld
133
LDSCRIPT = STM32F103xE.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/A3906/v1 \
145
                            $(AMIROLLD)/drivers/AT24C01B/v1 \
146
                            $(AMIROLLD)/drivers/BNO055/v1 \
147
                            $(AMIROLLD)/drivers/INA219/v1 \
148
                            $(AMIROLLD)/drivers/LED/v1 \
149
                            $(AMIROLLD)/drivers/LTC4412/v1 \
150
                            $(AMIROLLD)/drivers/PCA9544A/v1 \
151
                            $(AMIROLLD)/drivers/TPS6211x/v1 \
152
                            $(AMIROLLD)/drivers/VCNL4020/v1
144
include $(AMIROLLD)/drivers/A3906/v1/alld_A3906.mk
145
include $(AMIROLLD)/drivers/AT24C01B/v1/alld_AT24C01B.mk
146
#include $(AMIROLLD)/drivers/BNO055/v1/alld_BNO055.mk
147
include $(AMIROLLD)/drivers/INA219/v1/alld_INA219.mk
148
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
149
include $(AMIROLLD)/drivers/LTC4412/v1/alld_LTC4412.mk
150
include $(AMIROLLD)/drivers/PCA9544A/v1/alld_PCA9544A.mk
151
include $(AMIROLLD)/drivers/TPS6211x/v1/alld_TPS6211x.mk
152
include $(AMIROLLD)/drivers/VCNL4020/v1/alld_VCNL4020.mk
153 153

  
154 154
# Tests.
155 155
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/A3906_v1 \
156 156
                    $(AMIROOS_TEST_DIR)periphery-lld/AT24C01B_v1 \
157
                    $(AMIROOS_TEST_DIR)periphery-lld/BNO055_v1 \
158 157
                    $(AMIROOS_TEST_DIR)periphery-lld/INA219_v1 \
159 158
                    $(AMIROOS_TEST_DIR)periphery-lld/LED_v1 \
160 159
                    $(AMIROOS_TEST_DIR)periphery-lld/LTC4412_v1 \
......
163 162
                    $(AMIROOS_TEST_DIR)periphery-lld/VCNL4020_v1
164 163

  
165 164
# Module specific inclusion directories
166
MODULE_INC = $(MODULEDIR) \
167
             $(wildcard $(MODULEDIR)/test/*)
165
MODULE_INC = $(MODULE_DIR) \
166
             $(wildcard $(MODULE_DIR)/test/*)
168 167

  
169 168
# Module specific C source files.
170 169
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/LightRing_1-0/Makefile
122 122
MCU := cortex-m3
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F103xE.ld
133
LDSCRIPT = STM32F103xE.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/AT24C01B/v1 \
145
                            $(AMIROLLD)/drivers/TLC5947/v1 \
146
                            $(AMIROLLD)/drivers/TPS20xxB/v1
144
include $(AMIROLLD)/drivers/AT24C01B/v1/alld_AT24C01B.mk
145
include $(AMIROLLD)/drivers/TLC5947/v1/alld_TLC5947.mk
146
include $(AMIROLLD)/drivers/TPS20xxB/v1/alld_TPS20xxB.mk
147 147

  
148 148
# Tests.
149 149
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/AT24C01B_v1 \
......
151 151
                    $(AMIROOS_TEST_DIR)periphery-lld/TPS20xxB_v1
152 152

  
153 153
# Module specific inclusion directories
154
MODULE_INC = $(MODULEDIR) \
155
             $(wildcard $(MODULEDIR)/test/*)
154
MODULE_INC = $(MODULE_DIR) \
155
             $(wildcard $(MODULE_DIR)/test/*)
156 156

  
157 157
# Module specific C source files.
158 158
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/LightRing_1-2/Makefile
122 122
MCU := cortex-m3
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F103xE.ld
133
LDSCRIPT = STM32F103xE.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/AT24C01B/v1 \
145
                            $(AMIROLLD)/drivers/INA219/v1 \
146
                            $(AMIROLLD)/drivers/LED/v1 \
147
                            $(AMIROLLD)/drivers/MIC9404x/v1 \
148
                            $(AMIROLLD)/drivers/TLC5947/v1 \
149
			    $(AMIROLLD)/drivers/DW1000/v1
144
include $(AMIROLLD)/drivers/AT24C01B/v1/alld_AT24C01B.mk
145
include $(AMIROLLD)/drivers/INA219/v1/alld_INA219.mk
146
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
147
include $(AMIROLLD)/drivers/MIC9404x/v1/alld_MIC9404x.mk
148
include $(AMIROLLD)/drivers/TLC5947/v1/alld_TLC5947.mk
149
include $(AMIROLLD)/drivers/DW1000/v1/alld_DW1000.mk
150 150

  
151 151
# Tests.
152 152
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/AT24C01B_v1 \
......
154 154
                    $(AMIROOS_TEST_DIR)periphery-lld/LED_v1 \
155 155
                    $(AMIROOS_TEST_DIR)periphery-lld/MIC9404x_v1 \
156 156
                    $(AMIROOS_TEST_DIR)periphery-lld/TLC5947_v1 \
157
		    $(AMIROOS_TEST_DIR)periphery-lld/DW1000_v1
157
                    $(AMIROOS_TEST_DIR)periphery-lld/DW1000_v1
158 158

  
159 159
# Module specific inclusion directories
160
MODULE_INC = $(MODULEDIR) \
161
             $(wildcard $(MODULEDIR)/test/*)
160
MODULE_INC = $(MODULE_DIR) \
161
             $(wildcard $(MODULE_DIR)/test/*)
162 162

  
163 163
# Module specific C source files.
164 164
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
......
216 216
#                                                                              #
217 217

  
218 218
FLASH_MODULES = $(PROJECT)
219
FLASH_FILES = $(BUILDDIR)/$(PROJECT).$(FLASHTOOL_EXT)
219
FLASH_FILES = $(BUILD_DIR)/$(PROJECT).$(FLASHTOOL_EXT)
220 220

  
221 221
flash: $(FLASH_FILES)
222 222
	$(info )
modules/NUCLEO-F103RB/Makefile
119 119
PROJECT := $(notdir $(PROJECT_PATH))
120 120

  
121 121
# Target settings.
122
MCU = cortex-m3
122
MCU := cortex-m3
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F103xB.ld
133
LDSCRIPT = STM32F103xB.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f1xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/LED/v1 \
145
                            $(AMIROLLD)/drivers/button/v1\
146
                            $(AMIROLLD)/drivers/DW1000/v1
144
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
145
include $(AMIROLLD)/drivers/button/v1/alld_button.mk
146
include $(AMIROLLD)/drivers/DW1000/v1/alld_DW1000.mk
147 147

  
148 148
# Tests.
149 149
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/button_v1 \
......
151 151
                    $(AMIROOS_TEST_DIR)periphery-lld/DW1000_v1
152 152

  
153 153
# Module specific inclusion directories
154
MODULE_INC = $(MODULEDIR) \
155
             $(wildcard $(MODULEDIR)/test/*)
154
MODULE_INC = $(MODULE_DIR) \
155
             $(wildcard $(MODULE_DIR)/test/*)
156 156

  
157 157
# Module specific C source files.
158 158
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/NUCLEO-F401RE/Makefile
119 119
PROJECT := $(notdir $(PROJECT_PATH))
120 120

  
121 121
# Target settings.
122
MCU = cortex-m4
122
MCU := cortex-m4
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F401xE.ld
133
LDSCRIPT = STM32F401xE.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/LED/v1 \
145
                            $(AMIROLLD)/drivers/button/v1
144
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
145
include $(AMIROLLD)/drivers/button/v1/alld_button.mk
146 146

  
147 147
# Tests.
148 148
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/LED_v1
149 149

  
150 150
# Module specific inclusion directories
151
MODULE_INC = $(MODULEDIR) \
152
             $(wildcard $(MODULEDIR)/test/*)
151
MODULE_INC = $(MODULE_DIR) \
152
             $(wildcard $(MODULE_DIR)/test/*)
153 153

  
154 154
# Module specific C source files.
155 155
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/NUCLEO-F767ZI/Makefile
119 119
PROJECT := $(notdir $(PROJECT_PATH))
120 120

  
121 121
# Target settings.
122
MCU = cortex-m4
122
MCU := cortex-m4
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F76xxI.ld
133
LDSCRIPT = STM32F76xxI.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f7xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/LED/v1 \
145
                            $(AMIROLLD)/drivers/button/v1
144
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
145
include $(AMIROLLD)/drivers/button/v1/alld_button.mk
146 146
# Tests.
147 147
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/LED_v1
148 148

  
149 149
# Module specific inclusion directories
150
MODULE_INC = $(MODULEDIR) \
151
             $(wildcard $(MODULEDIR)/test/*)
150
MODULE_INC = $(MODULE_DIR) \
151
             $(wildcard $(MODULE_DIR)/test/*)
152 152

  
153 153
# Module specific C source files.
154 154
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/NUCLEO-L476RG/Makefile
122 122
MCU := cortex-m4
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT := $(MODULEDIR)/STM32L476xG.ld
133
LDSCRIPT := $(MODULE_DIR)/STM32L476xG.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32l4xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/LED/v1 \
145
                            $(AMIROLLD)/drivers/button/v1 \
146
                            $(AMIROLLD)/drivers/MPU6050/v1
144
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
145
include $(AMIROLLD)/drivers/button/v1/alld_button.mk
146
include $(AMIROLLD)/drivers/MPU6050/v1/alld_MPU6050.mk
147 147

  
148 148
# Tests.
149 149
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/button_v1 \
......
151 151
                    $(AMIROOS_TEST_DIR)periphery-lld/MPU6050_v1
152 152

  
153 153
# Module specific inclusion directories
154
MODULE_INC = $(MODULEDIR) \
155
             $(wildcard $(MODULEDIR)/test/*)
154
MODULE_INC = $(MODULE_DIR) \
155
             $(wildcard $(MODULE_DIR)/test/*)
156 156

  
157 157
# Module specific C source files.
158 158
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/PowerManagement_1-1/Makefile
122 122
MCU := cortex-m4
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F405xG.ld
133
LDSCRIPT = STM32F405xG.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/AT24C01B/v1 \
145
                            $(AMIROLLD)/drivers/AT42QT1050/v1 \
146
                            $(AMIROLLD)/drivers/bq241xx/v1 \
147
                            $(AMIROLLD)/drivers/bq27500/v1 \
148
                            $(AMIROLLD)/drivers/INA219/v1 \
149
                            $(AMIROLLD)/drivers/LED/v1 \
150
                            $(AMIROLLD)/drivers/MPR121/v1 \
151
                            $(AMIROLLD)/drivers/PCA9544A/v1 \
152
                            $(AMIROLLD)/drivers/PCAL6524/v1 \
153
                            $(AMIROLLD)/drivers/PKxxxExxx/v1 \
154
                            $(AMIROLLD)/drivers/TPS6211x/v1 \
155
                            $(AMIROLLD)/drivers/VCNL4020/v1
144
include $(AMIROLLD)/drivers/AT24C01B/v1/alld_AT24C01B.mk
145
include $(AMIROLLD)/drivers/AT42QT1050/v1/alld_AT42QT1050.mk
146
include $(AMIROLLD)/drivers/bq241xx/v1/alld_bq241xx.mk
147
include $(AMIROLLD)/drivers/bq27500/v1/alld_bq27500.mk
148
include $(AMIROLLD)/drivers/INA219/v1/alld_INA219.mk
149
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
150
include $(AMIROLLD)/drivers/MPR121/v1/alld_MPR121.mk
151
include $(AMIROLLD)/drivers/PCA9544A/v1/alld_PCA9544A.mk
152
include $(AMIROLLD)/drivers/PCAL6524/v1/alld_PCAL6524.mk
153
include $(AMIROLLD)/drivers/PKxxxExxx/v1/alld_PKxxxExxx.mk
154
include $(AMIROLLD)/drivers/TPS6211x/v1/alld_TPS6211x.mk
155
include $(AMIROLLD)/drivers/VCNL4020/v1/alld_VCNL4020.mk
156 156

  
157 157
# Tests.
158 158
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)lld/adc \
......
172 172
                    $(AMIROOS_TEST_DIR)periphery-lld/VCNL4020_v1
173 173

  
174 174
# Module specific inclusion directories
175
MODULE_INC = $(MODULEDIR) \
176
             $(wildcard $(MODULEDIR)/test/*)
175
MODULE_INC = $(MODULE_DIR) \
176
             $(wildcard $(MODULE_DIR)/test/*)
177 177

  
178 178
# Module specific C source files.
179 179
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/PowerManagement_1-2/Makefile
122 122
MCU := cortex-m4
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F405xG.ld
133
LDSCRIPT = STM32F405xG.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/AT24C01B/v1 \
145
                            $(AMIROLLD)/drivers/AT42QT1050/v1 \
146
                            $(AMIROLLD)/drivers/bq241xx/v1 \
147
                            $(AMIROLLD)/drivers/bq27500/v1 \
148
                            $(AMIROLLD)/drivers/INA219/v1 \
149
                            $(AMIROLLD)/drivers/LED/v1 \
150
                            $(AMIROLLD)/drivers/MPR121/v1 \
151
                            $(AMIROLLD)/drivers/PCA9544A/v1 \
152
                            $(AMIROLLD)/drivers/PCAL6524/v1 \
153
                            $(AMIROLLD)/drivers/PKxxxExxx/v1 \
154
                            $(AMIROLLD)/drivers/TPS6211x/v1 \
155
                            $(AMIROLLD)/drivers/VCNL4020/v1
144
include $(AMIROLLD)/drivers/AT24C01B/v1/alld_AT24C01B.mk
145
include $(AMIROLLD)/drivers/AT42QT1050/v1/alld_AT42QT1050.mk
146
include $(AMIROLLD)/drivers/bq241xx/v1/alld_bq241xx.mk
147
include $(AMIROLLD)/drivers/bq27500/v1/alld_bq27500.mk
148
include $(AMIROLLD)/drivers/INA219/v1/alld_INA219.mk
149
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
150
include $(AMIROLLD)/drivers/MPR121/v1/alld_MPR121.mk
151
include $(AMIROLLD)/drivers/PCA9544A/v1/alld_PCA9544A.mk
152
include $(AMIROLLD)/drivers/PCAL6524/v1/alld_PCAL6524.mk
153
include $(AMIROLLD)/drivers/PKxxxExxx/v1/alld_PKxxxExxx.mk
154
include $(AMIROLLD)/drivers/TPS6211x/v1/alld_TPS6211x.mk
155
include $(AMIROLLD)/drivers/VCNL4020/v1/alld_VCNL4020.mk
156 156

  
157 157
# Tests.
158 158
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)lld/adc \
......
172 172
                    $(AMIROOS_TEST_DIR)periphery-lld/VCNL4020_v1
173 173

  
174 174
# Module specific inclusion directories
175
MODULE_INC = $(MODULEDIR) \
176
             $(wildcard $(MODULEDIR)/test/*)
175
MODULE_INC = $(MODULE_DIR) \
176
             $(wildcard $(MODULE_DIR)/test/*)
177 177

  
178 178
# Module specific C source files.
179 179
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/STM32F407G-DISC1/Makefile
119 119
PROJECT := $(notdir $(PROJECT_PATH))
120 120

  
121 121
# Target settings.
122
MCU = cortex-m4
122
MCU := cortex-m4
123 123

  
124 124
# Module specific paths and directories.
125
MODULEDIR := .
126
CONFDIR := $(MODULEDIR)
127
ifeq ($(BUILDDIR),)
128
  BUILDDIR := $(PROJECT_PATH)/build
125
MODULE_DIR := .
126
CONFIG_DIR := $(MODULEDIR)
127
ifeq ($(BUILD_DIR),)
128
  BUILD_DIR := $(PROJECT_PATH)/build
129 129
endif
130
DEPDIR := $(dir $(BUILDDIR)).dep
130
DEP_DIR := $(dir $(BUILD_DIR)).dep
131 131

  
132 132
# Linker script.
133
LDSCRIPT= STM32F407xG.ld
133
LDSCRIPT = STM32F407xG.ld
134 134

  
135 135
# General AMiRo-OS files.
136
include ../../amiroos.mk
136
include ../../amiro-os.mk
137 137

  
138 138
# Module specific ChibiOS files.
139 139
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
......
141 141
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
142 142

  
143 143
# Periphery LLDs.
144
AMIROOS_PERIPHERYLLD_INC += $(AMIROLLD)/drivers/LED/v1 \
145
                            $(AMIROLLD)/drivers/button/v1
144
include $(AMIROLLD)/drivers/LED/v1/alld_LED.mk
145
include $(AMIROLLD)/drivers/button/v1/alld_button.mk
146 146

  
147 147
# Tests.
148 148
AMIROOS_TEST_INC += $(AMIROOS_TEST_DIR)periphery-lld/LED_v1
149 149

  
150 150
# Module specific inclusion directories
151
MODULE_INC = $(MODULEDIR) \
152
             $(wildcard $(MODULEDIR)/test/*)
151
MODULE_INC = $(MODULE_DIR) \
152
             $(wildcard $(MODULE_DIR)/test/*)
153 153

  
154 154
# Module specific C source files.
155 155
MODULE_CSRC = $(wildcard $(MODULE_INC:%=%/*.[Cc]))
modules/modules.mk
23 23

  
24 24

  
25 25

  
26
# absolute path to this directory
26
# path to this directory
27 27
AMIROOS_MODULES_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
28 28

  
29 29
# include paths
periphery-lld/AMiRo-LLD
1
Subproject commit a5507edc6e69616a793494b332121a60ad8af7f9
1
Subproject commit e637a5101e3bb1e0a082aa7d532c253af2263221
periphery-lld/periphery-lld.mk
23 23

  
24 24

  
25 25

  
26
# absolute path to this directory
26
# path to this directory
27 27
AMIRO_PERIPHERYLLD_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
28 28

  
29
# set AMiRo-LLD path variable
30
AMIROLLD := $(AMIRO_PERIPHERYLLD_DIR)AMiRo-LLD
29
# load peryphery LLD files
30
include $(AMIRO_PERIPHERYLLD_DIR)AMiRo-LLD/amiro-lld.mk
31 31

  
32 32
# include paths
33
AMIROOS_PERIPHERYLLD_INC = $(AMIROLLD) \
34
                           $(AMIRO_PERIPHERYLLD_DIR:/=)
33
AMIROOS_PERIPHERYLLD_INC = $(AMIRO_PERIPHERYLLD_DIR:/=) \
34
                           $(AMIROLLD_INC)
35 35

  
36 36
# C source files
37
AMIROOS_PERIPHERYLLD_CSRC = $(AMIROLLD_CSRC) \
38
                            $(wildcard $(AMIROOS_PERIPHERYLLD_INC:%=%/*.[Cc]))
39

  
37
AMIROOS_PERIPHERYLLD_CSRC = $(AMIRO_PERIPHERYLLD_DIR)periphAL.c \
38
                            $(AMIROLLD_CSRC) \
test/test.mk
23 23

  
24 24

  
25 25

  
26
# absolute path to this directory
26
# path to this directory
27 27
AMIROOS_TEST_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
28 28

  
29 29
# include path

Also available in: Unified diff