You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enables setting a file path to select user C modules in a
USER_C_MODULES directory, the same way CMake works.
The file is a .mk file with the user modules required.
USER_C_MODULES=<path/to/file>/my_user_modules.mk
in my_user_modules.mk:
USER_C_MODULES_PATH :=<path/to/user_modules>
USER_C_MODULES := module_foo
USER_C_MODULES += module_bar
USER_C_MODULES += module_bar/submodule
$(info USER_C_MODULES found in $(USER_C_MODULES_PATH):
$(USER_C_MODULES)) $(foreach module, $(USER_C_MODULES), \ $(eval
USERMOD_DIR = $(patsubst %/,%,$(USER_C_MODULES_PATH))/$(module))\ $(info
Including User C Module from $(USERMOD_DIR))\ $(eval include
$(USERMOD_DIR)/micropython.mk)\)
Signed-off-by: Carlos Gil <carlosgilglez@gmail.com>
0 commit comments