-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modules/asmp: Add config options for library selection
Add config options to select use of some libraries.
- Loading branch information
Showing
11 changed files
with
56 additions
and
20 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
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,25 @@ | ||
ifneq ($(CONFIG_ASMP_WORKER_CMSIS),) | ||
|
||
ifneq ($(CONFIG_EXTERNALS_CMSIS),y) | ||
$(error You must set CONFIG_EXTERNALS_CMSIS to use it in worker) | ||
endif | ||
|
||
EXT_LIBS ?= | ||
|
||
CMSISDIR = $(SDKDIR)$(DELIM)..$(DELIM)externals$(DELIM)cmsis | ||
CMSIS_DSP_DIR = $(CMSISDIR)$(DELIM)dsp | ||
|
||
# Setup to build and linking CMSIS DSP library | ||
|
||
include $(CMSISDIR)/LibIncludes.mk | ||
|
||
CMSIS_DSP_LIB = $(CMSIS_DSP_DIR)$(DELIM)libarm_cortexM4lf_math$(LIBEXT) | ||
LDLIBPATH += -L $(CMSIS_DSP_DIR) | ||
LDLIBS += -larm_cortexM4lf_math | ||
|
||
$(CMSIS_DSP_LIB): | ||
$(Q) $(MAKE) -C $(CMSIS_DSP_DIR) TOPDIR="$(TOPDIR)" SDKDIR="$(SDKDIR)" APPDIR="$(APPDIR)" | ||
|
||
EXT_LIBS += $(CMSIS_DSP_LIB) | ||
|
||
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
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 |
---|---|---|
@@ -1,18 +1,10 @@ | ||
CMSISDIR = $(SDKDIR)$(DELIM)..$(DELIM)externals$(DELIM)cmsis | ||
CMSIS_DSP_DIR = $(CMSISDIR)$(DELIM)dsp | ||
|
||
# CONFIG_EXTERNALS_CMSIS = y | ||
# CONFIG_EXTERNALS_CMSIS_DSP = y | ||
# CONFIG_EXTERNALS_CMSIS_NN = y | ||
|
||
# Setup to build and linking CMSIS DSP library | ||
|
||
include $(CMSISDIR)/LibIncludes.mk | ||
|
||
CMSIS_DSP_LIB = $(CMSIS_DSP_DIR)$(DELIM)libarm_cortexM4lf_math$(LIBEXT) | ||
LDLIBPATH += -L $(CMSIS_DSP_DIR) | ||
LDLIBS += -larm_cortexM4lf_math | ||
|
||
$(CMSIS_DSP_LIB): | ||
$(Q) $(MAKE) -C $(CMSIS_DSP_DIR) TOPDIR="$(TOPDIR)" SDKDIR="$(SDKDIR)" APPDIR="$(APPDIR)" | ||
|
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