troposphere: add reboot_to_payload example homebrew

This commit is contained in:
Michael Scire 2019-01-24 09:05:06 -08:00
parent 08d1e9b880
commit e75f4e9f5a
4 changed files with 313 additions and 1 deletions

View file

@ -6,7 +6,7 @@ ifneq (, $(strip $(shell git status --porcelain 2>/dev/null)))
AMSREV := $(AMSREV)-dirty
endif
all: fusee stratosphere exosphere thermosphere
all: fusee stratosphere exosphere thermosphere troposphere
thermosphere:
$(MAKE) -C thermosphere all
@ -17,6 +17,9 @@ exosphere: thermosphere
stratosphere: exosphere
$(MAKE) -C stratosphere all
troposphere: stratosphere
$(MAKE) -C troposphere all
fusee: exosphere stratosphere
$(MAKE) -C $@ all
@ -39,6 +42,7 @@ dist: all
rm -rf out
mkdir atmosphere-$(AMSVER)
mkdir atmosphere-$(AMSVER)/atmosphere
mkdir atmosphere-$(AMSVER)/switch
mkdir -p atmosphere-$(AMSVER)/atmosphere/titles/0100000000000036
mkdir -p atmosphere-$(AMSVER)/atmosphere/titles/0100000000000034
mkdir -p atmosphere-$(AMSVER)/atmosphere/titles/0100000000000032
@ -51,6 +55,7 @@ dist: all
cp stratosphere/creport/creport.nsp atmosphere-$(AMSVER)/atmosphere/titles/0100000000000036/exefs.nsp
cp stratosphere/fatal/fatal.nsp atmosphere-$(AMSVER)/atmosphere/titles/0100000000000034/exefs.nsp
cp stratosphere/set_mitm/set_mitm.nsp atmosphere-$(AMSVER)/atmosphere/titles/0100000000000032/exefs.nsp
cp troposphere/reboot_to_payload/reboot_to_payload.nro atmosphere-$(AMSVER)/switch/reboot_to_payload.nro
mkdir -p atmosphere-$(AMSVER)/atmosphere/titles/0100000000000032/flags
touch atmosphere-$(AMSVER)/atmosphere/titles/0100000000000032/flags/boot2.flag
cd atmosphere-$(AMSVER); zip -r ../atmosphere-$(AMSVER).zip ./*; cd ../;