Move main modules to src/kd/

This commit is contained in:
Arthur Blot 2024-01-10 22:25:25 +01:00
parent ad348db786
commit 8a456ee43d
222 changed files with 53 additions and 48 deletions

View File

@ -1,6 +1,11 @@
MODULES=debug audio chnnlsv clockgen codec ctrl exceptionman ge init interruptman \
iofilemgr led libatrac3plus loadcore loadexec mediaman me_wrapper modulemgr \
syscon sysmem systimer usersystemlib wlanfirm
ROOT_DIR = $(PWD)
export ROOT_DIR
MODULES=debug syscon \
kd/audio kd/chnnlsv kd/clockgen kd/codec kd/ctrl kd/exceptionman kd/ge kd/init kd/interruptman \
kd/iofilemgr kd/led kd/libatrac3plus kd/loadcore kd/loadexec kd/mediaman kd/me_wrapper kd/modulemgr \
kd/sysmem kd/systimer kd/usersystemlib kd/wlanfirm
all: $(MODULES)

View File

@ -1,9 +1,9 @@
# Copyright (C) 2011, 2012 The uOFW team
# See the file COPYING for copying permission.
include ../../lib/common.mak
include $(ROOT_DIR)/lib/common.mak
INCLUDE = -I../../include
INCLUDE = -I$(ROOT_DIR)/include
WARNINGS = -Wall -Wextra -Werror -Wno-pragmas
# Only keep builtins for memcpy, memset for their inline function
@ -39,11 +39,11 @@ BUILTINS_DISABLE = -fno-builtin-bcmp \
CFLAGS := $(INCLUDE) -O1 -fno-toplevel-reorder -G0 $(WARNINGS) $(BUILTINS_DISABLE)
CFLAGS_S := $(INCLUDE)
LDFLAGS := -L../../lib -specs=../../lib/prxspecs -Wl,-q,-T../../lib/linkfile.prx
LDFLAGS := -L$(ROOT_DIR)/lib -specs=$(ROOT_DIR)/lib/prxspecs -Wl,-q,-T$(ROOT_DIR)/lib/linkfile.prx
FIXUP_IMPORTS = ../../utils/fixup-imports/psp-fixup-imports
BUILD_EXPORTS = ../../utils/build-exports/psp-build-exports
PRXGEN = ../../utils/kprxgen/psp-kprxgen
FIXUP_IMPORTS = $(ROOT_DIR)/utils/fixup-imports/psp-fixup-imports
BUILD_EXPORTS = $(ROOT_DIR)/utils/build-exports/psp-build-exports
PRXGEN = $(ROOT_DIR)/utils/kprxgen/psp-kprxgen
PRX_EXPORTS = exports.exp
EXPORT_OBJ=$(patsubst %.exp,%.o,$(PRX_EXPORTS))
@ -87,7 +87,7 @@ clean:
rebuild: clean all
Makefile.exp: $(PRX_EXPORTS)
cat ../../lib/build_stubs.mak > Makefile.exp
cat $(ROOT_DIR)/lib/build_stubs.mak > Makefile.exp
$(BUILD_EXPORTS) -k $< >> Makefile.exp
exp: Makefile.exp

View File

