Building external C modules

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
potato
Posts: 1
Joined: Thu Jun 20, 2019 2:44 pm

Building external C modules

Post by potato » Thu Jun 20, 2019 2:49 pm

I've followed the example in the docs to the letter, AFAICS
https://docs.micropython.org/en/latest/ ... dules.html

but when I

make USER_C_MODULES=/home/potato/active_dev/micropython_module/example CFLAGS_EXTRA=-DMODULE_EXAMPLE_ENABLED=1 all

my custom module directory does not get touched/built at all (and as would be expected attempting to 'import example' on the REPL fails)
Am I missing something obvious? Is there a key step in the docs missing or have the flags somehow changed?

Many thanks
P.

User avatar
jimmo
Posts: 2754
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: Building external C modules

Post by jimmo » Thu Jun 20, 2019 11:54 pm

Maybe add V=1 to make for more output.

Or if you can push your code to github or something.

Post Reply