Minor improvements in PSP and CTR Makefiles (mostly for devs) (#13317)

This commit is contained in:
David G. F 2021-12-04 02:01:00 +01:00 committed by GitHub
parent b6fef13109
commit 9b7270cb6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 7 deletions

View File

@ -10,6 +10,7 @@ BUILD_3DS = 0
BUILD_CIA = 1 BUILD_CIA = 1
LIBCTRU_NO_DEPRECATION = 1 LIBCTRU_NO_DEPRECATION = 1
USE_CTRULIB_2 ?= 0 USE_CTRULIB_2 ?= 0
LOAD_WITHOUT_CORE_INFO ?= 0
APP_TITLE = RetroArch 3DS APP_TITLE = RetroArch 3DS
APP_DESCRIPTION = RetroArch 3DS APP_DESCRIPTION = RetroArch 3DS
@ -106,6 +107,9 @@ endif
ifeq ($(strip $(DEVKITPRO)),) ifeq ($(strip $(DEVKITPRO)),)
$(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro") $(error "Please set DEVKITPRO in your environment. export DEVKITPRO=<path to>devkitpro")
endif endif
ifeq ($(strip $(DEVKITARM)),)
$(error "Please set DEVKITARM in your environment. export DEVKITARM=<path to>devkitarm")
endif
ifeq ($(strip $(CTRULIB)),) ifeq ($(strip $(CTRULIB)),)
CTRULIB = $(DEVKITPRO)/libctru CTRULIB = $(DEVKITPRO)/libctru
@ -115,6 +119,10 @@ ifeq ($(strip $(USE_CTRULIB_2)),1)
CFLAGS += -DUSE_CTRULIB_2 CFLAGS += -DUSE_CTRULIB_2
endif endif
ifeq ($(LOAD_WITHOUT_CORE_INFO),1)
CFLAGS += -DLOAD_WITHOUT_CORE_INFO
endif
ifeq ($(strip $(DEVKITTOOLS)),) ifeq ($(strip $(DEVKITTOOLS)),)
ifeq ($(strip $(USE_CTRULIB_2)),1) ifeq ($(strip $(USE_CTRULIB_2)),1)
DEVKITTOOLS = $(DEVKITPRO)/tools DEVKITTOOLS = $(DEVKITPRO)/tools

View File

@ -1,10 +1,11 @@
BUILD_PRX = 0 BUILD_PRX ?= 0
PSP_LARGE_MEMORY = 1 PSP_LARGE_MEMORY ?= 1
DEBUG = 0 DEBUG ?= 0
HAVE_KERNEL_PRX = 1 HAVE_KERNEL_PRX ?= 1
HAVE_THREADS = 1 HAVE_THREADS ?= 1
BIG_STACK = 0 BIG_STACK ?= 0
WHOLE_ARCHIVE_LINK = 0 WHOLE_ARCHIVE_LINK ?= 0
LOAD_WITHOUT_CORE_INFO ?= 0
TARGET = retroarchpsp TARGET = retroarchpsp
@ -65,6 +66,10 @@ ifeq ($(BIG_STACK), 1)
CFLAGS += -DBIG_STACK CFLAGS += -DBIG_STACK
endif endif
ifeq ($(LOAD_WITHOUT_CORE_INFO),1)
RARCH_DEFINES += -DLOAD_WITHOUT_CORE_INFO
endif
CFLAGS += $(RARCH_DEFINES) CFLAGS += $(RARCH_DEFINES)
EXTRA_TARGETS = EBOOT.PBP EXTRA_TARGETS = EBOOT.PBP