mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-07 08:36:02 -10:00
bootstrap/ moves under os/
The libogc 2 linker scripts go to os/gekko/libogc, the PSP kernel functions PRX to os/psp1 and the Vita heap's sbrk to os/vita, beside each platform's other system code.
This commit is contained in:
1 parent
b2356920ec
commit
4964dfa774
18 files changed
+17
-17
No files matched your search
@@ -30,7 +30,7 @@ jobs:
|
||||
|
||||
- name: Compile bootstrap
|
||||
run: |
|
||||
cd bootstrap/psp1/kernel_functions_prx
|
||||
cd os/psp1/kernel_functions_prx
|
||||
make -j$(getconf _NPROCESSORS_ONLN) clean
|
||||
make -j$(getconf _NPROCESSORS_ONLN)
|
||||
|
||||
|
||||
+3
-3
@@ -755,7 +755,7 @@ build-static-retroarch-psp:
|
||||
- build-static-retroarch-dummy-psp
|
||||
script:
|
||||
# We need to boostrap before compile
|
||||
- "(cd bootstrap/psp1/kernel_functions_prx/ && make && cd -)"
|
||||
- "(cd os/psp1/kernel_functions_prx/ && make && cd -)"
|
||||
# Allow failure since we don't have a core
|
||||
- "make -f Makefile.psp1 -j$NUMPROC ||:"
|
||||
- "mkdir .retroarch-precompiled"
|
||||
@@ -777,9 +777,9 @@ build-static-retroarch-dummy-psp:
|
||||
expire_in: 10 min
|
||||
dependencies: []
|
||||
script:
|
||||
- "(cd bootstrap/psp1/kernel_functions_prx/ && make && cd -)"
|
||||
- "(cd os/psp1/kernel_functions_prx/ && make && cd -)"
|
||||
- "make -f Makefile.psp1.salamander -j$NUMPROC"
|
||||
- "make -C bootstrap/psp1/kernel_functions_prx/"
|
||||
- "make -C os/psp1/kernel_functions_prx/"
|
||||
- "mkdir -p ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
|
||||
- "cp -f pkg/psp1/ICON0.PNG ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
|
||||
- "cp -f pkg/psp1/PIC1.PNG ${MEDIA_PATH}/${CI_PROJECT_NAME}/pkg"
|
||||
|
||||
+2
-2
@@ -153,13 +153,13 @@ else ifeq ($(libogc_platform), 1)
|
||||
LDFLAGS += $(MACHDEP) -Wl,-Map,$(notdir $(EXT_INTER_TARGET)).map
|
||||
|
||||
ifeq ($(BIG_STACK), 1)
|
||||
LDFLAGS += -T bootstrap/gx/ogc.ld
|
||||
LDFLAGS += -T os/gekko/libogc/ogc.ld
|
||||
endif
|
||||
else ifeq ($(platform), wii)
|
||||
LDFLAGS += $(MACHDEP) -Wl,-Map,$(notdir $(EXT_INTER_TARGET)).map,-wrap,malloc,-wrap,free,-wrap,memalign,-wrap,calloc,-wrap,realloc,-wrap,strdup,-wrap,strndup,-wrap,malloc_usable_size
|
||||
|
||||
ifeq ($(BIG_STACK), 1)
|
||||
LDFLAGS += -T bootstrap/gx/rvl.ld
|
||||
LDFLAGS += -T os/gekko/libogc/rvl.ld
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
+2
-2
@@ -110,7 +110,7 @@ MACHDEP += -DGEKKO -mcpu=750 -meabi -mhard-float
|
||||
LDFLAGS += $(MACHDEP) -Wl,-Map,$(notdir $(EXT_INTER_TARGET)).map
|
||||
|
||||
# libogc 3 links with devkitPPC's own scripts and sizes the main stack
|
||||
# in C (platform_gx_libogc.c); older libogc takes the bootstrap/gx ones.
|
||||
# in C (platform_gx_libogc.c); older libogc takes the os/gekko/libogc ones.
|
||||
LIBOGC_MAJOR := $(shell sed -n 's/^.define[[:space:]]*_V_MAJOR_[[:space:]]*\([0-9]*\).*/\1/p' $(DEVKITPRO)/libogc/include/ogc/libversion.h 2>/dev/null)
|
||||
ifneq ($(filter-out 0 1 2,$(LIBOGC_MAJOR)),)
|
||||
LIBOGC_OWN_LD := 1
|
||||
@@ -119,7 +119,7 @@ endif
|
||||
ifeq ($(HAVE_LIBOGC), 0)
|
||||
LDFLAGS += -T os/gekko/boot/dol.ld -Los/gekko/boot
|
||||
else ifeq ($(BIG_STACK)$(LIBOGC_OWN_LD), 1)
|
||||
LDFLAGS += -T bootstrap/gx/ogc.ld
|
||||
LDFLAGS += -T os/gekko/libogc/ogc.ld
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_OGG_OGC), 1)
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ RARCH_DEFINES += -DHAVE_THREADS
|
||||
endif
|
||||
|
||||
ifeq ($(HAVE_KERNEL_PRX), 1)
|
||||
OBJS += bootstrap/psp1/kernel_functions.o
|
||||
OBJS += os/psp1/kernel_functions.o
|
||||
CFLAGS += -DHAVE_KERNEL_PRX
|
||||
endif
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ OBJS = frontend/frontend_salamander.o \
|
||||
verbosity.o
|
||||
|
||||
ifeq ($(HAVE_KERNEL_PRX), 1)
|
||||
OBJS += bootstrap/psp1/kernel_functions.o
|
||||
OBJS += os/psp1/kernel_functions.o
|
||||
CFLAGS += -DHAVE_KERNEL_PRX
|
||||
endif
|
||||
|
||||
|
||||
+2
-2
@@ -103,7 +103,7 @@ LIBDIRS += -L.
|
||||
MACHDEP += -DGEKKO -mcpu=750 -meabi -mhard-float
|
||||
|
||||
# libogc 3 links with devkitPPC's own scripts and sizes the main stack
|
||||
# in C (platform_gx_libogc.c); older libogc takes the bootstrap/gx ones.
|
||||
# in C (platform_gx_libogc.c); older libogc takes the os/gekko/libogc ones.
|
||||
LIBOGC_MAJOR := $(shell sed -n 's/^.define[[:space:]]*_V_MAJOR_[[:space:]]*\([0-9]*\).*/\1/p' $(DEVKITPRO)/libogc/include/ogc/libversion.h 2>/dev/null)
|
||||
ifneq ($(filter-out 0 1 2,$(LIBOGC_MAJOR)),)
|
||||
LIBOGC_OWN_LD := 1
|
||||
@@ -113,7 +113,7 @@ ifeq ($(HAVE_LIBOGC), 1)
|
||||
LDFLAGS += $(MACHDEP) -Wl,-Map,$(notdir $(EXT_INTER_TARGET)).map,-wrap,malloc,-wrap,free,-wrap,memalign,-wrap,calloc,-wrap,realloc,-wrap,strdup,-wrap,strndup,-wrap,malloc_usable_size
|
||||
|
||||
ifeq ($(BIG_STACK)$(LIBOGC_OWN_LD), 1)
|
||||
LDFLAGS += -T bootstrap/gx/rvl.ld
|
||||
LDFLAGS += -T os/gekko/libogc/rvl.ld
|
||||
endif
|
||||
else
|
||||
# os/gekko's heap runs from MEM1 into MEM2 by itself.
|
||||
|
||||
@@ -33,8 +33,8 @@ EXT=a
|
||||
|
||||
mkdir -p ../pkg/${platform}/cores/
|
||||
|
||||
make -C ../bootstrap/${platform}/kernel_functions_prx/ clean || exit 1
|
||||
make -C ../bootstrap/${platform}/kernel_functions_prx/ || exit 1
|
||||
make -C ../os/${platform}/kernel_functions_prx/ clean || exit 1
|
||||
make -C ../os/${platform}/kernel_functions_prx/ || exit 1
|
||||
cp -f ../kernel_functions.prx ../pkg/${platform}/kernel_functions.prx
|
||||
|
||||
# Vita
|
||||
|
||||
@@ -80,7 +80,7 @@ static enum frontend_fork gx_fork_mode = FRONTEND_FORK_NONE;
|
||||
#include <ogc/libversion.h>
|
||||
#if defined(BIG_STACK) && _V_MAJOR_ >= 3
|
||||
/* libogc 3 starts main on the stack __ppc_main_sp points to the top of;
|
||||
* this one is the 512 KiB the bootstrap/gx linker scripts give libogc 2. */
|
||||
* this one is the 512 KiB the os/gekko/libogc linker scripts give libogc 2. */
|
||||
static u8 gx_main_stack[0x80000] ATTRIBUTE_ALIGN(32);
|
||||
u8 *__ppc_main_sp = gx_main_stack + sizeof(gx_main_stack);
|
||||
#endif
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
#include <psp2/appmgr.h>
|
||||
#include <psp2/apputil.h>
|
||||
|
||||
#include "../../bootstrap/vita/sbrk.c"
|
||||
#include "../../os/vita/sbrk.c"
|
||||
|
||||
#else
|
||||
#include <pspkernel.h>
|
||||
@@ -64,7 +64,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(PSP) && defined(HAVE_KERNEL_PRX)
|
||||
#include "../../bootstrap/psp1/kernel_functions.h"
|
||||
#include "../../os/psp1/kernel_functions.h"
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_VITAGLES)
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user