Revision efe86ca9 modules/NUCLEO-L476RG/Makefile

View differences:

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]))

Also available in: Unified diff