Skip to content

Commit

Permalink
lib/flashing: Add possibility to select jetson-flash repo via env
Browse files Browse the repository at this point in the history
variable.

Change-type: patch
Signed-off-by: Oleksandr Slovak <[email protected]>
  • Loading branch information
slovak194 committed Apr 25, 2024
1 parent 33090bc commit cf8649a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/flashing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,11 +370,13 @@ async function flashJetson(filename: string, autoKit: Autokit, deviceType: strin
const JETSON_FLASH_DIR = process.env.JETSON_FLASH_DIR || '/usr/app/jetson-flash/Orin_Nx_Nano_NVME';
const JETSON_FLASH_SCRIPT = process.env.JETSON_FLASH_SCRIPT || 'flash_orin.sh';
const JETSON_FLASH_BRANCH = process.env.JETSON_FLASH_BRANCH || 'master';
const JETSON_FLASH_REPO_URL = process.env.JETSON_FLASH_REPO_URL || 'https://github.com/balena-os/jetson-flash.git';

// now start the jetson flash tool with docker.
// build first

try{
await exec('cd /usr/app/ && git clone https://github.com/balena-os/jetson-flash.git');
await exec(`cd /usr/app/ && git clone ${JETSON_FLASH_REPO_URL}`);
} catch(e){
console.log(e)
}
Expand Down

0 comments on commit cf8649a

Please sign in to comment.