This is an automated email from the ASF dual-hosted git repository.

xiaoxiang781216 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit a5e8ea2b40ff0bc16ecbb67714bdb0f49160118f
Author: Matteo Golin <[email protected]>
AuthorDate: Thu Feb 19 16:27:09 2026 -0500

    arch/ceva: Replace board_app_initialize
    
    Replaced board_app_initialize logic with board_late_initialize.
    
    Signed-off-by: Matteo Golin <[email protected]>
---
 arch/ceva/src/common/ceva_board.c                  | 40 ----------------------
 boards/arm/kinetis/kwikstik-k40/src/k40_boot.c     |  1 -
 boards/arm/lpc17xx_40xx/mbed/src/lpc17_40_boot.c   |  1 -
 boards/arm/lpc31xx/ea3131/src/lpc31_boot.c         |  1 -
 boards/arm/lpc43xx/lpc4370-link2/src/lpc43_boot.c  |  1 -
 boards/arm/samd2l2/saml21-xplained/src/sam_boot.c  |  1 -
 .../arm/samv7/same70-xplained/src/sam_boardctl.c   |  2 +-
 .../arm/stm32f7/steval-eth001v1/src/CMakeLists.txt | 22 ++++++------
 boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt | 22 ++++++------
 .../stm32h7/stm32h747i-disco/src/CMakeLists.txt    |  2 +-
 boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c  |  1 -
 boards/arm/tiva/eagle100/src/lm_boot.c             |  1 -
 12 files changed, 24 insertions(+), 71 deletions(-)

diff --git a/arch/ceva/src/common/ceva_board.c 
b/arch/ceva/src/common/ceva_board.c
index 7484f6a2159..24962859161 100644
--- a/arch/ceva/src/common/ceva_board.c
+++ b/arch/ceva/src/common/ceva_board.c
@@ -70,46 +70,6 @@ void board_late_initialize(void)
 }
 #endif /* CONFIG_BOARD_LATE_INITIALIZE */
 
-/****************************************************************************
- * Name: board_app_initialize
- *
- * Description:
- *   Perform application specific initialization.  This function is never
- *   called directly from application code, but only indirectly via the
- *   (non-standard) boardctl() interface using the command BOARDIOC_INIT.
- *
- * Input Parameters:
- *   arg - The boardctl() argument is passed to the board_app_initialize()
- *         implementation without modification.  The argument has no
- *         meaning to NuttX; the meaning of the argument is a contract
- *         between the board-specific initialization logic and the
- *         matching application logic.  The value cold be such things as a
- *         mode enumeration value, a set of DIP switch switch settings, a
- *         pointer to configuration data read from a file or serial FLASH,
- *         or whatever you would like to do with it.  Every implementation
- *         should accept zero/NULL as a default configuration.
- *
- * Returned Value:
- *   Zero (OK) is returned on success; a negated errno value is returned on
- *   any failure to indicate the nature of the failure.
- *
- ****************************************************************************/
-
-#ifdef CONFIG_LIB_BOARDCTL
-int board_app_initialize(uintptr_t arg)
-{
-  /* Perform the arch late initialization */
-
-  ceva_lateinitialize();
-
-  /* Perform the board late initialization */
-
-  board_lateinitialize();
-
-  return 0;
-}
-#endif /* CONFIG_LIB_BOARDCTL */
-
 /****************************************************************************
  * Name: board_app_finalinitialize
  *
diff --git a/boards/arm/kinetis/kwikstik-k40/src/k40_boot.c 
b/boards/arm/kinetis/kwikstik-k40/src/k40_boot.c
index 41de1245d5c..39315c1bd8f 100644
--- a/boards/arm/kinetis/kwikstik-k40/src/k40_boot.c
+++ b/boards/arm/kinetis/kwikstik-k40/src/k40_boot.c
@@ -123,7 +123,6 @@ struct kinetis_nsh_s
 static struct kinetis_nsh_s g_nsh;
 #endif
 
-
 /****************************************************************************
  * Private Functions
  ****************************************************************************/
diff --git a/boards/arm/lpc17xx_40xx/mbed/src/lpc17_40_boot.c 
b/boards/arm/lpc17xx_40xx/mbed/src/lpc17_40_boot.c
index b7074ab0848..33f6bbefd5d 100644
--- a/boards/arm/lpc17xx_40xx/mbed/src/lpc17_40_boot.c
+++ b/boards/arm/lpc17xx_40xx/mbed/src/lpc17_40_boot.c
@@ -65,7 +65,6 @@
 #  undef NSH_HAVEUSBDEV
 #endif
 
-
 /****************************************************************************
  * Private Functions
  ****************************************************************************/
diff --git a/boards/arm/lpc31xx/ea3131/src/lpc31_boot.c 
b/boards/arm/lpc31xx/ea3131/src/lpc31_boot.c
index 147ce77d920..d64581e69fb 100644
--- a/boards/arm/lpc31xx/ea3131/src/lpc31_boot.c
+++ b/boards/arm/lpc31xx/ea3131/src/lpc31_boot.c
@@ -89,7 +89,6 @@
 #  define CONFIG_NSH_MMCSDMINOR 0
 #endif
 
-
 /****************************************************************************
  * Private Functions
  ****************************************************************************/
diff --git a/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_boot.c 
b/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_boot.c
index 02d77d42f07..4752888675c 100644
--- a/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_boot.c
+++ b/boards/arm/lpc43xx/lpc4370-link2/src/lpc43_boot.c
@@ -101,7 +101,6 @@ static void lpc43_i2ctool(void)
 #  define lpc43_i2ctool()
 #endif
 