@ -8,5 +8,5 @@ DEBUG = 0
LIBS = -lsceCodec_driver -lInterruptManagerForKernel -lSysclibForKernel -lThreadManForKernel -lsceSysEventForKernel -lSysMemForKernel -lDmacManForKernel -lsceDdr_driver -lsceSysreg_driver -lsceClockgen_driver -lUtilsForKernel
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,4 +8,4 @@ OBJS = chnnlsv.o
LIBS = -lThreadManForKernel -lpspsemaphore
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,4 +8,4 @@ OBJS = clockgen.o
LIBS = -lThreadManForUser -lsceSysEventForKernel -lsceI2c_driver
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -6,5 +6,5 @@ OBJS = codec.o
LIBS = -lThreadManForKernel -lsceSysEventForKernel -lsceI2c_driver -lsceSysreg_driver -lsceGpio_driver
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,5 +8,5 @@ LIBS = -lSysMemForKernel -lsceSuspendForKernel -lsceSysEventForKernel -lKDebugFo
-lSysclibForKernel -lThreadManForKernel -lSysTimerForKernel -lInitForKernel -lsceDisplay_driver \
-lsceSyscon_driver
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -4,4 +4,4 @@
TARGET = dmacman
OBJS = dmacman.o
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -4,5 +4,5 @@
TARGET = exceptionman
OBJS = excep.o exceptions.o intr.o nmi.o
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,5 +8,5 @@ DEBUG = 0
LIBS = -lInterruptManagerForKernel -lThreadManForKernel -lsceSysreg_driver -lKDebugForKernel -lUtilsForKernel -lsceSysEventForKernel -lSysMemForKernel -lSysclibForKernel -lInitForKernel
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,4 +8,4 @@ OBJS = http_storage.o
LIBS = -lSysMemForKernel -lSysclibForKernel -lIoFileMgrForKernel -lModuleMgrForKernel -lsceChkreg_driver
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -10,4 +10,4 @@ LIBS = -lKDebugForKernel -lsceSuspendForKernel -lsceSysEventForKernel \
-lInterruptManagerForKernel -lSysclibForKernel -lThreadManForKernel \
-lUtilsForKernel -lsceSysreg_driver -lsceNand_driver
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -12,5 +12,5 @@ LIBS = -lSysMemForKernel -lsceSuspendForKernel -lKDebugForKernel -lInterruptMana
-lSysclibForKernel -lThreadManForKernel -lInitForKernel -lStdioForKernel -lIoFileMgrForUser \
-lModuleMgrForKernel -lModuleMgrForUser -lUtilsForKernel -lLoadCoreForKernel -lLoadExecForKernel
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -1,7 +1,7 @@
# Copyright (C) 2011, 2012, 2013 The uOFW team
# See the file COPYING for copying permission.
#include "../../include/common_asm.h"
#include "common_asm.h"
.text

View File

@ -8,5 +8,5 @@ OBJS = start.o interruptman.o end.o
LIBS = -lExceptionManagerForKernel -lLoadCoreForKernel -lSysMemForKernel -lsceSuspendForKernel
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,5 +8,5 @@ DEBUG = 1
LIBS = -lThreadManForKernel -lSysclibForKernel -lSysMemForKernel -lKDebugForKernel -lInterruptManagerForKernel -lsceSuspendForKernel
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,5 +8,5 @@ LIBS = -lSysMemForKernel -lsceSuspendForKernel -lsceSysEventForKernel -lSysclibF
-lsceGpio_driver -lInterruptManager
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,4 +8,4 @@ OBJS = libaac.o
LIBS = -lKernel_Library -lThreadManForUser -lsceAudiocodec
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -8,5 +8,5 @@ OBJS = libatrac3plus.o
LIBS = -lKernel_Library -lsceAudiocodec
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -6,5 +6,5 @@ OBJS = cache.o clibUtils.o hash.o interruptController.o loadcore.o loadcore_asm.
LIBS = -lSysMemForKernel -lKDebugForKernel -lUtilsForKernel -lInterruptManagerForKernel -lmemlmd -lsceMesgLed_driver
include ../../lib/build.mak
include $(ROOT_DIR)/lib/build.mak

View File

@ -1,7 +1,7 @@
# Copyright (C) 2011, 2012, 2013 The uOFW team
# See the file COPYING for copying permission.
#include "../../include/common_asm.h"
#include "common_asm.h"
.text

View File

@ -1,7 +1,7 @@
# Copyright (C) 2011, 2012, 2013 The uOFW team
# See the file COPYING for copying permission.
#include "../../include/common_asm.h"
#include "common_asm.h"
.text

View File

@ -1,7 +1,7 @@
# Copyright (C) 2011, 2012, 2013 The uOFW team
# See the file COPYING for copying permission.
#include "../../include/common_asm.h"
#include "common_asm.h"
.text

Some files were not shown because too many files have changed in this diff Show More