From bb305ea18aec260a17d9c12f07b696f79a5d9249 Mon Sep 17 00:00:00 2001 From: thomax2 Date: Thu, 16 Oct 2025 19:11:44 +0800 Subject: [PATCH 1/2] utilize the clang-format-ignore mechanism in bsp/nxp --- .../imxrt/imxrt1060-nxp-evk/.clang-format-ignore | 11 +++++++++++ .../imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml | 6 ------ bsp/nxp/imx/imxrt/libraries/.clang-format-ignore | 9 +++++++++ bsp/nxp/imx/imxrt/libraries/.ignore_format.yml | 4 ---- bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore | 13 +++++++++++++ bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml | 8 -------- bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore | 9 +++++++++ bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml | 4 ---- bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore | 9 +++++++++ bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml | 4 ---- bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore | 9 +++++++++ bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml | 4 ---- 12 files changed, 60 insertions(+), 30 deletions(-) create mode 100644 bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore delete mode 100644 bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml create mode 100644 bsp/nxp/imx/imxrt/libraries/.clang-format-ignore delete mode 100644 bsp/nxp/imx/imxrt/libraries/.ignore_format.yml create mode 100644 bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore delete mode 100644 bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml create mode 100644 bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore delete mode 100644 bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml create mode 100644 bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore delete mode 100644 bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml create mode 100644 bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore delete mode 100644 bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml diff --git a/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore new file mode 100644 index 00000000000..eb87ecbe760 --- /dev/null +++ b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore @@ -0,0 +1,11 @@ +# .clang-format-ignore File Description: +# ---------------------------------------------------------------------------------------- +# 1. Used to specify which files or directories should be skipped by the clang-format tool. +# 2. Follows syntax rules similar to .gitignore. +# 3. Supports wildcard patterns and path matching. +# 4. clang-format will recursively apply the .clang-format-ignore rules. + +# NXP imxrt1060-nxp-evk library +/board/board.c +/board/MCUX_Config/ +/xip/ \ No newline at end of file diff --git a/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml deleted file mode 100644 index ea728a5a486..00000000000 --- a/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.ignore_format.yml +++ /dev/null @@ -1,6 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- board/board.c -- board/MCUX_Config -- xip diff --git a/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore b/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore new file mode 100644 index 00000000000..984d3cea4d3 --- /dev/null +++ b/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore @@ -0,0 +1,9 @@ +# .clang-format-ignore File Description: +# ---------------------------------------------------------------------------------------- +# 1. Used to specify which files or directories should be skipped by the clang-format tool. +# 2. Follows syntax rules similar to .gitignore. +# 3. Supports wildcard patterns and path matching. +# 4. clang-format will recursively apply the .clang-format-ignore rules. + +# NXP IMXRT library +/MIMXRT1060/ \ No newline at end of file diff --git a/bsp/nxp/imx/imxrt/libraries/.ignore_format.yml b/bsp/nxp/imx/imxrt/libraries/.ignore_format.yml deleted file mode 100644 index b5c6019360d..00000000000 --- a/bsp/nxp/imx/imxrt/libraries/.ignore_format.yml +++ /dev/null @@ -1,4 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- MIMXRT1060 diff --git a/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore b/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..53a2dcc9655 --- /dev/null +++ b/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore @@ -0,0 +1,13 @@ +# .clang-format-ignore File Description: +# ---------------------------------------------------------------------------------------- +# 1. Used to specify which files or directories should be skipped by the clang-format tool. +# 2. Follows syntax rules similar to .gitignore. +# 3. Supports wildcard patterns and path matching. +# 4. clang-format will recursively apply the .clang-format-ignore rules. + +# NXP LPC55Sxx library +/LPC55S6X/ +/LPC55S06/ +/LPC5502/ +/LPC55S28/ +/LPC55S36/ \ No newline at end of file diff --git a/bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml b/bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml deleted file mode 100644 index 6235c0a1e14..00000000000 --- a/bsp/nxp/lpc/lpc55sxx/Libraries/.ignore_format.yml +++ /dev/null @@ -1,8 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- LPC55S6X -- LPC55S06 -- LPC5502 -- LPC55S28 -- LPC55S36 \ No newline at end of file diff --git a/bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore b/bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..9a657fbe1ab --- /dev/null +++ b/bsp/nxp/mcx/mcxa/Libraries/.clang-format-ignore @@ -0,0 +1,9 @@ +# .clang-format-ignore File Description: +# ---------------------------------------------------------------------------------------- +# 1. Used to specify which files or directories should be skipped by the clang-format tool. +# 2. Follows syntax rules similar to .gitignore. +# 3. Supports wildcard patterns and path matching. +# 4. clang-format will recursively apply the .clang-format-ignore rules. + +# NXP MCXA library +/MCXA153/ \ No newline at end of file diff --git a/bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml b/bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml deleted file mode 100644 index 6b58f2d7f61..00000000000 --- a/bsp/nxp/mcx/mcxa/Libraries/.ignore_format.yml +++ /dev/null @@ -1,4 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- MCXA153 diff --git a/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore b/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..7f037b33268 --- /dev/null +++ b/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore @@ -0,0 +1,9 @@ +# .clang-format-ignore File Description: +# ---------------------------------------------------------------------------------------- +# 1. Used to specify which files or directories should be skipped by the clang-format tool. +# 2. Follows syntax rules similar to .gitignore. +# 3. Supports wildcard patterns and path matching. +# 4. clang-format will recursively apply the .clang-format-ignore rules. + +# NXP MCXC library +/MCXC444/ \ No newline at end of file diff --git a/bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml b/bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml deleted file mode 100644 index 44315486a7a..00000000000 --- a/bsp/nxp/mcx/mcxc/Libraries/.ignore_format.yml +++ /dev/null @@ -1,4 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- MCXC444 diff --git a/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore b/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore new file mode 100644 index 00000000000..fe12a5887d8 --- /dev/null +++ b/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore @@ -0,0 +1,9 @@ +# .clang-format-ignore File Description: +# ---------------------------------------------------------------------------------------- +# 1. Used to specify which files or directories should be skipped by the clang-format tool. +# 2. Follows syntax rules similar to .gitignore. +# 3. Supports wildcard patterns and path matching. +# 4. clang-format will recursively apply the .clang-format-ignore rules. + +# NXP MCXN library +/MCXN947/ \ No newline at end of file diff --git a/bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml b/bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml deleted file mode 100644 index f4d6178648a..00000000000 --- a/bsp/nxp/mcx/mcxn/Libraries/.ignore_format.yml +++ /dev/null @@ -1,4 +0,0 @@ -# files format check exclude path, please follow the instructions below to modify; - -dir_path: -- MCXN947 From 261b8c71f3aa30def710d2c8775f4f06861f32e6 Mon Sep 17 00:00:00 2001 From: thomax2 Date: Wed, 22 Oct 2025 10:21:29 +0800 Subject: [PATCH 2/2] fix: ignore files with known build issues exposed by migration --- .../imxrt/imxrt1060-nxp-evk/.clang-format-ignore | 1 - bsp/nxp/imx/imxrt/libraries/.clang-format-ignore | 9 --------- bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore | 13 ------------- bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore | 9 --------- bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore | 9 --------- 5 files changed, 41 deletions(-) delete mode 100644 bsp/nxp/imx/imxrt/libraries/.clang-format-ignore delete mode 100644 bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore delete mode 100644 bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore delete mode 100644 bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore diff --git a/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore index eb87ecbe760..82046b894fe 100644 --- a/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore +++ b/bsp/nxp/imx/imxrt/imxrt1060-nxp-evk/.clang-format-ignore @@ -6,6 +6,5 @@ # 4. clang-format will recursively apply the .clang-format-ignore rules. # NXP imxrt1060-nxp-evk library -/board/board.c /board/MCUX_Config/ /xip/ \ No newline at end of file diff --git a/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore b/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore deleted file mode 100644 index 984d3cea4d3..00000000000 --- a/bsp/nxp/imx/imxrt/libraries/.clang-format-ignore +++ /dev/null @@ -1,9 +0,0 @@ -# .clang-format-ignore File Description: -# ---------------------------------------------------------------------------------------- -# 1. Used to specify which files or directories should be skipped by the clang-format tool. -# 2. Follows syntax rules similar to .gitignore. -# 3. Supports wildcard patterns and path matching. -# 4. clang-format will recursively apply the .clang-format-ignore rules. - -# NXP IMXRT library -/MIMXRT1060/ \ No newline at end of file diff --git a/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore b/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore deleted file mode 100644 index 53a2dcc9655..00000000000 --- a/bsp/nxp/lpc/lpc55sxx/Libraries/.clang-format-ignore +++ /dev/null @@ -1,13 +0,0 @@ -# .clang-format-ignore File Description: -# ---------------------------------------------------------------------------------------- -# 1. Used to specify which files or directories should be skipped by the clang-format tool. -# 2. Follows syntax rules similar to .gitignore. -# 3. Supports wildcard patterns and path matching. -# 4. clang-format will recursively apply the .clang-format-ignore rules. - -# NXP LPC55Sxx library -/LPC55S6X/ -/LPC55S06/ -/LPC5502/ -/LPC55S28/ -/LPC55S36/ \ No newline at end of file diff --git a/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore b/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore deleted file mode 100644 index 7f037b33268..00000000000 --- a/bsp/nxp/mcx/mcxc/Libraries/.clang-format-ignore +++ /dev/null @@ -1,9 +0,0 @@ -# .clang-format-ignore File Description: -# ---------------------------------------------------------------------------------------- -# 1. Used to specify which files or directories should be skipped by the clang-format tool. -# 2. Follows syntax rules similar to .gitignore. -# 3. Supports wildcard patterns and path matching. -# 4. clang-format will recursively apply the .clang-format-ignore rules. - -# NXP MCXC library -/MCXC444/ \ No newline at end of file diff --git a/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore b/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore deleted file mode 100644 index fe12a5887d8..00000000000 --- a/bsp/nxp/mcx/mcxn/Libraries/.clang-format-ignore +++ /dev/null @@ -1,9 +0,0 @@ -# .clang-format-ignore File Description: -# ---------------------------------------------------------------------------------------- -# 1. Used to specify which files or directories should be skipped by the clang-format tool. -# 2. Follows syntax rules similar to .gitignore. -# 3. Supports wildcard patterns and path matching. -# 4. clang-format will recursively apply the .clang-format-ignore rules. - -# NXP MCXN library -/MCXN947/ \ No newline at end of file