Commit f4e9ba22 authored by Maxime Perrotin's avatar Maxime Perrotin

Test/install RTEMS4.10-gaisler

parent 1b11e154
...@@ -7,8 +7,8 @@ from PySide.QtGui import (QApplication, ...@@ -7,8 +7,8 @@ from PySide.QtGui import (QApplication,
QMessageBox) QMessageBox)
def install_gr740_rtems410_gaisler_posix(): def install_gr740_rtems410_gaisler_posix():
""" $ /home/taste/tool-src/add-ons/install-gaisler """ """ $ /home/taste/tool-src/add-ons/install-gaisler-4.10.sh """
print 'Installing this nice target' os.system("$HOME/tool-src/add-ons/install-gaisler-4.10.sh")
def check_gr740_rtems410_gaisler_posix(): def check_gr740_rtems410_gaisler_posix():
if not os.path.isdir("/opt/rtems-4.10"): if not os.path.isdir("/opt/rtems-4.10"):
...@@ -29,16 +29,16 @@ PLATFORMS = { "crazyflie_v2.gnat" : lambda: True, ...@@ -29,16 +29,16 @@ PLATFORMS = { "crazyflie_v2.gnat" : lambda: True,
} }
def query_user(platform): def query_user(platform):
msg_box = QMessageBox() msg_box = QMessageBox()
msg_box.setWindowTitle("This plaform is not installed!") msg_box.setWindowTitle("This plaform is not installed!")
ok = msg_box.addButton("Install now", QMessageBox.AcceptRole) ok = msg_box.addButton("Install now", QMessageBox.AcceptRole)
later = msg_box.addButton("Install later", QMessageBox.RejectRole) later = msg_box.addButton("Install later", QMessageBox.RejectRole)
msg_box.setEscapeButton(later) msg_box.setEscapeButton(later)
msg_box.setDefaultButton(ok) msg_box.setDefaultButton(ok)
msg_box.setIcon(QMessageBox.Warning) msg_box.setIcon(QMessageBox.Warning)
msg_box.setText("Do you want to install target\n{} ?".format(platform)) msg_box.setText("Do you want to install target\n{} ?".format(platform))
msg_box.exec_() msg_box.exec_()
return msg_box.clickedButton() == ok return msg_box.clickedButton() == ok
def main(): def main():
app = QApplication(sys.argv) app = QApplication(sys.argv)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment