apm stub is no longer needed

This commit is contained in:
XorTroll 2020-03-21 18:01:02 +01:00
parent 3b3d70a8eb
commit 2e0ca6fc2b
4 changed files with 2 additions and 24 deletions

View file

@ -6,8 +6,6 @@ export UL_VERSION := $(UL_MAJOR).$(UL_MINOR).$(UL_MICRO)
export UL_DEV := 0
export UL_APM_WRAPS := -Wl,-wrap,apmInitialize -Wl,-wrap,apmSetPerformanceConfiguration -Wl,-wrap,apmExit
export UL_DEFS := -DUL_DEV=$(UL_DEV) -DUL_MAJOR=$(UL_MAJOR) -DUL_MINOR=$(UL_MINOR) -DUL_MICRO=$(UL_MICRO) -DUL_VERSION=\"$(UL_VERSION)\"
export UL_COMMON_SOURCES := ../uLaunch/source ../uLaunch/source/am ../uLaunch/source/cfg ../uLaunch/source/db ../uLaunch/source/fs ../uLaunch/source/net ../uLaunch/source/os ../uLaunch/source/util

View file

@ -3,7 +3,7 @@
#---------------------------------------------------------------------------------
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/../libstratosphere/config/templates/stratosphere.mk
ARCH = -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE $(UL_APM_WRAPS)
ARCH = -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
CFLAGS = -g -Wall -O2 -ffunction-sections \
$(ARCH) $(DEFINES)

View file

@ -27,7 +27,7 @@ EXEFS_SRC := exefs_src
#---------------------------------------------------------------------------------
# options for code generation
#---------------------------------------------------------------------------------
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE $(UL_APM_WRAPS)
ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE
CFLAGS := -g -Wall -O2 -ffunction-sections \
$(ARCH) $(DEFINES)

View file

@ -1,20 +0,0 @@
#include <switch.h>
extern "C"
{
// Due to a weird bug with apm (and thanks that it isn't basically used in libnx) it is stubbed here to avoid any crashes.
Result __wrap_apmInitialize()
{
return 0;
}
Result __wrap_apmSetPerformanceConfiguration(ApmPerformanceMode mode, u32 conf)
{
return 0;
}
void __wrap_apmExit()
{
}
}