Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
taste-setup
Commits
36b177c5
Commit
36b177c5
authored
Mar 09, 2021
by
Maxime Perrotin
Browse files
Udpate deployment target checker
parent
3e216998
Changes
1
Hide whitespace changes
Inline
Side-by-side
misc/helper-scripts/check-deployment-target-gui.py
View file @
36b177c5
...
...
@@ -15,9 +15,9 @@ def install_gr740_rtems51_posix():
""" $ $HOME/tool-src/install/85_rtems.sh """
os
.
system
(
"xterm -e $HOME/tool-src/install/85_rtems.sh"
)
def
install_gr740_rcc13rc
4
_posix
():
""" $ $HOME/tool-src/add-ons/install-gaisler-rcc-1.3-rc
4
.sh """
os
.
system
(
"xterm -e $HOME/tool-src/add-ons/install-gaisler-rcc-1.3-rc
4
.sh"
)
def
install_gr740_rcc13rc
9
_posix
():
""" $ $HOME/tool-src/add-ons/install-gaisler-rcc-1.3-rc
9
.sh """
os
.
system
(
"xterm -e $HOME/tool-src/add-ons/install-gaisler-rcc-1.3-rc
9
.sh"
)
def
install_msp430_gcc_freertos
():
"""$HOME/tool-src/add-ons/install-msp430-gcc.sh
...
...
@@ -25,17 +25,21 @@ $HOME/tool-src/add-ons/install-freertos.sh"""
os
.
system
(
"xterm -e $HOME/tool-src/add-ons/install-msp430-gcc.sh"
)
os
.
system
(
"xterm -e $HOME/tool-src/add-ons/install-freertos.sh"
)
def
install_gnat2020_arm
():
""" $ $HOME/tool-src/add-ons/install-gnat2020-for-arm.sh """
os
.
system
(
"xterm -e $HOME/tool-src/add-ons/install-gnat2020-for-arm.sh"
)
def
check_gr740_rtems410_gaisler_posix
():
if
not
os
.
path
.
isdir
(
"/opt/rtems-4.10"
):
raise
NotImplementedError
(
install_gr740_rtems410_gaisler_posix
)
def
check_gr740_rtems51_posix
():
if
not
os
.
path
.
isdir
(
"/opt/rtems-5.1-201
8
.0
3.08
"
):
if
not
os
.
path
.
isdir
(
"/opt/rtems-5.1-201
9
.0
7.25
"
):
raise
NotImplementedError
(
install_gr740_rtems51_posix
)
def
check_gr740_rcc13rc
4
_posix
():
if
not
os
.
path
.
isdir
(
"/opt/rcc-1.3-rc
4
"
):
raise
NotImplementedError
(
install_gr740_rcc13rc
4
_posix
)
def
check_gr740_rcc13rc
9
_posix
():
if
not
os
.
path
.
isdir
(
"/opt/rcc-1.3-rc
9
"
):
raise
NotImplementedError
(
install_gr740_rcc13rc
9
_posix
)
def
check_msp430_freertos
():
if
not
os
.
path
.
isdir
(
"/opt/msp430-gcc"
):
...
...
@@ -43,25 +47,28 @@ def check_msp430_freertos():
if
not
os
.
path
.
isdir
(
"/opt/FreeRTOSv10.2.1"
):
raise
NotImplementedError
()
def
check_gnat2020_arm
():
if
not
os
.
path
.
isdir
(
"/opt/GNAT/gnat-arm-2020/bin/"
):
raise
NotImplementedError
(
install_gnat2020_arm
)
# When editing, replace dot (.) with underscore (_)
# the TASTE GUI mixes them up if there is more than one underscore
PLATFORMS
=
{
"crazyflie_v2_gnat"
:
lambda
:
True
,
"stm32f4_discovery_gnat"
:
lambda
:
True
,
"leon_rtems_posix"
:
lambda
:
True
,
"leon2_rtems412_posix"
:
lambda
:
True
,
"leon3_rtems412_posix"
:
lambda
:
True
,
"gr712_rtems412_posix"
:
lambda
:
True
,
"gr740_rtems412_posix"
:
lambda
:
True
,
"gr740_rtems51_posix"
:
check_gr740_rtems51_posix
,
"gr740_rtems410_gaisler_posix"
:
check_gr740_rtems410_gaisler_posix
,
"gr740_rcc13rc4_posix"
:
check_gr740_rcc13rc4_posix
,
"x86_linux"
:
lambda
:
True
,
"x86_win32"
:
lambda
:
True
,
"msp430fr5969_freertos"
:
check_msp430_freertos
PLATFORMS
=
{
"crazyflie_v2_gnat"
:
lambda
:
True
,
"stm32f4_discovery_gnat"
:
lambda
:
True
,
"leon_rtems_posix"
:
lambda
:
True
,
"leon2_rtems412_posix"
:
lambda
:
True
,
"leon3_rtems412_posix"
:
lambda
:
True
,
"gr712_rtems412_posix"
:
lambda
:
True
,
"gr740_rtems412_posix"
:
lambda
:
True
,
"leon3_air"
:
check_gr740_rtems51_posix
,
"stm32f407_discovery_gnat2020"
:
check_gnat2020_arm
,
"stm32f429_discovery_gnat2020"
:
check_gnat2020_arm
,
"gr740_rtems51_posix"
:
check_gr740_rtems51_posix
,
"gr740_rtems410_gaisler_posix"
:
check_gr740_rtems410_gaisler_posix
,
"gr740_rcc13rc6_posix"
:
check_gr740_rcc13rc9_posix
,
"x86_linux"
:
lambda
:
True
,
"x86_win32"
:
lambda
:
True
,
"msp430fr5969_freertos"
:
check_msp430_freertos
}
def
query_user
(
platform
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment