Skip to content

Commit

Permalink
[powershell] add menuconfig support
Browse files Browse the repository at this point in the history
  • Loading branch information
Guozhanxin committed Mar 7, 2023
1 parent 4dbe8ad commit 93be38c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions menuconfig.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$url = "https://github.com/Guozhanxin/env-windows/releases/download/1.0/kconfig-mconf.zip"
$env_bin_dir = "$HOME\.env\tools\bin"

if (!(Test-Path -Path $env_bin_dir)) {
echo 'Can not find kconfig-mconf, install now.'
echo 'downloading.'
wget -O kconfig-mconf.zip $url
if (!$?)
{
echo 'download failed!, exit.'
exit
}
mkdir $env_bin_dir | Out-Null
Expand-Archive -Path kconfig-mconf.zip -DestinationPath $env_bin_dir
echo 'install kconfig-mconf done.'
}
$env:path="$HOME\.env\tools\bin;$env:path"
python $HOME/.env/tools/scripts/env.py menuconfig $args

0 comments on commit 93be38c

Please sign in to comment.