-
 /****************************************************************************
  * Public Functions
  ****************************************************************************/
diff --git a/boards/arm/samd2l2/saml21-xplained/src/sam_boot.c 
b/boards/arm/samd2l2/saml21-xplained/src/sam_boot.c
index 2022f154010..35739bcf0da 100644
--- a/boards/arm/samd2l2/saml21-xplained/src/sam_boot.c
+++ b/boards/arm/samd2l2/saml21-xplained/src/sam_boot.c
@@ -80,7 +80,6 @@
 #  endif
 #endif
 
-
 /****************************************************************************
  * Private Functions
  ****************************************************************************/
diff --git a/boards/arm/samv7/same70-xplained/src/sam_boardctl.c 
b/boards/arm/samv7/same70-xplained/src/sam_boardctl.c
index 38ea3a8625c..d1571c84546 100644
--- a/boards/arm/samv7/same70-xplained/src/sam_boardctl.c
+++ b/boards/arm/samv7/same70-xplained/src/sam_boardctl.c
@@ -1,5 +1,5 @@
 /****************************************************************************
- * boards/arm/samv7/same70-xplained/src/sam_boarctl.c
+ * boards/arm/samv7/same70-xplained/src/sam_boardctl.c
  *
  * SPDX-License-Identifier: Apache-2.0
  *
diff --git a/boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt 
b/boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt
index f9467f69994..0082f8f9499 100644
--- a/boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt
+++ b/boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt
@@ -1,24 +1,24 @@
-############################################################################
+# 
##############################################################################
 # boards/arm/stm32f7/steval-eth001v1/src/CMakeLists.txt
 #
 # SPDX-License-Identifier: Apache-2.0
 #
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.  The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License.  You may obtain a copy of the License at
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
 #
-#   http://www.apache.org/licenses/LICENSE-2.0
+# http://www.apache.org/licenses/LICENSE-2.0
 #
 # Unless required by applicable law or agreed to in writing, software
 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
-# License for the specific language governing permissions and limitations
-# under the License.
+# License for the specific language governing permissions and limitations under
+# the License.
 #
-############################################################################
+# 
##############################################################################
 
 set(SRCS stm32_boot.c stm32_bringup.c)
 
diff --git a/boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt 
b/boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt
index 19d76fca1f5..973faf1d304 100644
--- a/boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt
+++ b/boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt
@@ -1,24 +1,24 @@
-############################################################################
+# 
##############################################################################
 # boards/arm/stm32f7/stm32f746-ws/src/CMakeLists.txt
 #
 # SPDX-License-Identifier: Apache-2.0
 #
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.  The
-# ASF licenses this file to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance with the
-# License.  You may obtain a copy of the License at
+# Licensed to the Apache Software Foundation (ASF) under one or more 
contributor
+# license agreements.  See the NOTICE file distributed with this work for
+# additional information regarding copyright ownership.  The ASF licenses this
+# file to you under the Apache License, Version 2.0 (the "License"); you may 
not
+# use this file except in compliance with the License.  You may obtain a copy 
of
+# the License at
 #
-#   http://www.apache.org/licenses/LICENSE-2.0
+# http://www.apache.org/licenses/LICENSE-2.0
 #
 # Unless required by applicable law or agreed to in writing, software
 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
-# License for the specific language governing permissions and limitations
-# under the License.
+# License for the specific language governing permissions and limitations under
+# the License.
 #
-############################################################################
+# 
##############################################################################
 
 set(SRCS stm32_boot.c stm32_spi.c stm32_dma_alloc.c)
 
diff --git a/boards/arm/stm32h7/stm32h747i-disco/src/CMakeLists.txt 
b/boards/arm/stm32h7/stm32h747i-disco/src/CMakeLists.txt
index 1547dd92632..2aff1364c44 100644
--- a/boards/arm/stm32h7/stm32h747i-disco/src/CMakeLists.txt
+++ b/boards/arm/stm32h7/stm32h747i-disco/src/CMakeLists.txt
@@ -64,5 +64,5 @@ if(NOT CONFIG_BUILD_FLAT)
   add_subdirectory(${NUTTX_BOARD_DIR}/kernel)
   set_property(
     GLOBAL PROPERTY LD_SCRIPT_USER ${NUTTX_BOARD_DIR}/scripts/memory.ld
-    ${NUTTX_BOARD_DIR}/scripts/user-space.ld)
+                    ${NUTTX_BOARD_DIR}/scripts/user-space.ld)
 endif()
diff --git a/boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c 
b/boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c
index 9b1b0c5a05f..a8199219abe 100644
--- a/boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c
+++ b/boards/arm/stm32wb/nucleo-wb55rg/src/stm32_boot.c
@@ -51,7 +51,6 @@
 #  include "stm32wb_blehci.h"
 #endif
 
-
 #include "nucleo-wb55rg.h"
 
 /****************************************************************************
diff --git a/boards/arm/tiva/eagle100/src/lm_boot.c 
b/boards/arm/tiva/eagle100/src/lm_boot.c
index cd0d936c13f..5aa5fd42e2d 100644
--- a/boards/arm/tiva/eagle100/src/lm_boot.c
+++ b/boards/arm/tiva/eagle100/src/lm_boot.c
@@ -169,6 +169,5 @@ void board_late_initialize(void)
   syslog(LOG_INFO, "Successfully bound SPI port %d to MMC/SD slot %d\n",
          CONFIG_NSH_MMCSDSPIPORTNO, CONFIG_NSH_MMCSDSLOTNO);
 #endif
-
 }
 #endif /* CONFIG_BOARD_LATE_INITIALIZE */

Reply via email to