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

Add the esp-build package, update esp-hal and esp-lp-hal to use it in their build scripts #1325

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

jessebraham
Copy link
Member

There is probably still some room for improvement here, but my procmacro skills are lacking and as such it will probably take me some time to figure things out. So, figured I'd just open this in its current state and see what people think.

We've discussed this briefly a few times, but basically the idea is just to encapsulate the various pieces of build logic that we've been copy-pasting around our projects. I've also replaced the old declarative macros with procmacros which produce much nicer error output.

@jessebraham jessebraham added the skip-changelog No changelog modification needed label Mar 21, 2024
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not going to pretend to understand the procmacros :D, but if they work then I'm happy! Nice to remove some previous copy and paste.

@jessebraham
Copy link
Member Author

I'm not going to pretend to understand the procmacros :D, but if they work then I'm happy! Nice to remove some previous copy and paste.

It's okay, I wrote them and I won't claim to understand them either 😂

(More seriously though, cargo-expand is your friend here!)

@jessebraham jessebraham added this pull request to the merge queue Mar 21, 2024
Merged via the queue into esp-rs:main with commit 0cb5e4e Mar 21, 2024
18 checks passed
@jessebraham jessebraham deleted the feature/esp-build branch March 21, 2024 16:00
yanshay pushed a commit to yanshay/esp-hal that referenced this pull request Mar 25, 2024
… it in their build scripts (esp-rs#1325)

* Create the `esp-build` package

* Update `esp-hal` and `esp-lp-hal` to use `esp-build`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog No changelog modification needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants