Housekeeping start

This commit is contained in:
3djc
2019-11-12 18:11:08 +01:00
parent 1ae3f14dab
commit 810cdc366f
6 changed files with 0 additions and 305 deletions
-27
View File
@@ -1,27 +0,0 @@
# An Debian image for compiling OpenTX 2.2
FROM debian:stretch
RUN DEBIAN_FRONTEND=noninteractive apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential cmake gcc git lib32ncurses5 lib32z1 libfox-1.6-dev libsdl1.2-dev \
qt5-default qtmultimedia5-dev qttools5-dev qttools5-dev-tools libqt5svg5-dev \
software-properties-common wget zip python-pip python-pil libgtest-dev
RUN python -m pip install filelock
RUN wget -q https://launchpad.net/gcc-arm-embedded/4.7/4.7-2013-q3-update/+download/gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2 && \
tar xjf gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2 && \
mv gcc-arm-none-eabi-4_7-2013q3 /opt/gcc-arm-none-eabi
#RUN wget -q http://ftp.de.debian.org/debian/pool/main/m/mpclib/libmpc2_0.9-4_amd64.deb && \
# dpkg -i libmpc2_0.9-4_amd64.deb
VOLUME ["/opentx"]
ENV PATH $PATH:/opt/gcc-arm-none-eabi/bin:/opentx/code/radio/util
ARG OPENTX_VERSION_SUFFIX=
ENV OPENTX_VERSION_SUFFIX ${OPENTX_VERSION_SUFFIX}
WORKDIR /build
-47
View File
@@ -1,47 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import sys
import re
if len(sys.argv) > 1:
inputFile = sys.argv[1]
inp = open(inputFile, "r")
else:
inp = sys.stdin
pattern = re.compile("#\d+")
while True:
skip = False
line = inp.readline()
if len(line) == 0:
break
line = line.strip('\r\n')
if len(line) == 0:
skip = True
if line.startswith("<"):
skip = True
if line.startswith("["):
skip = True
if not skip:
# line = line.strip()
# print("line: %s" % line)
found = re.findall(pattern, line)
if len(found) > 0:
for issue in found:
line = line.replace(issue, '')
# add issues
issue_links = ["<a href=https://github.com/opentx/opentx/issues/%d>#%d</a>" % (int(issue[1:]), int(issue[1:])) for issue in found]
links = "(" + ", ".join(issue_links) + ")"
line = "<li>" + line + " " + links + "</li>"
print(line)
inp.close()
sys.exit(0)
-74
View File
@@ -1,74 +0,0 @@
local toolName = "TNS|LUA event tests|TNE"
---- #########################################################################
---- # #
---- # Copyright (C) OpenTX #
-----# #
---- # License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html #
---- # #
---- # This program is free software; you can redistribute it and/or modify #
---- # it under the terms of the GNU General Public License version 2 as #
---- # published by the Free Software Foundation. #
---- # #
---- # This program is distributed in the hope that it will be useful #
---- # but WITHOUT ANY WARRANTY; without even the implied warranty of #
---- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
---- # GNU General Public License for more details. #
---- # #
---- #########################################################################
local virtual_next = 0
local virtual_previous = 0
local virtual_next_rept = 0
local virtual_previous_rept = 0
local virtual_page_next = 0
local virtual_page_previous = 0
local virtual_enter = 0
local virtual_enter_long = 0
local virtual_menu = 0
local virtual_menu_long = 0
-- Init
local function init()
end
-- Main
local function run(event)
if event == nil then
error("Cannot be run as a model script!")
return 2
elseif event == EVT_VIRTUAL_EXIT then
return 2
elseif event == EVT_PLUS_FIRST then
virtual_next = virtual_next + 1
elseif event == EVT_MINUS_FIRST then
virtual_previous = virtual_previous + 1
elseif event == EVT_PLUS_REPT then
virtual_next_rept = virtual_next_rept + 1
elseif event == EVT_MINUS_REPT then
virtual_previous_rept = virtual_previous_rept + 1
elseif event == EVT_PAGE_BREAK then
virtual_page_next = virtual_page_next +1
elseif event == EVT_PAGE_LONG then
virtual_page_previous = virtual_page_previous + 1
killEvents(event);
elseif event == EVT_ENTER_BREAK then
virtual_enter = virtual_enter + 1
elseif event == EVT_MENU_BREAK then
virtual_menu = virtual_menu + 1
end
lcd.clear()
lcd.drawScreenTitle("LUA EVENT TEST", 0, 0)
lcd.drawText(1, 10, "PLUS: "..virtual_next)
lcd.drawText(1, 20, "MINUS: "..virtual_previous)
lcd.drawText(1, 40, "PLUS_REPT: "..virtual_next_rept)
lcd.drawText(1, 50, "MINUS_REPT: "..virtual_previous_rept)
lcd.drawText(LCD_W/2, 10, "ENTER: "..virtual_enter)
lcd.drawText(LCD_W/2, 20, "MENU: "..virtual_menu)
lcd.drawText(LCD_W/2, 40, "NEXT_PAGE: "..virtual_page_next)
lcd.drawText(LCD_W/2, 50, "PREVIOUS_PAGE: "..virtual_page_previous)
return 0
end
return { init=init, run=run }