Skip to content

Commit

Permalink
[MSDK-688] Re-generate Makefiles for AI85 projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter committed Jul 14, 2022
1 parent d024dc7 commit 6a8c026
Show file tree
Hide file tree
Showing 69 changed files with 1,038 additions and 465 deletions.
12 changes: 9 additions & 3 deletions Examples/MAX78000/ADC/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

This comment has been minimized.

Copy link
@maximreza

maximreza Jul 26, 2022

Contributor

@Jake-Carter if the MAXIM_PATH= in the project.mk, it does not get picked up by the Makefile. This line should be moved to line 100 or above.

This comment has been minimized.

Copy link
@Jake-Carter

Jake-Carter Jul 26, 2022

Author Contributor

Thanks @maximreza, I'll fix this in the Makefile template and regenerate


# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -229,9 +233,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/AES/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -229,9 +233,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_bayes_example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_class_marks_example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_convolution_example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_dotproduct_example_f32/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_fft_bin_example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_fir_example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_graphic_equalizer_example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_linear_interp_example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
12 changes: 9 additions & 3 deletions Examples/MAX78000/ARM-DSP/arm_matrix_example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,6 @@ LIBS_DIR := $(abspath $(MAXIM_PATH)/Libraries)
CMSIS_ROOT := $(LIBS_DIR)/CMSIS
export CMSIS_ROOT
# TODO: Remove dependency on export CMSIS_ROOT
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
$(info $(BOARD_DIR))
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers

# Select 'GCC' or 'IAR' compiler
COMPILER ?= GCC
Expand All @@ -127,6 +124,13 @@ COMPILER ?= GCC
$(info Added settings from project.mk...)
include ./project.mk

# One final UC/LC check in case user set TARGET in project.mk
TARGET_UC := $(subst m,M,$(subst a,A,$(subst x,X,$(TARGET))))
TARGET_LC := $(subst M,m,$(subst A,a,$(subst X,x,$(TARGET))))
export TARGET
export TARGET_UC
export TARGET_LC

# *******************************************************************************
# Set up search paths, and auto-detect all source code on those paths.

Expand Down Expand Up @@ -231,9 +235,11 @@ VPATH += $(CMSIS_ROOT)/Device/Maxim/$(TARGET_UC)/Source
# for the target microcontroller.

# Include the BSP
BOARD_DIR := $(LIBS_DIR)/Boards/$(TARGET_UC)/$(BOARD)
include $(BOARD_DIR)/board.mk

# Include the peripheral driver
PERIPH_DRIVER_DIR := $(LIBS_DIR)/PeriphDrivers
include $(PERIPH_DRIVER_DIR)/periphdriver.mk

# *******************************************************************************
Expand Down
Loading

0 comments on commit 6a8c026

Please sign in to comment.