Commit Graph
5 Commits
Author SHA1 Message Date
Jeremy Kerr 60637824d8 contrib: fix python warnings for oe-stylize
I get a couple of python SyntaxWarnings when running oe-stylize:

  [jk@pecola meta-openembedded]$ python3 contrib/oe-stylize.py
  contrib/oe-stylize.py:372: SyntaxWarning: "is not" with a literal. Did you mean "!="?
    if line is not '':
  contrib/oe-stylize.py:389: SyntaxWarning: "is" with a literal. Did you mean "=="?
    if line.isspace() or line is '':

The 'is' operator is for object reference comparison, which is not what
we want here. Change to '==' / '!=' instead.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:49:37 -08:00
Jeremy Kerr 022317805b contrib: allow override-style syntax for vars & routines
Currently, the variable and routine regexes don't support the
override-style syntax. This means we may break routine blocks, as we
don't recognise overridden routines with an :append/:prepend/etc.

This change adds the ":" char to the var & routine regexes.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:49:37 -08:00
Jeremy Kerr 1427cbe9c2 mctp: install dbus service configuration
mctpd ships with an example dbus service configuration, so install in
the dbus system configuration dir.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:48:51 -08:00
Jeremy Kerr 9da8d6eaa9 mctp: upgrade to v1.0
We have a tag for 1.0, now: better handling of local stack configuration
at runtime, and the 5.15 kernel header change has been integrated.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-12-21 18:48:51 -08:00
Jeremy Kerr d26b5db5c8 mctp: Add MCTP control utilities
This change adds a recipe for the Management Component Transport
Protocol userspace utilities. This contains:

- the command-line 'mctp' tool, similar to 'ip', for setting up links,
  assigning local address and configuring routing.

- an optional 'mctpd' daemon, which implements the MCTP control
  protocol, and manages remote address assignment.

The latter depends on systemd (for sdbus), so use a
PACKAGECONFIG[systemd] for the conditional service installation.

Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-10-26 10:38:40 -07:00