From: Vladimir Oltean <olteanv@gmail.com>
To: buildroot@buildroot.org
Cc: Brandon Maier <Brandon.Maier@collins.com>,
Ioana Ciornei <ciorneiioana@gmail.com>,
Romain Naour <romain.naour@smile.fr>,
Vincent Jardin <vjardin@free.fr>, Julien Olivain <ju.o@free.fr>,
Arnout Vandecappelle <arnout@mind.be>,
Akhilesh Nema <nemaakhilesh@gmail.com>
Subject: [Buildroot] [PATCH v3 10/11] package/qoriq-restool: new package
Date: Mon, 11 Aug 2025 19:55:30 +0300 [thread overview]
Message-ID: <20250811165531.1533913-11-olteanv@gmail.com> (raw)
In-Reply-To: <20250811165531.1533913-1-olteanv@gmail.com>
Introduce a package for the restool program, which permits the user to
modify the network configuration of the DPAA2 subsystem and create one
that is adequate to their use case.
We integrate the lf-6.12.20-2.0.0 release tag, which contains some extra
fixups specifically made for the Buildroot integration:
- commit 14a9058c772b ("manpage: it should be optional"): It was pointed
out on previous patch submissions that the "make install" target also
converts man pages from Markdown to groff using pandoc, and apart from
the fact that Buildroot doesn't want manpages, pandoc is also too
heavy to drag into the build system. So that feedback was considered
valid and the patch is included here via upstream.
- commit 6d6b9d8c200c ("dpdmux: remove unused dpdmux_create_options
array") addresses a build error
- commit 66d941a0160d ("Adapt BITS_PER_LONG and GENMASK() definitions
for 32-bit compatibility") addresses a build error on 32-bit builds
- commit 8f73f2600111 ("Print 64-bit counters using PRIu64 from
inttypes.h") addresses a build error on 32-bit builds
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Vincent Jardin <vjardin@free.fr>
---
v2->v3: integrate upstream a patch which fixes 32-bit builds
v1->v2: integrate upstream a patch from Vincent which avoids building
man pages
DEVELOPERS | 1 +
package/Config.in | 1 +
package/qoriq-restool/Config.in | 22 +++++++++++++++++++++
package/qoriq-restool/qoriq-restool.hash | 3 +++
package/qoriq-restool/qoriq-restool.mk | 25 ++++++++++++++++++++++++
5 files changed, 52 insertions(+)
create mode 100644 package/qoriq-restool/Config.in
create mode 100644 package/qoriq-restool/qoriq-restool.hash
create mode 100644 package/qoriq-restool/qoriq-restool.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 12a41597afb0..1b5b3e87ea04 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3432,6 +3432,7 @@ F: package/qoriq-ddr-phy-binary/
F: package/qoriq-firmware-inphi/
F: package/qoriq-mc-binary/
F: package/qoriq-mc-utils/
+F: package/qoriq-restool/
N: Volkov Viacheslav <sv99@inbox.ru>
F: package/v4l2grab/
diff --git a/package/Config.in b/package/Config.in
index 137f74ed82ce..ccf76af1cc21 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -598,6 +598,7 @@ endmenu
source "package/pru-software-support/Config.in"
source "package/pulseview/Config.in"
source "package/qoriq-cadence-dp-firmware/Config.in"
+ source "package/qoriq-restool/Config.in"
source "package/raspi-gpio/Config.in"
source "package/rdma-core/Config.in"
source "package/read-edid/Config.in"
diff --git a/package/qoriq-restool/Config.in b/package/qoriq-restool/Config.in
new file mode 100644
index 000000000000..dbe0934d4dd3
--- /dev/null
+++ b/package/qoriq-restool/Config.in
@@ -0,0 +1,22 @@
+config BR2_PACKAGE_QORIQ_RESTOOL
+ bool "qoriq-restool"
+ help
+ The DPAA2 architecture in Layerscape SoCs consists of
+ networking resources that can be assembled into various
+ nuggets of functionality, called "objects" (DPMAC, DPNI,
+ DPDMUX, DPSW etc), by the Management Complex (MC) firmware.
+
+ The MC firmware reads a file called Data Path Layout (DPL)
+ which describes the set of networking objects it should
+ create statically, at boot time.
+
+ The restool program is able to talk to the Management
+ Complex at runtime and permits the dynamic reconfiguration
+ of networking objects, as well as saving the current
+ configuration into a new DPL file. Without the restool
+ program, the only possible networking configuration is
+ that specified in the boot-time DPL file.
+
+ https://github.com/nxp-qoriq/restool
+ # sign in required
+ https://www.nxp.com/webapp/Download?colCode=DPAA2UM
diff --git a/package/qoriq-restool/qoriq-restool.hash b/package/qoriq-restool/qoriq-restool.hash
new file mode 100644
index 000000000000..5e11f60d0e74
--- /dev/null
+++ b/package/qoriq-restool/qoriq-restool.hash
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 efc3c21c04adef30d7903e6ce4923ca085dad7e53351ce21b6bfafd681ae8674 qoriq-restool-lf-6.12.20-2.0.0.tar.gz
+sha256 68f4b15ecc085729419bc60ca6eeadca5af0237bbfec791e8a79da9c943d42e9 LICENSE
diff --git a/package/qoriq-restool/qoriq-restool.mk b/package/qoriq-restool/qoriq-restool.mk
new file mode 100644
index 000000000000..2e02e00cdb1c
--- /dev/null
+++ b/package/qoriq-restool/qoriq-restool.mk
@@ -0,0 +1,25 @@
+################################################################################
+#
+# qoriq-restool
+#
+################################################################################
+
+QORIQ_RESTOOL_VERSION = lf-6.12.20-2.0.0
+QORIQ_RESTOOL_SITE = $(call github,nxp-qoriq,restool,$(QORIQ_RESTOOL_VERSION))
+QORIQ_RESTOOL_LICENSE = BSD-3-Clause or GPL-2.0-or-later
+QORIQ_RESTOOL_LICENSE_FILES = COPYING
+
+QORIQ_RESTOOL_MAKE_OPTS = \
+ CC="$(TARGET_CC)" \
+ CROSS_COMPILE="$(TARGET_CROSS)"
+
+define QORIQ_RESTOOL_BUILD_CMDS
+ cd $(@D) && $(TARGET_MAKE_ENV) $(MAKE) $(QORIQ_RESTOOL_MAKE_OPTS)
+endef
+
+define QORIQ_RESTOOL_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) MANPAGE="" $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) \
+ prefix=/usr install
+endef
+
+$(eval $(generic-package))
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2025-08-11 16:56 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-11 16:55 [Buildroot] [PATCH v3 00/11] Layerscape uprev to lf-6.12.20-2.0.0, initial LX2160A-RDB support Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 01/11] package/qoriq-rcw: bump to version lf-6.12.20-2.0.0 Vladimir Oltean
2025-08-22 17:37 ` Julien Olivain via buildroot
2025-08-11 16:55 ` [Buildroot] [PATCH v3 02/11] package/fmc: bump version to lf-6.12.20-2.0.0 Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 03/11] package/fmlib: " Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 04/11] package/qoriq-fm-ucode: " Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 05/11] package/qoriq-ddr-phy-binary: " Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 06/11] configs/ls1028ardb: bump BSP tag " Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 07/11] configs/ls1043a-rdb: " Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 08/11] configs/ls1046a-rdb: " Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 09/11] configs/ls1046a-frwy: " Vladimir Oltean
2025-08-11 16:55 ` Vladimir Oltean [this message]
2025-08-22 17:40 ` [Buildroot] [PATCH v3 10/11] package/qoriq-restool: new package Julien Olivain via buildroot
2025-08-30 17:23 ` Vladimir Oltean
2025-08-11 16:55 ` [Buildroot] [PATCH v3 11/11] board/lx2160ardb: new platform Vladimir Oltean
2025-08-18 8:07 ` [Buildroot] [PATCH v3 00/11] Layerscape uprev to lf-6.12.20-2.0.0, initial LX2160A-RDB support Vincent Jardin via buildroot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250811165531.1533913-11-olteanv@gmail.com \
--to=olteanv@gmail.com \
--cc=Brandon.Maier@collins.com \
--cc=arnout@mind.be \
--cc=buildroot@buildroot.org \
--cc=ciorneiioana@gmail.com \
--cc=ju.o@free.fr \
--cc=nemaakhilesh@gmail.com \
--cc=romain.naour@smile.fr \
--cc=vjardin@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.