Skip to content

Commit

Permalink
Move threads.h to new newlib override folder searched before other in…
Browse files Browse the repository at this point in the history
…cludes
  • Loading branch information
sp1187 authored and rasky committed Oct 27, 2024
1 parent c121edf commit 4cb25cd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ install: install-mk libdragon
install -Cv -m 0644 include/mi.h $(INSTALLDIR)/mips64-elf/include/mi.h
install -Cv -m 0644 include/interrupt.h $(INSTALLDIR)/mips64-elf/include/interrupt.h
install -Cv -m 0644 include/kernel.h $(INSTALLDIR)/mips64-elf/include/kernel.h
install -Cv -m 0644 include/threads.h $(INSTALLDIR)/mips64-elf/include/threads.h
install -Cv -m 0644 include/ksemaphore.h $(INSTALLDIR)/mips64-elf/include/ksemaphore.h
install -Cv -m 0644 include/kqueue.h $(INSTALLDIR)/mips64-elf/include/kqueue.h
install -Cv -m 0644 include/kirq.h $(INSTALLDIR)/mips64-elf/include/kirq.h
Expand Down Expand Up @@ -212,6 +211,8 @@ install: install-mk libdragon
install -Cv -m 0644 src/fatfs/ff.h $(INSTALLDIR)/mips64-elf/include/fatfs/ff.h
install -Cv -m 0644 src/fatfs/ffconf.h $(INSTALLDIR)/mips64-elf/include/fatfs/ffconf.h
install -Cv -m 0644 include/ioctl.h $(INSTALLDIR)/mips64-elf/include/ioctl.h
mkdir -p $(INSTALLDIR)/mips64-elf/include/newlib_overrides
install -Cv -m 0644 include/newlib_overrides/threads.h $(INSTALLDIR)/mips64-elf/include/newlib_overrides/threads.h

clean:
rm -f *.o *.a
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion n64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ N64_DSO = $(N64_BINDIR)/n64dso
N64_DSOEXTERN = $(N64_BINDIR)/n64dso-extern
N64_DSOMSYM = $(N64_BINDIR)/n64dso-msym

N64_C_AND_CXX_FLAGS = -march=vr4300 -mtune=vr4300 -I$(N64_INCLUDEDIR) -include ktls.h
N64_C_AND_CXX_FLAGS = -march=vr4300 -mtune=vr4300 -I$(N64_INCLUDEDIR)/newlib_overrides -I$(N64_INCLUDEDIR) -include ktls.h
N64_C_AND_CXX_FLAGS += -falign-functions=32 # NOTE: if you change this, also change backtrace() in backtrace.c
N64_C_AND_CXX_FLAGS += -ffunction-sections -fdata-sections -g -ffile-prefix-map="$(CURDIR)"=$(N64_BACKTRACE_FILE_PREFIX)
N64_C_AND_CXX_FLAGS += -ffast-math -ftrapping-math -fno-associative-math
Expand Down

0 comments on commit 4cb25cd

Please sign in to comment.