From 63419d9cc07c56234d0f61a80f32105b192aec8e Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Thu, 18 Feb 2021 13:31:17 +0800 Subject: Lots of makefile corrections, improved build and toolchain instructions, added elf2cpe converter, fixed typo in plasma_tbl.h of n00bdemo example --- examples/system/childexec/makefile | 3 ++- examples/system/console/makefile | 2 +- examples/system/timer/makefile | 3 ++- examples/system/tty/makefile | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'examples/system') diff --git a/examples/system/childexec/makefile b/examples/system/childexec/makefile index b1952fc..30229ae 100644 --- a/examples/system/childexec/makefile +++ b/examples/system/childexec/makefile @@ -8,7 +8,8 @@ LIBS = -lpsxgpu -lpsxgte -lpsxspu -lpsxetc -lpsxapi -lc CFLAGS = -g -O2 -fno-builtin -fdata-sections -ffunction-sections CPPFLAGS = $(CFLAGS) -fno-exceptions AFLAGS = -g -msoft-float -LDFLAGS = -g -gc-sections -T $(GCC_BASE)/mipsel-unknown-elf/lib/ldscripts/elf32elmip.x +LDFLAGS = -g -gc-sections \ + -T $(GCC_BASE)/$(PREFIX)/lib/ldscripts/elf32elmip.x LDFLAGS_P = $(LDFLAGS) -Ttext=0x80010000 LDFLAGS_C = $(LDFLAGS) -Ttext=0x80030000 diff --git a/examples/system/console/makefile b/examples/system/console/makefile index 4e0456e..1ee638f 100644 --- a/examples/system/console/makefile +++ b/examples/system/console/makefile @@ -32,7 +32,7 @@ AFLAGS = -g -msoft-float # Linker flags LDFLAGS = -g -Ttext=0x80010000 -gc-sections \ - -T $(GCC_BASE)/mipsel-unknown-elf/lib/ldscripts/elf32elmip.x + -T $(GCC_BASE)/$(PREFIX)/lib/ldscripts/elf32elmip.x all: $(OFILES) $(LD) $(LDFLAGS) $(LIBDIRS) $(OFILES) $(LIBS) -o $(TARGET) diff --git a/examples/system/timer/makefile b/examples/system/timer/makefile index 4b4c1a6..a8defe7 100644 --- a/examples/system/timer/makefile +++ b/examples/system/timer/makefile @@ -16,7 +16,8 @@ LIBS = -lpsxgpu -lpsxgte -lpsxspu -lpsxetc -lpsxapi -lc CFLAGS = -g -O2 -fno-builtin -fdata-sections -ffunction-sections CPPFLAGS = $(CFLAGS) -fno-exceptions AFLAGS = -g -msoft-float -LDFLAGS = -g -Ttext=0x80010000 -gc-sections -T $(GCC_BASE)/mipsel-unknown-elf/lib/ldscripts/elf32elmip.x +LDFLAGS = -g -Ttext=0x80010000 -gc-sections \ + -T $(GCC_BASE)/$(PREFIX)/lib/ldscripts/elf32elmip.x all: $(OFILES) $(LD) $(LDFLAGS) $(LIBDIRS) $(OFILES) $(LIBS) -o $(TARGET) diff --git a/examples/system/tty/makefile b/examples/system/tty/makefile index 5514916..43893d5 100644 --- a/examples/system/tty/makefile +++ b/examples/system/tty/makefile @@ -32,7 +32,7 @@ AFLAGS = -g -msoft-float # Linker flags LDFLAGS = -g -Ttext=0x80010000 -gc-sections \ - -T $(GCC_BASE)/mipsel-unknown-elf/lib/ldscripts/elf32elmip.x + -T $(GCC_BASE)/$(PREFIX)/lib/ldscripts/elf32elmip.x all: $(OFILES) $(LD) $(LDFLAGS) $(LIBDIRS) $(OFILES) $(LIBS) -o $(TARGET) -- cgit v1.2.3