fbt fixes pt4 (#1899)
* fbt: fixed py scripts for gdb * fbt: removed compiled dolphin assets from tracked files; resolved cached dependency issues by globally disabling deps cache; changed dependency tracking for dolphin assets * fbt: fix for "resources" node lookup * toolchain: bump to v.16 with scons + x64 win binaries * fbt: using scons from toolchain * vscode: fixed paths for 64-bit Windows toolchain * fbt: added colors! * fbt: moved import validator to ansi lib coloring * fbt: moved COMSTR vars to tools * fbt: custom action for fap dist * fbt: added OPENOCD_ADAPTER_SERIAL configuration var for openocd operations * fbt: added get_stlink target * docs: details on libs for faps * vscode: added DAP config for using Flipper as a debugger for a 2nd Flipper * fbt: blind deps fix for sdk_origin * fbt: sdk: moved deployment actions to pure python * Github: disable disableLicenseExpirationCheck option for pvs Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
@@ -4,6 +4,7 @@ from flipper.app import App
|
||||
import subprocess
|
||||
import os
|
||||
import math
|
||||
from ansi.color import fg
|
||||
|
||||
|
||||
class Main(App):
|
||||
@@ -43,7 +44,9 @@ class Main(App):
|
||||
pages = math.ceil(binsize / PAGE_SIZE)
|
||||
last_page_state = (binsize % PAGE_SIZE) * 100 / PAGE_SIZE
|
||||
print(
|
||||
f"{os.path.basename(self.args.binname):<11}: {pages:>4} flash pages (last page {last_page_state:.02f}% full)"
|
||||
fg.yellow(
|
||||
f"{os.path.basename(self.args.binname):<11}: {pages:>4} flash pages (last page {last_page_state:.02f}% full)"
|
||||
)
|
||||
)
|
||||
return 0
|
||||
|
||||
|
Reference in New Issue
Block a user