diff options
| author | Jim Mussared <jim.mussared@gmail.com> | 2023-05-12 17:03:14 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2023-06-01 16:21:37 +1000 |
| commit | 5e0452125146f3afed89c09f5813790156d24471 (patch) | |
| tree | 7c8226caf407554a8d5fc7c5a78ac056c9c82e71 /examples/usercmodule/cexample/micropython.mk | |
| parent | 6a8114eee8ff486d812b4efc5a94880b565640f3 (diff) | |
examples/usercmodule: Add a sub-package example.
This demonstrates how to add a sub-package in a user c module, as well
as how to define the necessary qstrs and enable the feature in the build.
This is used by the unix coverage build to test this feature.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Diffstat (limited to 'examples/usercmodule/cexample/micropython.mk')
| -rw-r--r-- | examples/usercmodule/cexample/micropython.mk | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/usercmodule/cexample/micropython.mk b/examples/usercmodule/cexample/micropython.mk index dbfe3c5cb..d6801dac0 100644 --- a/examples/usercmodule/cexample/micropython.mk +++ b/examples/usercmodule/cexample/micropython.mk @@ -1,9 +1,8 @@ -EXAMPLE_MOD_DIR := $(USERMOD_DIR) +CEXAMPLE_MOD_DIR := $(USERMOD_DIR) # Add all C files to SRC_USERMOD. -SRC_USERMOD += $(EXAMPLE_MOD_DIR)/examplemodule.c +SRC_USERMOD += $(CEXAMPLE_MOD_DIR)/examplemodule.c # We can add our module folder to include paths if needed # This is not actually needed in this example. -CFLAGS_USERMOD += -I$(EXAMPLE_MOD_DIR) -CEXAMPLE_MOD_DIR := $(USERMOD_DIR) +CFLAGS_USERMOD += -I$(CEXAMPLE_MOD_DIR) |
