diff --git a/Makefile b/Makefile index e73a5dc6b..84c04f3f8 100644 --- a/Makefile +++ b/Makefile @@ -70,8 +70,8 @@ dist-no-debug: all mkdir -p atmosphere-$(AMSVER)/atmosphere/config cp fusee/fusee-primary/fusee-primary.bin atmosphere-$(AMSVER)/atmosphere/reboot_payload.bin cp fusee/fusee-mtc/fusee-mtc.bin atmosphere-$(AMSVER)/atmosphere/fusee-mtc.bin - cp fusee/fusee-secondary/fusee-secondary.bin atmosphere-$(AMSVER)/atmosphere/fusee-secondary.bin - cp fusee/fusee-secondary/fusee-secondary.bin atmosphere-$(AMSVER)/sept/payload.bin + cp fusee/fusee-secondary/fusee-secondary-experimental.bin atmosphere-$(AMSVER)/atmosphere/fusee-secondary.bin + cp fusee/fusee-secondary/fusee-secondary-experimental.bin atmosphere-$(AMSVER)/sept/payload.bin cp sept/sept-primary/sept-primary.bin atmosphere-$(AMSVER)/sept/sept-primary.bin cp sept/sept-secondary/sept-secondary.bin atmosphere-$(AMSVER)/sept/sept-secondary.bin cp sept/sept-secondary/sept-secondary_00.enc atmosphere-$(AMSVER)/sept/sept-secondary_00.enc @@ -99,9 +99,13 @@ dist-no-debug: all touch atmosphere-$(AMSVER)/atmosphere/contents/0100000000000037/flags/boot2.flag cp troposphere/reboot_to_payload/reboot_to_payload.nro atmosphere-$(AMSVER)/switch/reboot_to_payload.nro cp troposphere/daybreak/daybreak.nro atmosphere-$(AMSVER)/switch/daybreak.nro + cd atmosphere-$(AMSVER); zip -r ../atmosphere-EXPERIMENTAL-$(AMSVER).zip ./*; cd ../; + cp fusee/fusee-secondary/fusee-secondary.bin atmosphere-$(AMSVER)/atmosphere/fusee-secondary.bin + cp fusee/fusee-secondary/fusee-secondary.bin atmosphere-$(AMSVER)/sept/payload.bin cd atmosphere-$(AMSVER); zip -r ../atmosphere-$(AMSVER).zip ./*; cd ../; rm -r atmosphere-$(AMSVER) mkdir out + mv atmosphere-EXPERIMENTAL-$(AMSVER).zip out/atmosphere-EXPERIMENTAL-$(AMSVER).zip mv atmosphere-$(AMSVER).zip out/atmosphere-$(AMSVER).zip cp fusee/fusee-primary/fusee-primary.bin out/fusee-primary.bin diff --git a/fusee/fusee-secondary/Makefile b/fusee/fusee-secondary/Makefile index c8caba6ce..62520cc2c 100644 --- a/fusee/fusee-secondary/Makefile +++ b/fusee/fusee-secondary/Makefile @@ -186,11 +186,15 @@ DEPENDS := $(OFILES:.o=.d) #--------------------------------------------------------------------------------- all : $(OUTPUT).bin -$(OUTPUT).bin : $(OUTPUT).elf +$(OUTPUT).bin : $(OUTPUT)-experimental.bin + @python $(TOPDIR)/fusee_make_standard.py $(OUTPUT)-experimental.bin $(OUTPUT).bin + @echo built ... $(notdir $@) + +$(OUTPUT)-experimental.bin : $(OUTPUT)-experimental.elf $(OBJCOPY) -S -O binary $< $@ @echo built ... $(notdir $@) -$(OUTPUT).elf : $(OFILES) +$(OUTPUT)-experimental.elf : $(OFILES) %.elf: $(OFILES) @echo linking $(notdir $@) diff --git a/fusee/fusee-secondary/fusee_make_standard.py b/fusee/fusee-secondary/fusee_make_standard.py new file mode 100644 index 000000000..f921d76bb --- /dev/null +++ b/fusee/fusee-secondary/fusee_make_standard.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python +import sys, os +from struct import pack as pk, unpack as up + +def make_standard(exp): + std = exp[:] + _, metadata_offset, is_exp = up('