-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: move arch/vendor/mcu specific makefiles into their own dirs
- Loading branch information
Showing
7 changed files
with
92 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ifeq (,$(findstring gen,$(TYPE))) | ||
SOURCES += modules/EmuEEPROM/src/EmuEEPROM.cpp | ||
|
||
#clang-specific defines | ||
ifneq (,$(findstring clang,$(CC_ARM))) | ||
TOOLCHAIN_DIR := $(shell dirname $(shell which arm-none-eabi-gcc) | rev | cut -c5- | rev) | ||
CPP_VER := $(shell $(FIND) $(TOOLCHAIN_DIR)/arm-none-eabi/include/c++ -mindepth 1 -maxdepth 1 | rev | cut -d/ -f 1 | rev) | ||
|
||
INCLUDE_DIRS += \ | ||
-isystem"$(TOOLCHAIN_DIR)/lib/gcc/arm-none-eabi/$(CPP_VER)/include" \ | ||
-isystem"$(TOOLCHAIN_DIR)/lib/gcc/arm-none-eabi/$(CPP_VER)/include-fixed" \ | ||
-isystem"$(TOOLCHAIN_DIR)/arm-none-eabi/include/c++/$(CPP_VER)" \ | ||
-isystem"$(TOOLCHAIN_DIR)/arm-none-eabi/include/c++/$(CPP_VER)/arm-none-eabi" \ | ||
-isystem"$(TOOLCHAIN_DIR)/arm-none-eabi/include/c++/$(CPP_VER)/backward" \ | ||
-isystem"$(TOOLCHAIN_DIR)/arm-none-eabi/include" | ||
endif | ||
endif | ||
|
||
ifeq ($(CPU),cortex-m4) | ||
DEFINES += \ | ||
CORE_ARM_M4 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ifeq (,$(findstring gen,$(TYPE))) | ||
INCLUDE_DIRS += \ | ||
$(addprefix -I,$(shell $(FIND) ./board/arch/$(ARCH)/$(VENDOR)/gen/common -type d -not -path "*Src*")) \ | ||
$(addprefix -I,$(shell $(FIND) ./board/arch/$(ARCH)/$(VENDOR)/gen/$(MCU_FAMILY)/common -type d -not -path "*Src*")) \ | ||
$(addprefix -I,$(shell $(FIND) ./board/arch/$(ARCH)/$(VENDOR)/gen/$(MCU_FAMILY)/$(MCU_BASE)/Drivers -type d -not -path "*Src*")) | ||
|
||
SOURCES += $(shell $(FIND) ./board/arch/$(ARCH)/$(VENDOR)/gen/common -regex '.*\.\(s\|c\)') | ||
SOURCES += $(shell $(FIND) ./board/arch/$(ARCH)/$(VENDOR)/gen/$(MCU_FAMILY)/common -regex '.*\.\(s\|c\)') | ||
SOURCES += $(shell $(FIND) ./board/arch/$(ARCH)/$(VENDOR)/gen/$(MCU_FAMILY)/$(MCU_BASE) -regex '.*\.\(s\|c\)') | ||
SOURCES += $(shell $(FIND) ./board/arch/$(ARCH)/$(VENDOR)/variants/$(MCU_FAMILY) -maxdepth 1 -name "*.cpp") | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ifeq (,$(findstring gen,$(TYPE))) | ||
INCLUDE_DIRS += \ | ||
-I"../modules/lufa/" \ | ||
-I"../modules/avr-libstdcpp/include" | ||
|
||
ifneq (,$(findstring USB_SUPPORTED,$(DEFINES))) | ||
#common for bootloader and application | ||
SOURCES += \ | ||
modules/lufa/LUFA/Drivers/USB/Core/AVR8/Device_AVR8.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/AVR8/EndpointStream_AVR8.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/AVR8/Endpoint_AVR8.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/AVR8/PipeStream_AVR8.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/AVR8/Pipe_AVR8.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/AVR8/USBController_AVR8.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/AVR8/USBInterrupt_AVR8.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/ConfigDescriptors.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/DeviceStandardReq.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/Events.c \ | ||
modules/lufa/LUFA/Drivers/USB/Core/USBTask.c \ | ||
modules/lufa/LUFA/Drivers/USB/Class/Device/AudioClassDevice.c \ | ||
modules/lufa/LUFA/Drivers/USB/Class/Device/MIDIClassDevice.c \ | ||
modules/lufa/LUFA/Drivers/USB/Class/Device/CDCClassDevice.c | ||
endif | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
ifeq ($(TYPE),boot) | ||
#save flash - this feature doesn't fit into 4k | ||
DEFINES := $(filter-out LED_INDICATORS_CTL,$(DEFINES)) | ||
UART_TX_BUFFER_SIZE := 32 | ||
UART_RX_BUFFER_SIZE := 32 | ||
else ifeq ($(TYPE),app) | ||
UART_TX_BUFFER_SIZE := 64 | ||
UART_RX_BUFFER_SIZE := 64 | ||
endif |