21 Commits
Author SHA1 Message Date
James Lee fc3f39d1a7 mctp: upgrade 2.6 -> 2.7
mctp version 2.7 adds Meson's installation tags to the project, now allowing
binaries to be selectively installed.

Use MESON_INSTALL_TAGS to selectively install files specific to each recipe.
No longer rm in mctpd's do_install step, which was a now-unneeded hack.
Meson tags prevent installation of the extra binaries.

Add mctpd.conf to FILES in the mctpd recipe following its installation to
improve recipe readability.

Signed-off-by: James Lee <james@codeconstruct.com.au>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-10-15 22:21:57 -07:00
James Lee b1c302feeb mctp: upgrade 2.5 -> 2.6
Bumped mctp and mctp-daemon version to 2.6, and added the new system
user to own mctpd's service.

Signed-off-by: James Lee <james@codeconstruct.com.au>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-08-14 14:38:25 -07:00
James Lee e059fc1543 mctp: split mctp tools and mctpd into separate recipes
The current mctp recipe relies on the upstream's conditional build and
install of the mctpd binary if systemd is present, only building the
mctp utility otherwise. Future upstream changes allowing running as
non-root require more control over the build process. We will need to
add a new system user when mctpd is built.

Adding a user requires inheriting useradd, which assumes at least one
user will be created, failing the recipe otherwise. Building without
mctpd would then cause the recipe to fail as conditionally inheriting
useradd seems infeasible.

To make useradd available for the new upstream release, split the recipe
into "mctp" for the utilities and "mctpd" for the daemon, isolating the
systemd dependency to "mctpd".

This makes the two parts of the source explicitly selectable from user
choice, rather than auto-detecting based on the presence of systemd.
This will allow the mctpd daemon to be installed without the mctp
utilities and allow the utilities to be installed without the daemon in
distros without systemd. It will also let us express the useradd rules
only when they're needed for the mctpd installation in the upcoming
version bump.

The mctp/mctpd split cannot be done with different packages within the
same recipe. It would require the systemd and useradd classes be added
to inherit_defer only when mctpd is to be built, and the library
functions cannot be used to detect which packages are built.

Signed-off-by: James Lee james@codeconstruct.com.au
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
2026-08-14 14:38:24 -07:00
Wang Mingyu 4c59be8493 mctp: upgrade 2.4 -> 2.5
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2026-02-25 20:29:55 -08:00
Patrick Williams 5a4c632ac3 mctp: upgrade 2.1 -> 2.4
mctp-2.4 was released.  It includes a previously submitted patch,
so drop that.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-29 21:02:54 -07:00
Alexander Kanavin fc78d37ff0 meta-openembedded/all: adapt to UNPACKDIR changes
Please see
https://git.yoctoproject.org/poky/commit/?id=4dd321f8b83afecd962393101b2a6861275b5265
for what changes are needed, and sed commands that can be used to make them en masse.

I've verified that bitbake -c patch world works with these, but did not run a world
build; the majority of recipes shouldn't need further fixups, but if there are
some that still fall out, they can be fixed in followups.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-06-25 06:44:52 -07:00
Khem Raj 29897344f7 mctp: Fix build with latest musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-17 21:35:47 -08:00
Thu Nguyen 9b522de0f9 mctp: srcrev bump 9042704131d..dd944cf5b5a
Additional commit included in this version bump are below.

Jeremy Kerr (9):
  + tests: Add tests for dbus Network1 interface
  + tests: add System.del_address
  + tests: notify netlink socket on system link/neighbour/address/route
    changes
  + tests: Add NLSocket._create_msg
  + tests: rename NLSocket._send_resp to _send_msg
  + mctpd: fix error message and code for missing linkmap entry case
  + mctpd: remove unnecessary debug output
  + CHANGELOG: Add mctp-bench change

Thu Nguyen (1):
  + Support `LocalEIDs` property in `au.com.codeconstruct.MCTP.Network1`

Timon Liu (1):
  + mctp-bench: Add a utility tool to send/receive messages and display
    throughput

Signed-off-by: Thu Nguyen <thu@os.amperecomputing.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-02-17 10:16:24 -08:00
Chanh Nguyen 31b6cf91f2 mctp: upgrade 2.0 -> 2.1
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-16 08:42:00 -08:00
Chanh Nguyen cbf1c7d312 mctp: Fix build errors with clang19 + musl
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-28 07:29:54 -07:00
Chanh Nguyen b51e4288b9 mctp: upgrade 1.1 -> 2.0
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-18 09:25:46 -07:00
Wang Mingyu 4b28dff276 mctp: upgrade 1.0 -> 1.1
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-04-17 09:53:31 -07:00
Martin Jansa 4dead11edb mctp: fix overrides syntax in SYSTEMD_AUTO_ENABLE:${PN}
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-03 10:47:36 -08:00
Hao Jiang 6e2cfa4113 mctp: install the .target files
Need the targets file to enable the mctpd.service on systemd.

Signed-off-by: Hao Jiang <jianghao@google.com>
Change-Id: I8d48d3767760dc1f34ae7e1266600d350ac93281
2022-10-12 19:19:27 -07:00
Khem Raj 61eb94c55a mctp: Update to latest tip of trunk
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-30 00:14:58 -07:00
Khem Raj 7d8a0e840d recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -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
Khem Raj ee9ee2d73a mctp: Fix build with 5.15+ kernel headers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Bruce Ashfield <bruce.ashfield@gmail.com>
2021-11-06 12:54:03 -07:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07: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