Skip to content

Instantly share code, notes, and snippets.

@nmattia
Last active January 4, 2023 10:42
Show Gist options
  • Save nmattia/3f9b03705257e1e20bc9e4e5968e58ef to your computer and use it in GitHub Desktop.
Save nmattia/3f9b03705257e1e20bc9e4e5968e58ef to your computer and use it in GitHub Desktop.
Patch GCC's avr build to not try to write to the source tree
diff --git a/gcc/config/avr/t-avr b/gcc/config/avr/t-avr
index deadbeef..deadbeef 100644
--- a/gcc/config/avr/t-avr 2023-01-03 21:56:23
+++ b/gcc/config/avr/t-avr 2023-01-03 21:56:32
@@ -91,9 +91,6 @@
$(srcdir)/config/avr/avr-arch.h $(TM_H)
$(CXX_FOR_BUILD) $(CXXFLAGS_FOR_BUILD) $< -o $@ $(INCLUDES)
-$(srcdir)/doc/avr-mmcu.texi: gen-avr-mmcu-texi$(build_exeext)
- $(RUN_GEN) ./$< > $@
-
s-device-specs: gen-avr-mmcu-specs$(build_exeext)
rm -rf device-specs
mkdir device-specs && cd device-specs && $(RUN_GEN) ../$<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment