From 94083114ba60a157d13445079a7ed50b13df7624 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 21 Nov 2017 15:58:58 -0500 Subject: [PATCH] Added NRO building to buildscripts/. Added elf2nro install to tools/Makefile. --- buildscripts/switch_rules | 4 ++++ tools/Makefile | 1 + 2 files changed, 5 insertions(+) diff --git a/buildscripts/switch_rules b/buildscripts/switch_rules index 429f9352..dae02022 100644 --- a/buildscripts/switch_rules +++ b/buildscripts/switch_rules @@ -22,6 +22,10 @@ LIBNX ?= $(DEVKITPRO)/libnx @echo built ... $(notdir $@) #--------------------------------------------------------------------------------- +%.nro: %.elf + @elf2nro $< $@ + @echo built ... $(notdir $@) +#--------------------------------------------------------------------------------- %.elf: @echo linking $(notdir $@) @$(LD) $(LDFLAGS) $(OFILES) $(LIBPATHS) $(LIBS) -o $@ diff --git a/tools/Makefile b/tools/Makefile index 2521141a..86cb0aa7 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -12,6 +12,7 @@ elf2nro: elf2nro.c install: all cp build_pfs0 $(DEVKITA64)/bin/ cp elf2nso $(DEVKITA64)/bin/ + cp elf2nro $(DEVKITA64)/bin/ clean: rm -f elf2nso elf2nro build_pfs0