Index: newlib/4.4.0.20231231/Makefile
===================================================================
--- newlib/4.4.0.20231231/Makefile (revision 37)
+++ newlib/4.4.0.20231231/Makefile (revision 38)
@@ -339,17 +339,20 @@
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
$(APPLY_PATCHES)
- @( cd $(SRC_DIR)/libgloss/config ; \
- sed -i '/^INCLUDES.*=/ s,$$, -I$$(prefix)/include -I$$(prefix)/$$(target_alias)/sys-include -I$$(prefix)/$$(target_alias)/include,' default.mh ; \
- )
- @( cd $(SRC_DIR)/newlib/libc/sys/arm ; \
- sed -i '/^INCLUDES.*=/ s,$$, -I../../../targ-include,' Makefile.am Makefile.in ; \
- )
-ifeq ($(ENABLE_LIBGLOSS_SUPPORT),yes)
- @( cd $(SRC_DIR)/libgloss/arm ; \
- sed -i '/^INCLUDES.*=/ s,$$, -I$$(srcdir)/../../newlib/libc/machine/arm,' Makefile.in ; \
- )
-endif
+# @( cd $(SRC_DIR)/newlib ; \
+# sed -i '/^DEFAULT_INCLUDES.*=/ s,$$, -I$$(srcdir)/newlib/libc/machine/riscv,' Makefile.in ; \
+# )
+# @( cd $(SRC_DIR)/libgloss/config ; \
+# sed -i '/^INCLUDES.*=/ s,$$, -I$$(prefix)/include -I$$(prefix)/$$(target_alias)/sys-include -I$$(prefix)/$$(target_alias)/include,' default.mh ; \
+# )
+# @( cd $(SRC_DIR)/newlib/libc/sys/arm ; \
+# sed -i '/^INCLUDES.*=/ s,$$, -I../../../targ-include,' Makefile.am Makefile.in ; \
+# )
+#ifeq ($(ENABLE_LIBGLOSS_SUPPORT),yes)
+# @( cd $(SRC_DIR)/libgloss/arm ; \
+# sed -i '/^INCLUDES.*=/ s,$$, -I$$(srcdir)/../../newlib/libc/machine/arm,' Makefile.in ; \
+# )
+#endif
@touch $@
$(build_nano_target): $(src_done)
@@ -420,9 +423,9 @@
@$(environment) $(MAKE) -C $(build_gloss_dir) pdf
endif
# ======= Install Documentation =======
-ifeq ($(ENABLE_LIBGLOSS_SUPPORT),yes)
- @$(environment) $(MAKE) -C $(build_gloss_dir)/doc -j1 install-info
-endif
+#ifeq ($(ENABLE_LIBGLOSS_SUPPORT),yes)
+# @$(environment) $(MAKE) -C $(build_gloss_dir)/doc -j1 install-info
+#endif
@mkdir -p $(TOOLCHAIN_PATH)/share/doc/newlib
@cp $(build_dir)/libc/libc.pdf $(TOOLCHAIN_PATH)/share/doc/newlib
@cp $(build_dir)/libm/libm.pdf $(TOOLCHAIN_PATH)/share/doc/newlib
Index: newlib/4.4.0.20231231/PATCHES
===================================================================
--- newlib/4.4.0.20231231/PATCHES (revision 37)
+++ newlib/4.4.0.20231231/PATCHES (revision 38)
@@ -0,0 +1,2 @@
+
+../../../sources/newlib/patches/newlib-4.4.0.20231231-riscv.patch -p0