Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Utilities/mk_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
4 changes: 4 additions & 0 deletions rwatch/pebble_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down