Skip to content
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

Creating CMake-compatible toolchain? #315

Open
wale opened this issue Oct 19, 2021 · 3 comments
Open

Creating CMake-compatible toolchain? #315

wale opened this issue Oct 19, 2021 · 3 comments

Comments

@wale
Copy link

wale commented Oct 19, 2021

Hello, I would like to propose that the Ndless SDK should at least be supported as a CMake-compatible toolchain.

A benefit of this is that it'd make porting more modern programs that don't already support the Ti-Nspire much easier, rather than being confined to one build tool. It can be extended to easily support custom commands & macros, such as what we would need with the genzehn and make-prg tools, which can make building full Ndless programs much easier with CMake. Examples of this can be seen in the PS-Vita toolchain.

Related issues: #280

@Vogtinator
Copy link
Contributor

Sounds like a good idea.

So far I haven't had many issues with cross compiling, usually just specifying arch-none-eabi- as host triple and using genzehn on the final .elf file is enough, sometimes a custom prefix/sysroot for finding other libs and includes is necessary.

@wale
Copy link
Author

wale commented Oct 20, 2021

That's fair, though we would need to standardise certain variables (e.g. NDLESS_SDK_HOME) to get things to work in CMake properly, given that there's no single dedicated path for Ndless to install in.

@wale
Copy link
Author

wale commented Oct 20, 2021

Also, would this be good enough of a feature request to make a PR for? IMO it'd be worth working on expanding Ndless' compability with other build systems. We could also extend the nspire-tools command to support generating CMake projects if desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants