Commit Graph

32 Commits

Author SHA1 Message Date
Zelan Zou
d271621618 restool: Update from LF6.12.20-2.0.0
Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
2025-08-31 16:42:09 +08:00
Max Krummenacher
b747b01501 global: whinlatter updates for WORKDIR/UNPACKDIR and git fetch location
The series [1] changed the way sources are fetched/unpacked and
S needs to follow that. Additionally for git repos it moved away from
having 'git/' as the checkout directory.

This has been partly tested by building weston based image for
imx6/imx6ull/imx7/imx8/imx8mm/imx8mp/imx95 based images.
E.g. none of the recipes specific for qoriq is built time tested.

As walnascar is no longer compatible with master/whinlatter drop
it from LAYERSERIES_COMPAT.

[1] https://lore.kernel.org/openembedded-core/20250616095000.2918921-1-alex.kanavin@gmail.com/

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
2025-06-28 18:58:39 +02:00
Flora Hu
c4fb8ee0a8 restool: Update to latest from NXP 6.6.52-2.2.0
Update SRCREV to 8c45e04

Signed-off-by: Flora Hu <flora.hu@nxp.com>
2025-01-13 13:58:32 +08:00
Zelan Zou
056dfa194d restool: Upgrade to lf-6.6.36-2.1.0 release
Signed-off-by: Zelan Zou <zelan.zou@nxp.com>
2024-11-06 09:25:37 +01:00
Jun Zhu
a21686ea5d restool: Rename license file to LICENSE
Integrate commit:
- 46604e41f4c: Rename the license file to LICENSE

Signed-off-by: Jun Zhu <junzhu@nxp.com>
2023-07-19 15:22:56 +08:00
Jun Zhu
a33bd36190 restool: Update to commit 65c9a10
New commit:
    65c9a10 dprc: fix export of DPNI_OPT_SHARED_FS option in generated DPL

Signed-off-by: Jun Zhu <junzhu@nxp.com>
2022-12-16 15:51:14 +08:00
Jun Zhu
db67bdf59c Switch NXP QorIQ repositories to github.com
Fetch QorIQ's source code from github.com/nxp-qoriq,
as original source.codeaurora.org/external/qoriq will
stop to access from April 2023.

Signed-off-by: Jun Zhu <junzhu@nxp.com>
2022-12-15 11:47:18 +08:00
Markus Niebel
11ab806193 restool: fix LICENSE
restool source have a BSD-3-Clause an can also be used under
GPL2 or later. Fix this to save a QA warning (or a build error
if used with create-spdx class)

Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
2022-09-02 14:38:40 +02:00
Ting Liu
565af7f7c4 restool: update to d29522a
New commits:
d29522a dpsw: set mem_size field in ls-addsw to 0 by default
d7512d2 dpdmux: set mem_size field in ls-addmux to 0 by default
8fd3a6b restool: increase version to v2.3
53140e4 restool: change version string formatting
34e4e27 add man page for restool
2d46b18 restool: add bash completion script
2b876b5 dpdmai: add support for the new DPDMAI_OPT_CG_PER_PRIORITY create option
6188bc5 restool: support new dpsw_create and dpdmux_create option mem_size
0dd8744 restool: add DPSW_OPT_BP_PER_IF in dpsw create and ls-addsw
1bdfa99 ls-delete: take into account different naming for device links
6dd9314 dpni: memset the statistics
feddfa6 dpsw: add support to configure the component-type
282bd30 restool: add support for DPDMUX_OPT_AUTO_MAX_FRAME_LEN
23cdaec restool: print max_frame_length in info command
2876f7c dpni: add page_6 missing structure to dpn_statistics_v10
18c53fc restool: info command shows newly added stats
96ce70e dpdmux: dump interface statistics in info command output
afd9831 scripts: add the ls-delete helper script
0977d12 ls-addni: create a DPMCP for each DPIO created

disable manpage generation.

