aboutsummaryrefslogtreecommitdiff
path: root/port/vita/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'port/vita/rules.mk')
-rw-r--r--port/vita/rules.mk12
1 files changed, 12 insertions, 0 deletions
diff --git a/port/vita/rules.mk b/port/vita/rules.mk
index 6ac47c7..a914195 100644
--- a/port/vita/rules.mk
+++ b/port/vita/rules.mk
@@ -1,6 +1,18 @@
TITLE := picow
TITLEID := PICO00008
+# Some magic flags:
+# - `-mcpu=cortext-a9`: specifically target the PS Vita CPU which may
+# help with some optimizations (instead of generic `armv7`).
+# - `-Wl,-q`: make the ELF file relocatable which is required for the
+# executable to run (otherwise it crashes on startup).
+# - `-Wl,--defsym=__sce_headroom=0x10000`: add some extra space for
+# the code segment, otherwise linking fails sporadically.
+# - `-lScePower_stub`: link in the power management library to allow us
+# to overclock the PS Vita for performance
+CFLAGS += -mcpu=cortex-a9
+LDFLAGS += -Wl,-q -Wl,--defsym=__sce_headroom=0x10000 -lScePower_stub
+
port: $(TARGET)/picow.vpk
$(TARGET)/picow.vpk: $(TARGET)/eboot.bin $(TARGET)/param.sfo