From 6b242bf1db621fe18bf22118a4f2d55423246ffb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 9 Sep 2020 17:35:29 +1000 Subject: [PATCH] waf: add flash_total to apj file --- Tools/ardupilotwaf/chibios.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tools/ardupilotwaf/chibios.py b/Tools/ardupilotwaf/chibios.py index f32749d549..2fbbad5b20 100644 --- a/Tools/ardupilotwaf/chibios.py +++ b/Tools/ardupilotwaf/chibios.py @@ -154,6 +154,8 @@ class generate_apj(Task.Task): "summary": self.env.BOARD, "version": "0.1", "image_size": len(img), + "flash_total": int(self.env.FLASH_TOTAL), + "flash_free": int(self.env.FLASH_TOTAL) - len(img), "git_identity": self.generator.bld.git_head_hash(short=True), "board_revision": 0, "USBID": self.env.USBID