Signed-off-by: Ting Liu <ting.liu@nxp.com>
2021-10-15 21:17:51 +08:00
Ting Liu
3fde9bdf9f restool: ignore date-time warnnings
Fix:
| restool.c: In function 'main':
| restool.c:1346:68: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
|  1346 |         DEBUG_PRINTF("restool built on " __DATE__ " " __TIME__ "\n");
|       |                                                                    ^
| restool.c:1346:42: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]

Signed-off-by: Ting Liu <ting.liu@nxp.com>
2021-10-15 11:40:51 +08:00
Ting Liu
50c4043470 restool: ignore maybe-uninitialized warnnings
Fix:
In function 'create_dpbp_v9',
    inlined from 'create_dpbp' at dpbp_commands.c:465:11:
dpbp_commands.c:371:17: error: 'dpbp_cfg' may be used uninitialized [-Werror=maybe-uninitialized]
  371 |         error = dpbp_create(&restool.mc_io, 0, dpbp_cfg, &dpbp_handle);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from dpbp_commands.c:43:
dpbp_commands.c: In function 'create_dpbp':
mc_v9/fsl_dpbp.h:108:5: note: by argument 3 of type 'const struct dpbp_cfg *' to 'dpbp_create' declared here
  108 | int dpbp_create(struct fsl_mc_io        *mc_io,
      |     ^~~~~~~~~~~
dpbp_commands.c:448:25: note: 'dpbp_cfg' declared here
  448 |         struct dpbp_cfg dpbp_cfg;
      |                         ^~~~~~~~
| In function 'create_dprtc_v9',
|     inlined from 'create_dprtc' at dprtc_commands.c:463:11:
| dprtc_commands.c:369:17: error: 'dprtc_cfg' may be used uninitialized [-Werror=maybe-uninitialized]
|   369 |         error = dprtc_create(&restool.mc_io, 0, dprtc_cfg, &dprtc_handle);
|       |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In file included from dprtc_commands.c:42:
| dprtc_commands.c: In function 'create_dprtc':
| mc_v9/fsl_dprtc.h:126:5: note: by argument 3 of type 'const struct dprtc_cfg *' to 'dprtc_create' declared here
|   126 | int dprtc_create(struct fsl_mc_io       *mc_io,
|       |     ^~~~~~~~~~~~
| dprtc_commands.c:447:26: note: 'dprtc_cfg' declared here
|   447 |         struct dprtc_cfg dprtc_cfg;
|       |                          ^~~~~~~~~

Signed-off-by: Ting Liu <ting.liu@nxp.com>
2021-10-15 11:40:51 +08:00
Khem Raj
59d36c9832 layer: Convert to new override syntax
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-08-12 10:08:24 -07:00
Ting Liu
7dc2b3051a restool: compiling with optimization (-O2)
Fix:
error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
  397 | #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
      |    ^~~~~~~
cc1: all warnings being treated as errors
2020-12-16 08:38:13 -03:00
Ting Liu
f1b992bd75 restool: update to 8ddbe4c
New commits:
8ddbe4c dpni: fix info --verbose behavior
e5c6451 restool: fix another set of error revealed with -O2
91b82e3 restool: fix some compile errors with gcc 10.2
802764f restool: yocto build issue
59fe80d restool: display all object attrs on dpsw info
d002c5f increase restool version to v2.1
820c1bf restool: add DPNI_OPT_SHARED_FS in dpni create and ls-addni
6e18fe0 dprc: fix dpdmux num_ifs in the generated DPL
8e42057 restool: support new dpsw_create DPSW_OPT_LAG_DIS option
1d5aaf5 dprc: export the DPNI_OPT_NO_MAC_FILTER option in DTS
5b9f225 restool: support new dpni_create dist_key_size parameter
d99f9b7 dpsw: add update command to configure taildrop on a DPSW
1e9c4d2 restool: use --help in all circumstances
7064bec Restool: print MAC address in dpmac info command
31b02be Modify the default value of num-priorities
ebddd1b Fix restool create help command output
ec19874 restool: fix get_device_file() function

Signed-off-by: Ting Liu <ting.liu@nxp.com>
2020-12-16 08:38:13 -03:00
Jens Rehsack
574302340c restool: update to LSDK-20.04
Update restool to LSDK-20.04 release from NXP which contains
following patches:

f0cec09 ls-main: fix endpoint parsing
59fefb1 Fixed restool dpcon create --help output
7bce792 ls-debug: Automatically create the DPDBG object only for valid commands
e00bcf9 Does not create DPDBG object in case of help command
3bff664 DPRC: set-locked on a child container
9607517 DPDBG: not available for mc version lower then 10.20.0
8fa1d5c add default interface support for dpdmux in restool
94114f5 Integrate the DPDBG object in restool:
9f6c465 ls-main: disable autorescan while in ls-* scripts
67011ba ls-main: introduce the get_interface_name function
cb63b6a scripts: explicity rescan the bus
3b40ef1 restool: add global option --rescan
42859dc scripts: print error message when endpoint does not exists

Signed-off-by: Jens Rehsack <sno@netbsd.org>
2020-04-07 16:09:42 -03:00
Chunrong Guo
d467f4dbc7 restool: update to 55a1f37
*update to lsdk 1909 tag
include the following changes:
55a1f37 - dprc: add support for option DPRC_CFG_OPT_PL_ALLOWED

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-10-21 09:07:06 -03:00
Chunrong Guo
ae6f896cfb restool: update to 8b1dd40
*Update to lsdk 1903 tag
include the following changes:
8b1dd40 - dprc: fix compile error (only witn gcc 8.x)
8eb494d - dprc: enable DPDMUX_METHOD_CUSTOM in dpdmux generate dpl
dc120ff - add support for num cgs in restool for mc 10.14

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-04-11 09:00:13 -03:00
Chunrong Guo
d1ad925be4 restool: update to 2b4dd21
*update to lsdk 1812 tag
include the following changes
2b4dd21 - dprc: generate-dpl: export only the objects that exist
2c3202b - dpdmux: rename flib_ops
8106ce7 - export flib_ops in the restool header
ea39c04 - dpmac: update interface type enum
c54067a - dpseci: fix 16 queues support
1c2dde0 - dpmac: display counters in info command
40dddfc - scripts: dynamically setup the DPCON objects needed
eb49d17 - scripts: dynamically determine the number of DPIOs needed
2255cab - dpmac: add DPMAC_ETH_IF_CAUI as one of the supported phy types
cbee183 - dpseci: increase the maximum number of queues
ce7d849 - dpni: increase the maximum number of queues

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
2019-01-14 16:23:38 -02:00
Chunrong Guo
874c522545 restool: update to 9815bb6
*update to lsdk 1809 tag
include the following changes:
9815bb6 - update flib_ops to use the v10 MC API
dbcc644 - dprc: generate-dpl: use MC APIs that support big-endian seamlessly

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-10-01 13:51:02 -03:00
Chunrong Guo
01c1c1b365 restool: update to 2815572
*include the following changes:
2815572 - dpdmai: add --num-queues create parameter
a5f268b - scripts: suppress unit_address_vs_reg warnings when using newer dtc
0e2846a - scripts: Fix MC version check
d9cbf56 - dprc: use the corect specifier for uint16_t
1b49539 - dpni: print both rx and tx tcs number
10af575 - dpni: add support for 16 TX tcs
ad33877 - dpni: add DPNI_OPT_SINGLE_SENDER option
887deae - scripts: Infer switch ports number from specified endpoints
c8111df - scripts: Avoid word splitting
7a15d3e - ls-addsw: show netdev names when creating a dpsw
81fb178 - ls-addmux: fix endpoint discovery
254aef8 - update copyright years

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-07-06 10:49:27 -03:00
Chunrong Guo
a2a401634c restool: add dtc to rdepends
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-06-18 14:25:14 -03:00
C.R. Guo
995ecb7562 restool: update to 2634746
*include the following changes:
2634746 - dpdmux: add TCAM custom classification option
1c1d7a0 - scripts: add custom steering method to help message
888a386 - update dpdmux help to reflect that it can only be connected to a dpmac
aef8cda - add big-endian check for MC versions lower than V10
6ec9eeb - tranzition to the new form of MC APIs
9ca1a16 - mc_get_version does not require open on root dprc
660c48d - ls-append-dpl: set objects created in child dprc as plugged
7a0433d - scripts: add preliminary version of ls-append-dpl script
976391f - dpni: align option names with the DPL format

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-04-02 10:30:13 -03:00
C.R. Guo
bdf4d82177 restool: update SRC_URL
Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-03-06 10:05:43 -03:00
Chunrong Guo
2fa2171b74 restool:update to 90fe5c4
*include the following changes:

90fe5c4 - ls-addni: accept arguments also as hex numbers
e3d1d6a - scripts: fix syntax error due to bash vs sh differences
59df620 - scripts: replace 'nproc' with cross-platform implementation
117f2a5 - scripts: do not compare strings with regexp expressions
378cd08 - scripts: use proper arithmetic operations
5224840 - scripts: workaround for a improper sed substitution
4a1df34 - scripts: use Bourne shell instead of bash
e103601 - scripts: use Bourne shell's pattern matching
2127850 - scripts: use strings instead of arrays
899d6c7 - scripts: use proper arithmetic operation syntax
09f8400 - scripts: use restool --full-path option
e316b4c - scripts: remove unnecessary arrays
6039bd1 - dprc: add --full-path option to dprc list command
978f00c - scripts: move shebang on the first line

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-01-25 16:30:35 -02:00
Chunrong Guo
16eaa39f99 restool: update to 8f08b9d
*include the following changes:
8f08b9d - scripts: remove symbolic links from repo
a22e095 - Makefile: change instalation path to $(DESTDIR)/usr/local/bin
9279f35 - Makefile: remove useless assignments
b92d1e1 - Makefile: do not force a specific hash style
fbea3ee - Makefile: create restool as a dynamically linked binary
1546b8a - Makefile: automatically generate list of source files
7ef0194 - remove unused variables

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-11-06 10:00:21 -02:00
Chunrong Guo
1eb61ab408 restool: add ls1043ardb and ls1046ardb as COMPATIBLE_MACHINE
*add ls1043ardb and ls1046ardb support

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-18 11:42:30 -02:00
Chunrong Guo
b56671433b restool: update to 87c3abe
87c3abe - scripts: fix improper usage of bash arithmetic operations

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-10-18 11:42:30 -02:00
Chunrong Guo
5e41415005 restool: update to f01f2ea4ab
*include the following changes

f01f2ea - add NXP Copyright where necessary
2a413ea - dpsw: change dpsw.X to dpsw.0 in help text
eeee9e8 - dpni: remove unused variable
837e541 - dpdmux: add support for L3 custom forwarding method
42f39ea - dpseci: add congestion group option for dpseci create
1516311 - dpni: execute dpni create even if MC10.2
55bdffd - add MC version compatiblilty check to wrapper scripts
fc29c3d - dprc: export connect configuration parameters to users
3fd971d - avoid INTEGER overflow in params of get_option_value function

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-08-07 11:42:29 -03:00
Chunrong Guo
a4ecc6602b restool: update SRC_URI to fix fetching
*fix the below error
     |<50>ERROR: restool-git-r0 do_fetch: Fetcher failure: Unable to find revision eba25cdfdccef45f7ba02dd2f829b9b55198fbb1
     |in branch sdk-v2.0.x even from upstream

Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-05-02 17:54:57 -03:00
Chunrong Guo
50d7d20a3d restool: add ls2088ardb as COMPATIBLE_MACHIN
Signed-off-by: Chunrong Guo <B40290@freescale.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2017-05-02 17:54:57 -03:00
Fabio Berton
f28116959e restool: Set PACKAGE_ARCH to the value of MACHINE_ARCH
Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-12-06 16:25:47 -02:00
Zongchun Yu
4469a2ad9c restool: Add recipe
Signed-off-by: Zongchun Yu <zongchun.yu@nxp.com>
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2016-07-22 11:30:51 -03:00