From 6d56cf36e423fe37b5a34fae3d51bae9acdea326 Mon Sep 17 00:00:00 2001 From: Mika Beckerich Date: Mon, 30 Sep 2019 17:28:01 +0200 Subject: [PATCH 1/2] Added some rebble platform definitions --- rwatch/pebble_defines.h | 4 ++++ 1 file changed, 4 insertions(+) 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 From 9548ea19778e97db3c5e90cef347925248aa7fe3 Mon Sep 17 00:00:00 2001 From: Mika Beckerich Date: Mon, 30 Sep 2019 17:59:23 +0200 Subject: [PATCH 2/2] Modifying mk_resources.sh to accomodate diorite functions --- Utilities/mk_resources.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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/"