Re: [PATCH 2/5] build: Use CSafeLoader if available

2023-05-04 Thread Sebastian Huber
On 04.05.23 05:35, Chris Johns wrote: On 3/5/2023 7:40 pm, Sebastian Huber wrote: On 03.05.23 05:30, Chris Johns wrote: On 28/4/2023 3:38 pm, Sebastian Huber wrote: On 27.04.23 20:27, Gedare Bloom wrote: On Wed, Apr 26, 2023 at 11:46 PM Sebastian Huber   wrote: On 27.04.23 02:11, Chris

[PATCH rtems 02/12] bsp/imxrt: Update support library from mcux-sdk

2023-05-04 Thread Christian Mauderer
This imports new files from the mcux-sdk support library. NXP now offers the library as a git repository instead of a zip package. The git repository supports multiple CPUs from the i.MXRT family: https://github.com/nxp-mcuxpresso/mcux-sdk.git The imported files are from revision

[PATCH rtems 03/12] bsps/imxrt: (Re-)Apply RTEMS patches to new lib

2023-05-04 Thread Christian Mauderer
Reapply patches used in the old version of the NXP library and apply patches necessary for the new version of the library. --- .../devices/MIMXRT1011/fsl_device_registers.h | 3 + .../MIMXRT1011/xip/fsl_flexspi_nor_boot.h | 4 + .../devices/MIMXRT1015/fsl_device_registers.h | 3 +

[PATCH rtems 00/12] bsp/imxrt: Update SDK and prepare for new variant

2023-05-04 Thread Christian Mauderer
Hello, this patch set for the arm/imxrt BSP family updates the SDK files to the latest version of the mcux-sdk from NXP and prepares the BSP for further chip variants. I plan to add a BSP that uses the IMXRT1166 soon. As a base for the mcux-sdk files, I now use the NXP git repository instead of

[PATCH rtems 04/12] bsps/imxrt: Adapt to new mcux-sdk version

2023-05-04 Thread Christian Mauderer
Remove the old NXP MCUXpresso SDK and adapt the BSP so that it uses the new mcux-sdk. NOTE: Due to the size, this is only the summary of the patch. You can find the full version here: https://gitlab.com/c-mauderer/rtems/-/commit/2a871672767a95598e5af42373bfebd3eb9440d3 ---

[PATCH rtems 06/12] bsps/imxrt: Get clock for IMXRT11xx in drivers

2023-05-04 Thread Christian Mauderer
The mcux_sdk has a different interface for getting the clock for IMXRT11xx than for getting it in IMXRT10xx. Adapt simple drivers to support that interface. --- bsps/arm/imxrt/console/console.c | 35 +-- bsps/arm/imxrt/i2c/imxrt-lpi2c.c | 18 --

[PATCH rtems 09/12] bsps/imxrt: Support more chip variants in header

2023-05-04 Thread Christian Mauderer
The different variants of the i.MXRT have some minimal differences in the fsl_flexspi_nor_config.h. Make sure that the header supports the different chips. --- .../imxrt/include/fsl_flexspi_nor_config.h| 49 +++ 1 file changed, 40 insertions(+), 9 deletions(-) diff --git

[PATCH rtems 08/12] bsps/imxrt: Remove unmaintained defines

2023-05-04 Thread Christian Mauderer
The defines for the different clock frequencies in the fsl_clock_config.h do not represent the clock frequencies that have been set up in the registers. Remove them to avoid someone trusting in correct values. --- bsps/arm/imxrt/include/fsl_clock_config.h | 58 +--

[PATCH rtems 07/12] bsps/shared: Fix header for fsl-edma

2023-05-04 Thread Christian Mauderer
If a different chip variant is used in the i.mxrt BSP, a different header would have to be included. Make sure that the fsl-edma driver uses a header that doesn't have to be adapted. --- bsps/shared/dev/dma/fsl-edma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH rtems 10/12] bsps/imxrt: Make chip start code chip specific

2023-05-04 Thread Christian Mauderer
Some parts of the startup code don't apply for all chips. Make that part chip specific. --- bsps/arm/imxrt/start/bspstart.c | 4 bsps/arm/imxrt/start/bspstarthooks.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/bsps/arm/imxrt/start/bspstart.c b/bsps/arm/imxrt/start/bspstart.c

[PATCH rtems 11/12] bsps/imxrt: Move board specific files

2023-05-04 Thread Christian Mauderer
Move the files that are board specific and not specific to the chip family into a separate folder. --- .../evkbimxrt1050}/clock-arm-pll-config.c | 0 .../boards/evkbimxrt1050/clock_config.c | 0 .../evkbimxrt1050}/flash-dcd.c| 0 .../{nxp =>

[PATCH rtems 12/12] bsps/imxrt: Make the OCRAM address configurable

2023-05-04 Thread Christian Mauderer
Depending on the chip variant, the OCRAM can have different addresses. Make it configurable. --- spec/build/bsps/arm/imxrt/grp.yml | 2 ++ spec/build/bsps/arm/imxrt/linkcmdsmemory.yml| 4 ++-- spec/build/bsps/arm/imxrt/optmemocramorigin.yml | 17 + 3 files

[PATCH rtems 05/12] bsps/imxrt1052: PLL config based on speed grade

2023-05-04 Thread Christian Mauderer
--- bsps/arm/imxrt/start/clock-arm-pll-config.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/bsps/arm/imxrt/start/clock-arm-pll-config.c b/bsps/arm/imxrt/start/clock-arm-pll-config.c index 12ad1867eb..2a0148e73a 100644 --- a/bsps/arm/imxrt/start/clock-arm-pll-config.c +++

[PATCH rtems 01/12] bsp/imxrt: Add script to import mcux-sdk

2023-05-04 Thread Christian Mauderer
NXP now offers the support library in a mcux-sdk git repository instead of in zip files. The git repository supports multiple controllers of the i.MXRT family instead of a single one. This commit adds a script that is a (very hacky) parser for the the cmake files in the mcux-sdk. It copies all

Re: [PATCH 2/5] build: Use CSafeLoader if available

2023-05-04 Thread Chris Johns
On 4/5/2023 4:16 pm, Sebastian Huber wrote: > On 04.05.23 05:35, Chris Johns wrote: >> On 3/5/2023 7:40 pm, Sebastian Huber wrote: >>> On 03.05.23 05:30, Chris Johns wrote: On 28/4/2023 3:38 pm, Sebastian Huber wrote: > On 27.04.23 20:27, Gedare Bloom wrote: >> On Wed, Apr 26, 2023 at

Static analysis

2023-05-04 Thread Sam Price
I was trying to run scan-build on a microblaze build. However scan-build wasn't seeing any files get built. I then tried to revert down to the intercept-build command, and it generated an empty compilation database. /usr/share/clang/scan-build-py-10/bin/intercept-build --override-compiler ./waf