2020-07-15 16:59:16 +00:00
|
|
|
PROJECT_NAME := MissionControl
|
2020-09-08 15:07:59 +00:00
|
|
|
BLUETOOTH_MITM_TID := 010000000000bd00
|
2020-04-17 09:50:30 +00:00
|
|
|
|
2020-09-08 15:07:59 +00:00
|
|
|
TARGETS := bluetooth-mitm
|
2020-04-17 09:50:30 +00:00
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
2020-09-08 15:07:59 +00:00
|
|
|
bluetooth-mitm:
|
2020-04-17 09:50:30 +00:00
|
|
|
$(MAKE) -C $@
|
|
|
|
|
|
|
|
clean:
|
2020-09-08 15:07:59 +00:00
|
|
|
$(MAKE) -C bluetooth-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
|
|
|
|
2020-09-08 15:07:59 +00:00
|
|
|
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)
|
|
|
|
cp bluetooth-mitm/bluetooth-mitm.nsp dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/exefs.nsp
|
2020-09-11 18:19:05 +00:00
|
|
|
echo "btdrv" >> dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/mitm.lst
|
|
|
|
echo "btm" >> dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/mitm.lst
|
2020-09-07 19:46:35 +00:00
|
|
|
|
2020-09-08 15:07:59 +00:00
|
|
|
mkdir -p dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags
|
|
|
|
touch dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/flags/boot2.flag
|
2020-07-15 16:59:16 +00:00
|
|
|
|
2020-12-05 02:06:31 +00:00
|
|
|
cp bluetooth-mitm/toolbox.json dist/atmosphere/contents/$(BLUETOOTH_MITM_TID)/toolbox.json
|
2020-12-03 22:18:47 +00:00
|
|
|
|
2020-07-15 16:59:16 +00:00
|
|
|
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)
|