Mike Auty
2bd12b834f
Fix minor breakage from the previous reordering of parameters.
2016-08-17 23:25:08 +01:00
Mike Auty
6712d5dee1
Update the automagic uses to ensure a consistent ordering of the arguments.
2016-08-17 20:38:18 +01:00
Mike Auty
db21d4628c
Rework importing of interfaces, a little more verbose in the code, but a little less complex to import and name.
2016-08-16 10:54:57 +01:00
Mike Auty
e02feed16e
Python 3 has a sane super() implementation (no arguments), so convert to using that.
2016-08-14 00:55:02 +01:00
Mike Auty
303ca04a5a
Remove the (emtpy) fileformat file in preparation for a dataformat version.
2016-08-14 00:30:25 +01:00
Mike Auty
c6b60a0035
Add in more error checking on the automagic routine.
2016-08-14 00:28:20 +01:00
Mike Auty
c160698465
Add in comment concerning when the dtb finder fails.
2016-08-01 00:39:49 +01:00
Mike Auty
cb1b226bbb
Fix an obvious typo.
2016-07-30 18:38:12 +01:00
Mike Auty
8fc925a920
Remove the obsolete generic scan (it was only generic for 64-bit register size).
2016-07-30 18:38:03 +01:00
Mike Auty
eccfb1c247
Conver the individual tests to the scanner framework, and work that into the automagic.
2016-07-30 18:20:14 +01:00
Mike Auty
0a0054e30a
Make the logging a bit clearer and remove the print statement.
2016-07-30 02:41:26 +01:00
Mike Auty
b92ccd771f
Fix up the DTB finder code and stick it all together.
2016-07-30 02:35:40 +01:00
Mike Auty
1c3521cf64
Give construct_layers a forcably low priority, it's important.
2016-07-30 01:54:42 +01:00
Mike Auty
710214fffd
Refactor automagics so that the UI can control which ones run.
2016-07-30 01:53:29 +01:00
Mike Auty
f8c3019165
Refactor requirements to expose the name ordering for quicker lookups.
2016-07-29 03:28:02 +01:00
Mike Auty
14c0cc262c
Significantly rework the configuration system.
...
So this is where I ripped out the guts of the dependency tree
and made it a little better defined in some ways, and delayed
populating it in others. The validate function signature has
changed and I'm still up in the air whether to validate with
True/False or throw/catch exceptions.
So now, configurables have a list of requirements, these are
then bundled into a single requirement and can be passed to
automagic. Automagic runs a set of things over the deptree
to help build/manage it. These run in order of priority.
The tree is still built from the top down, but now automagic
can build branch from the bottom up and try and splice them
into the tree where appropriate. Hopefully this will make it
easier to see follow.
2016-07-29 03:24:52 +01:00
Mike Auty
25bbbe0937
Refactor the way that plugins are imported for use on other modules (such as the upcoming automagic).
2016-07-28 21:29:53 +01:00
Mike Auty
8e49c66049
Ensure we don't find bogus DTBs, but do still allow non-usr-count DTBs.
2016-02-27 14:11:40 +00:00
Mike Auty
9fce3a4b1f
Tidy up the tests and add a bit of error checking to the dtb finder.
2016-02-27 11:53:44 +00:00
Mike Auty
b06306f884
Fix reducing the tuple mid sorting.
2016-02-27 01:50:38 +00:00
Mike Auty
445031c880
Unfix the self-referential checker.
2016-02-27 01:43:03 +00:00
Mike Auty
29e75339df
Fix the self-referential checker again.
2016-02-27 01:40:01 +00:00
Mike Auty
dbcb59e0e9
Fix the self-referential checker.
2016-02-27 01:38:29 +00:00
Mike Auty
8ab1dedd44
Change the output to hide the ordering data, and fix up the standalone tool a little bit.
2016-02-26 20:36:57 +00:00
Mike Auty
afd28575ca
Re-check constraints when building the tree, in case they change. Also comment on why we don't use that when trimming the possibilties for windows automagic.
2016-02-25 22:03:49 +00:00
Mike Auty
d6cc66cb77
Add in self referential checker, should windows change what it does.
2016-02-23 10:16:27 +00:00
Mike Auty
1fd8eecebd
Ensure we take into account ignored/NX bits when DTB finding.
2016-02-23 10:15:50 +00:00
Mike Auty
644a028ee4
Fix up the dtbfinder output a little.
2016-02-22 01:54:19 +00:00
Mike Auty
7ba06d0448
If we've tried scanning for the DTB, and we don't find in other arches, remove them as possibilities.
2016-02-22 01:47:09 +00:00
Mike Auty
187325f74e
Convert the dtbfinding code into a standalone tool and remove the dtbfinder.py.
2016-02-22 01:46:36 +00:00
Mike Auty
ff11f27c75
Fix up the automagic dtb finder to visit internal tree nodes, and to set the right variable!
2016-02-22 01:05:50 +00:00
Mike Auty
bacc8c5539
Move to a HierarchicalVisitor pattern.
2016-02-22 01:02:29 +00:00
Mike Auty
a123572701
Add in debugging tools for the dependency tree.
2016-02-21 01:24:34 +00:00
Mike Auty
c6a3c2d6b1
Add in the automagic and allow mid-deptree resolution (without trying to re-fulfill already populated requirements).
2016-02-21 00:42:04 +00:00