From 761ab4fcfe128086b59ddb24adcc8ea618ee8de1 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 10 Aug 2018 19:51:59 -0700 Subject: [PATCH] Creport: Update makefile to build npdm/nsp --- .gitignore | 2 ++ stratosphere/creport/Makefile | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e3c4e615c..e39d9f114 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,9 @@ *.nso *.nro *.nacp +*.npdm *.pfs0 +*.nsp *.kip # Debug files diff --git a/stratosphere/creport/Makefile b/stratosphere/creport/Makefile index 9598aea90..67fd1e2f4 100644 --- a/stratosphere/creport/Makefile +++ b/stratosphere/creport/Makefile @@ -120,7 +120,7 @@ $(BUILD): #--------------------------------------------------------------------------------- clean: @echo clean ... - @rm -fr $(BUILD) $(TARGET).nso $(TARGET).elf + @rm -fr $(BUILD) $(TARGET).nsp $(TARGET).npdm $(TARGET).nso $(TARGET).elf #--------------------------------------------------------------------------------- @@ -132,7 +132,13 @@ DEPENDS := $(OFILES:.o=.d) #--------------------------------------------------------------------------------- # main targets #--------------------------------------------------------------------------------- -all : $(OUTPUT).nso +all : $(OUTPUT).nsp + +ifeq ($(strip $(APP_JSON)),) +$(OUTPUT).nsp : $(OUTPUT).nso +else +$(OUTPUT).nsp : $(OUTPUT).nso $(OUTPUT).npdm +endif $(OUTPUT).nso : $(OUTPUT).elf