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

Object files from src/ should end up in board-specific build directories #11

Open
kbeckmann opened this issue May 2, 2020 · 3 comments

Comments

@kbeckmann
Copy link
Contributor

When building for multiple boards, the object files from the shared sources src/ end up in the same directory, i.e. _build/src/.

I gave it a shot and tried to fix it, but can't come up with a simple solution. Creating this issue for visibility. For now, one has to remove _build before building for a different board, otherwise the usb descriptor etc will be reused from the previous build.

@arturo182
Copy link
Owner

Yes, it's a tradeoff of using tinyusb's build system which we might outgrow at some point, no easy fix for that one right now.

@mubes
Copy link
Contributor

mubes commented May 4, 2020

For ecp5 I already took out the tinyusb build system because it was too inflexible. If you want I can make the same change for the other platforms which will actually simplify things for ecp5? The changes I made already almost address this issue because otherwise you get namespace clashes (or at least the potential for them)....wouldn't be difficult to prepend the target name into the build output directory.

@arturo182
Copy link
Owner

Sure, go for it :)

tannewt pushed a commit to tannewt/old-tinyuf2 that referenced this issue Apr 28, 2023
Upload release assets and build artifacts
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

3 participants