2020-07-15 16:59:16 +00:00
|
|
|
PROJECT_NAME := MissionControl
|
|
|
|
BTDRVMITM_TID := 010000000000bd00
|
2020-04-17 09:50:30 +00:00
|
|
|
|
2020-07-25 08:59:38 +00:00
|
|
|
TARGETS := boot2 btdrv-mitm
|
2020-04-17 09:50:30 +00:00
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
2020-07-25 08:59:38 +00:00
|
|
|
boot2:
|
|
|
|
$(MAKE) -C Atmosphere/libraries all
|
|
|
|
$(MAKE) -C Atmosphere/stratosphere/boot2 all
|
|
|
|
|
2020-07-15 16:59:16 +00:00
|
|
|
btdrv-mitm:
|
2020-04-17 09:50:30 +00:00
|
|
|
$(MAKE) -C $@
|
|
|
|
|
|
|
|
clean:
|
2020-07-25 08:59:38 +00:00
|
|
|
$(MAKE) -C Atmosphere/libraries clean
|
|
|
|
$(MAKE) -C Atmosphere/stratosphere/boot2 clean
|
2020-07-15 16:59:16 +00:00
|
|
|
$(MAKE) -C btdrv-mitm clean
|
2020-04-17 09:50:30 +00:00
|
|
|
rm -rf dist
|
|
|
|
|
2020-07-15 16:59:16 +00:00
|
|
|
dist: all
|
2020-04-17 09:50:30 +00:00
|
|
|
rm -rf dist
|
2020-07-15 16:59:16 +00:00
|
|
|
|
|
|
|
mkdir -p dist/atmosphere/contents/$(BTDRVMITM_TID)
|
|
|
|
cp btdrv-mitm/btdrv-mitm.nsp dist/atmosphere/contents/$(BTDRVMITM_TID)/exefs.nsp
|
2020-08-04 21:59:49 +00:00
|
|
|
mkdir -p dist/atmosphere/contents/0100000000000008/
|
2020-07-25 08:59:38 +00:00
|
|
|
cp Atmosphere/stratosphere/boot2/boot2.nsp dist/atmosphere/contents/0100000000000008/exefs.nsp
|
2020-07-15 16:59:16 +00:00
|
|
|
#mkdir -p dist/atmosphere/contents/$(BTDRVMITM_TID)/flags
|
|
|
|
#touch dist/atmosphere/contents/$(BTDRVMITM_TID)/flags/boot2.flag
|
|
|
|
#echo "btdrv" > mitm.lst
|
|
|
|
|
|
|
|
cp -r exefs_patches dist/atmosphere/
|
2020-07-25 08:59:38 +00:00
|
|
|
|
2020-07-15 16:59:16 +00:00
|
|
|
cd dist; zip -r $(PROJECT_NAME).zip ./*; cd ../;
|
|
|
|
|
|
|
|
.PHONY: all clean dist $(TARGETS)
|