Commit Graph

37 Commits

Author SHA1 Message Date
Keith Rothman 36177e9599 Add make targets to build additional outputs from each database.
These targets are for:
 - Generating additional database outputs that are part, e.g. yaml files.
 - Generating harnesses

Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-04-10 11:55:39 -07:00
Keith Rothman 6b4621a7d6 Fix incorrect utility name.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-03-26 15:23:12 -07:00
Tim 'mithro' Ansell 822b1af81d Update the info.md on Kokoro.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-03-22 15:16:25 -07:00
Tim 'mithro' Ansell 76b5c1c9ca Change xxxdb to db-xxx.
Makes it work better with tab completion, type db-<tab>
Groups the db related commands together.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-03-22 15:16:03 -07:00
Tim 'mithro' Ansell 14642f64f8 Don't use system's site-packages.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-02-07 21:59:25 +11:00
Tim 'mithro' Ansell fc1f36f3c0 infra: Restructure.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-02-07 21:59:25 +11:00
Tim 'mithro' Ansell 745965d4de infra: Capture test results in Kokoro.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-02-07 21:59:25 +11:00
Tim 'mithro' Ansell 4bb8ff9ebf make: Split the formatdb / checkdb into part specific targets.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-02-07 21:59:25 +11:00
Keith Rothman 1e3a136ce1 Install FASM into environment properly.
This will make sure that any requirements for the FASM library are
correctly installed into the environment too.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-02-07 13:50:39 +11:00
Keith Rothman 273c240e6c Attempt #2 to make travis happy.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-02-06 17:34:26 -08:00
Keith Rothman 94217d105c Update package symlinks.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
2019-02-06 17:25:11 -08:00
Tim 'mithro' Ansell 57237d185d Makefile: Fail if formatting fails.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-01-30 17:11:54 +11:00
Tim 'mithro' Ansell a0d1c98056 Adding a `make formatdb` target.
Target will,

 * Canonicalize the database by running `./utils/sort_db.py`
 * Regenerate the [`Info.md` file](database/Info.md)

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-01-30 17:11:54 +11:00
Tim 'mithro' Ansell 0def5b2eeb infra: Add docs to make format.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-01-10 19:56:33 -08:00
Tim 'mithro' Ansell 96c1874131 infra: Make travis run tests
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-01-10 19:54:53 -08:00
Tim 'mithro' Ansell 136d367f99 Refactor Makefile.
* Split up file better.
 * Add test running.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-01-10 18:48:59 -08:00
Tim 'mithro' Ansell 841905c1e0 Adding `make test` target.
Uses [py.test](https://pytest.org) to collect all Python doctests and
unittests.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-01-10 18:48:48 -08:00
Tim 'mithro' Ansell 9ebaf01de6 Add fasm into the environment.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2019-01-10 18:48:48 -08:00
John McMaster d3a01f5895 python => python3
Signed-off-by: John McMaster <JohnDMcMaster@gmail.com>
2018-12-23 21:09:53 -08:00
Tim 'mithro' Ansell 91a1f8ba50 Add checkdb target to top level Makefile.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-12-19 17:07:59 -08:00
Tim 'mithro' Ansell 9f6f134c66 Small Makefile cleanup.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-12-17 19:13:45 -08:00
Tim 'mithro' Ansell 4fb29753ca Check yaml *inside* the environment.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-12-17 18:50:47 -08:00
Tim 'mithro' Ansell 60e3f66674 Make sure YAML is installed.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-12-17 17:03:19 -08:00
John McMaster d92748d24e make format: fix .git
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-17 14:29:48 -08:00
Tim 'mithro' Ansell 23c435aa6e Improve `make format`.
* Use `yapf` from environment if it exists.
 * Better way to generate exclude.
 * Make TCL formatting work.

Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-12-13 18:31:10 -08:00
John McMaster 9a4e8a4084 make format: parallelize
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-10 17:25:43 -08:00
John McMaster 7cfdc81767 Makefile: clang format 3.9 like travis
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-10 17:20:40 -08:00
John McMaster c7aacd521b tcl: reformat tool
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-12-05 16:52:56 -08:00
John McMaster ca0fbc7bb1 make format: pin clang-format ver
Signed-off-by: John McMaster <johndmcmaster@gmail.com>
2018-11-16 10:09:07 -08:00
Tim 'mithro' Ansell 4a94337c79 Add target for a Python virtualenv.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
2018-10-12 07:03:37 -07:00
Rick Altherr 5d103c0498 Makefile rules for generating complete databases
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-05 17:51:35 -08:00
Rick Altherr 47811acccd Top-level clean target
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-05 17:51:33 -08:00
Rick Altherr 7980e069dd Rename 'make go' to 'make build'
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-02-05 17:51:32 -08:00
Rick Altherr e139b98aca Ignore source files under .git/ during 'make format'
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-22 14:18:02 -08:00
Rick Altherr 820c0a5d78 Use yapf instead of autopep8 for Python formatting
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-09 14:50:05 -08:00
Rick Altherr d14fc142df Makefile: target to format source code
Signed-off-by: Rick Altherr <kc8apf@kc8apf.net>
2018-01-08 17:23:42 -08:00
Tim 'mithro' Ansell fa871cd2c4 Adding a quickstart based Makefile
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
2017-12-20 23:28:33 +01:00