-
Notifications
You must be signed in to change notification settings - Fork 639
Refactor max32630fthr port example build #673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixes undefined references for the first example.
The instance getter is dependent on module number X in the MXC_I2CM(X).
It is not going to work gracefully in the separate builds.
Sanitize clean for init script. Use one variable and derive `.o`.
Add targets for example categories and binary copy. Refactor create_examples.py template injections. Use original template mostly for project dependencies. Add Makefile.mk for common dependencies. Sanitize dependencies for projects. Drop cc256x_init_script dependency from general examples.
Rename template/Makefile into ProjectTemplate.mk Rename Makefile.mk into Dependencies.mk
While it removes CC256X dependency it actually removes hci init from code.
Development is ongoing: Is there a guideline of including the required tools and scripts from the compatible SDK as part of the port files? In the current state of the bstack/port/max32630-fthr establishing the board build environment is quite tricky due to the latest sdk not supporting the max32630. Currently using external repository to develop and maintain a build environment consisting of devcontainer and tools required for build a.k.a. $(MAXIM_PATH) extracted from windows installation of ARMCortexToolchain.exe. ping: @mringwal |
Changes: - Extract project template logic to separate module - Get .gatt file from project files - Use absolute paths. - Add support to input project dependencies
Required to mimic structure of Boards/EvKit_V1 locally.
Remove the files are now part of board.mk implementation. Include port source files $(PORT_DIR)/src using wildcard. Cleanup extra definition from Dependencies.mk
- filter sources starting with 'le_audio_demo'
-Fix path handling. -Resolve environment differences in python/python3. -Add setenv.bat setup tool (testing by-product).
Hi @head5man Thanks for looking into the max32630fthr port. I haven't been aware that the 32630 isn't supported by the latest Maxim SDK anymore. In that case, I guess the best option would be if the port could be compiled with a regular ARM Toolchain. As for the files in MAXIM_PATH: one option would be to mirror them in this port (similar to stm32-f4discovery-cc2564 and other ports), or, to download them as part of the build from a fixed location (e.g. a github repository), as they are basically unsupported anyway. If you want to -- When compiling your PR on macOS with ARM Toolchain 13.1.1, I get this warning/error:
Is this a problem? Btw. all development happens on the develop branch as we keep the master branch as a release branch. |
Hi @mringwal Thanks for coming back to me with the reply. Would moving to
I'll see to the mirroring of MAXIM_PATH, and using the regular ARM toolchain. Once I've done that I'll update the port build instructions. As what goes to the warning it is just saying someones cut the corner by oversimplifying the type of
|
Hi Yes, moving to Good luck with the update! |
Opened a new PR #681 targeting the |
Refactor the overall make experience
Make sure the make targets and generation scripts work on all levels.
Remove unnecessary dependencies (low hanging fruit).
Use .mk extension for template and includes and
Makefile
only for folder make files (main).Extract most of the dependency and path definitions from project
Makefile
into separateDependencies.mk
.Keep git changes clean by ignoring volatile
example
folders.