Add steps to make flash tarball within shodan_boot.robot

The tarball is created within the test script, so we don't need to
update multiple locations across GoB to support the path change.

Change-Id: I0bbbf13bf2a3fadfdeae9fb390923492d9237d42
diff --git a/shodan_boot.robot b/shodan_boot.robot
index 2cc6195..8d7edcc 100644
--- a/shodan_boot.robot
+++ b/shodan_boot.robot
@@ -7,7 +7,7 @@
 
 *** Variables ***
 ${LOG_TIMEOUT}                   2
-${ROOTDIR}                       @${CURDIR}/../..
+${ROOTDIR}                       ${CURDIR}/../..
 ${SCRIPT}                        sim/config/shodan.resc
 ${PROMPT}                        CANTRIP>
 ${UART0}                         sysbus.uart0
@@ -16,9 +16,19 @@
 ${UART3}                         sysbus.uart3
 ${UART5}                         sysbus.uart5
 
+${MATCHA_BUNDLE_RELEASE}         ${ROOTDIR}/out/matcha-bundle-release.elf
+${CANTRIP_KERNEL_RELEASE}        ${ROOTDIR}/out/cantrip/riscv32-unknown-elf/release/kernel/kernel.elf
+${CANTRIP_ROOTSERVER_RELEASE}    ${ROOTDIR}/out/cantrip/riscv32-unknown-elf/release/capdl-loader
+${OUT_TMP}                       ${ROOTDIR}/out/tmp
+
+${FLASH_TAR}                     out/ext_flash_release.tar
+${CPIO}                          out/cantrip/riscv32-unknown-elf/release/ext_builtins.cpio
+
 *** Keywords ***
 Prepare Machine
-    Execute Command             path set ${ROOTDIR}
+    Execute Command             path set @${ROOTDIR}
+    Execute Command             $tar=@${FLASH_TAR}
+    Execute Command             $cpio=@${CPIO}
     Execute Script              ${SCRIPT}
 # Add UART5 virtual time so we can check the machine execution time
     Execute Command             uart5-analyzer TimestampFormat Virtual
@@ -27,9 +37,18 @@
 
 
 *** Test Cases ***
+Prepare Flash Tarball
+    Run Process                 mkdir  -p    ${ROOTDIR}/out/tmp
+    Run Process                 ln     -sfr  ${MATCHA_BUNDLE_RELEASE}       ${OUT_TMP}/matcha-tock-bundle
+    Run Process                 ln     -sfr  ${CANTRIP_KERNEL_RELEASE}      ${OUT_TMP}/kernel
+    Run Process                 ln     -sfr  ${CANTRIP_ROOTSERVER_RELEASE}  ${OUT_TMP}/capdl-loader
+    Run Process                 tar    -C    ${OUT_TMP}  -cvhf  ${ROOTDIR}/${FLASH_TAR}  matcha-tock-bundle  kernel  capdl-loader
+    Provides                    initialization
+
 Shodan Smoke Test
     [Documentation]             Test TockOS boot, seL4 boot and ML Execution
     [Tags]                      ml tock seL4 uart
+    Requires                    initialization
     Prepare Machine
     Create Log Tester           ${LOG_TIMEOUT}
     ${tockuart}=                Create Terminal Tester        ${UART0}