Replies: 5 comments 2 replies
-
Hi, I'll need to look at your build setup to understand what you mean by "from within the deepest directory" exactly. I'm not really hard-set on any particular behavior regarding subdirectories and subprojects, aside from "glob() should search the directory of the hancho file that called it". |
Beta Was this translation helpful? Give feedback.
-
OK, I'll try and repro in a bit. I would rather not automagically wrap functions with chdir() stuff, but I suppose it could be done in the Hancho module loader if it has to. |
Beta Was this translation helpful? Give feedback.
-
aappleby@lappytron:~/circuitpython$ make fetch-all-submodules ??? |
Beta Was this translation helpful? Give feedback.
-
Oh nm it's just the .gitmodules file |
Beta Was this translation helpful? Give feedback.
-
I'm trying to follow BUILDING.md and hitting a few bumps in your fork - I need to put this aside for a bit but I'll try and look into it more later. aappleby@lappytron:~/circuitpython$ make -C mpy-cross
|
Beta Was this translation helpful? Give feedback.
-
Thanks for Hancho! I've been looking for a new build system for CircuitPython and think this could be it. I like that it's all simple Python! I've started converting our make files to hancho here: https://github.com/tannewt/circuitpython/tree/clang18 (we have a discord too if you want to chat: https://adafru.it/discord)
I'm finding that our build system is pretty inside out. We build thousands of binaries for different microcontroller boards. We have high level rules we share between all of circuitpython and then narrower rules per microcontroller family and finally specific customization per board.
I've started setting it up by having the "top level" hancho file in the board directory and then loading the outer hancho files from there. Then it'll have one top level build directory that will have unique artifacts per board and shared object files. The main challenge I have so far is that the functions are run from within the deepest directory. So, it only works if I use absolute paths for everything.
Is this something you envision supporting with Hancho or should I modify it to work for us? Any tips would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions