diff --git a/Tools/scripts/build_sizes.py b/Tools/scripts/build_sizes.py
index fbc11ed4e0..3ead988fc0 100755
--- a/Tools/scripts/build_sizes.py
+++ b/Tools/scripts/build_sizes.py
@@ -20,6 +20,9 @@ builds = ['Plane', 'Copter', 'Rover', 'Sub', 'Blimp', 'AP_Periph']
args = parser.parse_args()
+warning_flash_free = 5000
+warning_build_days = 3
+
class APJInfo:
def __init__(self, vehicle, board, githash, mtime, flash_free):
@@ -28,6 +31,7 @@ class APJInfo:
self.githash = githash
self.mtime = mtime
self.flash_free = flash_free
+ self.warning = 0
def apj_list(basedir):
@@ -56,6 +60,8 @@ def write_headers(h):
+
+
+
+
+
+
+
Build List
+
This is an auto-generated list of current builds
+ allowing us to quickly see how close we are to running out of flash space.
+
Builds that are coloured red haven't built recently. Builds that are coloured yellow have low flash space remaining.
+
Click on any column header to sort by that column, or filter by entering a search term in the box above each table.
- Jump to latest
- Jump to beta
@@ -87,6 +104,7 @@ This is an auto-generated list of current builds allowing us to quickly see how
def write_footer(h):
'''write html footer'''
h.write('''
+
''')
@@ -99,20 +117,54 @@ def write_table(h, build_type):
for build in builds:
boards.extend(apj_list(os.path.join(args.basedir, build, build_type)))
- h.write('''
-