diff --git a/Utilities/mk_resources.sh b/Utilities/mk_resources.sh index 3191f723..4a7e167a 100755 --- a/Utilities/mk_resources.sh +++ b/Utilities/mk_resources.sh @@ -70,5 +70,21 @@ fi cp "$SDK/chalk/qemu/qemu_spi_flash.bin" "Resources/chalk_spi.bin" fi +if [ -f Resources/silk_boot.bin ]; then +echo "silk_boot already exists, not overwriting" +else +dd if="$SDK/diorite/qemu/qemu_micro_flash.bin" of=Resources/silk_boot.bin bs=16384 count=1 +fi + +if [ -f Resources/silk_spi.bin ]; then +echo "silk_spi already exists, not overwriting" +else +if [ -f "$SDK/diorite/qemu/qemu_spi_flash.bin.bz2" ];then +bzip2 -d "$SDK/diorite/qemu/qemu_spi_flash.bin.bz2" +fi +cp "$SDK/diorite/qemu/qemu_spi_flash.bin" "Resources/silk_spi.bin" +fi + + echo "all done" echo "you may have to execute 'cp Resources/* ../Resources/" diff --git a/rwatch/pebble_defines.h b/rwatch/pebble_defines.h index 9c5a8ffa..53392521 100755 --- a/rwatch/pebble_defines.h +++ b/rwatch/pebble_defines.h @@ -26,6 +26,10 @@ #define PBL_PLATFORM_SWITCH(tintin, snowy, chalk, diorite, emery) (snowy) #elif defined REBBLE_PLATFORM_CHALK #define PBL_PLATFORM_SWITCH(tintin, snowy, chalk, diorite, emery) (chalk) +#elif defined REBBLE_PLATFORM_DIORITE +#define PBL_PLATFORM_SWITCH(tintin, snowy, chalk, diorite, emery) (diorite) +#elif defined REBBLE_PLATFORM_EMERY +#define PBL_PLATFORM_SWITCH(tintin, snowy, chalk, diorite, emery) (emery) #else #error Add the new platform to PBL_PLATFORM_SWITCH in pebble_defines.h #endif