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

Draft: store build artefacts in build folder. #22

Merged
merged 7 commits into from
Oct 11, 2023

Conversation

aentinger
Copy link
Contributor

Currently breaks with

portentax8-stm32h7-fw$ make
  CC        build/src/system_stm32h7xx_dualcore_boot_cm4_cm7.o
src/system_stm32h7xx_dualcore_boot_cm4_cm7.c:1: fatal error: cannot open build/src/system_stm32h7xx_dualcore_boot_cm4_cm7.su for writing: No such file or directory
    1 | /**
      | 
compilation terminated.
make: *** [Makefile:211: build/src/system_stm32h7xx_dualcore_boot_cm4_cm7.o] Error 1

@aentinger
Copy link
Contributor Author

Hi @facchinm ☕ 👋

Thank you very much for the fix 🙇 .

I would also like to remove the build folder, see c872df7 . Unfortunately, I'm not very happy with this solution (and for obvious reasons). If I replace it with

rm -rf $(BUILDDIR)

it would be more generic but empty the complete repositories content, as . is the default build directory.

Any suggestions to circumvent this?

@aentinger
Copy link
Contributor Author

Actually it does work, it's just not very clean ...

make clean
...
rm -rf .
rm: refusing to remove '.' or '..' directory: skipping '.'
make: *** [Makefile:207: clean] Error 1

@facchinm
Copy link
Member

You need to clean with BUILDDIR=build make clean 😉

@aentinger aentinger marked this pull request as ready for review October 11, 2023 07:47
@aentinger aentinger merged commit ba34dc6 into master Oct 11, 2023
5 checks passed
@aentinger aentinger deleted the fix-separate-build-folder branch October 11, 2023 07:47
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

Successfully merging this pull request may close these issues.

2 participants