mirror of
https://github.com/eledio-devices/thirdparty-littlefs.git
synced 2025-10-30 16:15:40 +01:00
A few more tweaks to scripts
- Changed `make summary` to show a one line summary - Added `make lfs.csv` rule, which is useful for finding more info with other scripts - Fixed small issue in ./scripts/summary.py - Added *.ci (callgraph) and *.csv (script output) to CI
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,6 +2,8 @@
|
|||||||
*.o
|
*.o
|
||||||
*.d
|
*.d
|
||||||
*.a
|
*.a
|
||||||
|
*.ci
|
||||||
|
*.csv
|
||||||
|
|
||||||
# Testing things
|
# Testing things
|
||||||
blocks/
|
blocks/
|
||||||
|
|||||||
15
Makefile
15
Makefile
@@ -133,7 +133,7 @@ summary: $(OBJ) $(CGI)
|
|||||||
$(if $(COVERAGE),\
|
$(if $(COVERAGE),\
|
||||||
| ./scripts/coverage.py $(BUILDDIR)tests/*.toml.info \
|
| ./scripts/coverage.py $(BUILDDIR)tests/*.toml.info \
|
||||||
-q -m - -o - $(COVERAGEFLAGS)) \
|
-q -m - -o - $(COVERAGEFLAGS)) \
|
||||||
| ./scripts/summary.py $(SUMMARYFLAGS))
|
| ./scripts/summary.py -Y $(SUMMARYFLAGS))
|
||||||
|
|
||||||
|
|
||||||
# rules
|
# rules
|
||||||
@@ -143,9 +143,20 @@ summary: $(OBJ) $(CGI)
|
|||||||
$(BUILDDIR)lfs: $(OBJ)
|
$(BUILDDIR)lfs: $(OBJ)
|
||||||
$(CC) $(CFLAGS) $^ $(LFLAGS) -o $@
|
$(CC) $(CFLAGS) $^ $(LFLAGS) -o $@
|
||||||
|
|
||||||
$(BUILDDIR)%.a: $(OBJ)
|
$(BUILDDIR)lfs.a: $(OBJ)
|
||||||
$(AR) rcs $@ $^
|
$(AR) rcs $@ $^
|
||||||
|
|
||||||
|
$(BUILDDIR)lfs.csv: $(OBJ) $(CGI)
|
||||||
|
$(strip \
|
||||||
|
./scripts/code.py $(OBJ) -q -o - $(CODEFLAGS) \
|
||||||
|
| ./scripts/data.py $(OBJ) -q -m - -o - $(DATAFLAGS) \
|
||||||
|
| ./scripts/stack.py $(CGI) -q -m - -o - $(STACKFLAGS) \
|
||||||
|
| ./scripts/structs.py $(OBJ) -q -m - -o - $(STRUCTFLAGS) \
|
||||||
|
$(if $(COVERAGE),\
|
||||||
|
| ./scripts/coverage.py $(BUILDDIR)tests/*.toml.info \
|
||||||
|
-q -m - -o - $(COVERAGEFLAGS)) \
|
||||||
|
> $@)
|
||||||
|
|
||||||
$(BUILDDIR)%.o: %.c
|
$(BUILDDIR)%.o: %.c
|
||||||
$(CC) -c -MMD $(CFLAGS) $< -o $@
|
$(CC) -c -MMD $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
|
|||||||
@@ -135,17 +135,6 @@ def main(**args):
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if args.get('all_fields'):
|
|
||||||
fields = FIELDS
|
|
||||||
elif args.get('fields') is not None:
|
|
||||||
fields_dict = {field.name: field for field in FIELDS}
|
|
||||||
fields = [fields_dict[f] for f in args['fields']]
|
|
||||||
else:
|
|
||||||
fields = []
|
|
||||||
for field in FIELDS:
|
|
||||||
if any(field.name in result for result in prev_results.values()):
|
|
||||||
fields.append(field)
|
|
||||||
|
|
||||||
prev_total = {}
|
prev_total = {}
|
||||||
for result in prev_results.values():
|
for result in prev_results.values():
|
||||||
for field in fields:
|
for field in fields:
|
||||||
|
|||||||
Reference in New Issue
Block a user