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

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-nimble.git


The following commit(s) were added to refs/heads/master by this push:
     new 2cd0450a0 nimble/transport/emspi: Fix build
2cd0450a0 is described below

commit 2cd0450a00b07b5f30dcfe1ac8feb089513bf8eb
Author: Szymon Janc <[email protected]>
AuthorDate: Wed Oct 7 20:36:49 2026 +0200

    nimble/transport/emspi: Fix build
    
    emspi transport was updated to new transport API, but its package
    still registered no longer existing ble_hci_emspi_init() for sysinit,
    which resulted in link error. Transport is now initialized from
    ble_transport_ll_init() as other transports, so remove sysinit entry
    together with its syscfg and unused public header.
    
    Assisted-by: Claude:claude-opus-5-5
---
 .../emspi/include/transport/emspi/ble_hci_emspi.h  | 33 ----------------------
 nimble/transport/emspi/pkg.yml                     |  3 --
 nimble/transport/emspi/src/ble_hci_emspi.c         |  2 --
 nimble/transport/emspi/syscfg.yml                  |  5 ----
 4 files changed, 43 deletions(-)

diff --git a/nimble/transport/emspi/include/transport/emspi/ble_hci_emspi.h 
b/nimble/transport/emspi/include/transport/emspi/ble_hci_emspi.h
deleted file mode 100644
index 738d9e6d5..000000000
--- a/nimble/transport/emspi/include/transport/emspi/ble_hci_emspi.h
+++ /dev/null
@@ -1,33 +0,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
- *
- *  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.
- */
-
-#ifndef H_BLE_HCI_EMSPI_
-#define H_BLE_HCI_EMSPI_
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-void ble_hci_emspi_init(void);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/nimble/transport/emspi/pkg.yml b/nimble/transport/emspi/pkg.yml
index 5df5a5bbe..3c8deb89d 100644
--- a/nimble/transport/emspi/pkg.yml
+++ b/nimble/transport/emspi/pkg.yml
@@ -31,6 +31,3 @@ pkg.deps:
 
 pkg.apis:
     - ble_transport
-
-pkg.init:
-    ble_hci_emspi_init: 'MYNEWT_VAL(BLE_HCI_EMSPI_SYSINIT_STAGE)'
diff --git a/nimble/transport/emspi/src/ble_hci_emspi.c 
b/nimble/transport/emspi/src/ble_hci_emspi.c
index d07820f7b..aa1e3f9ad 100644
--- a/nimble/transport/emspi/src/ble_hci_emspi.c
+++ b/nimble/transport/emspi/src/ble_hci_emspi.c
@@ -37,8 +37,6 @@
 #include "nimble/hci_common.h"
 #include "nimble/transport.h"
 
-#include "transport/emspi/ble_hci_emspi.h"
-
 #include "am_mcu_apollo.h"
 
 #define BLE_HCI_EMSPI_PKT_NONE          0x00
diff --git a/nimble/transport/emspi/syscfg.yml 
b/nimble/transport/emspi/syscfg.yml
index 12a853e74..d34665093 100644
--- a/nimble/transport/emspi/syscfg.yml
+++ b/nimble/transport/emspi/syscfg.yml
@@ -57,8 +57,3 @@ syscfg.defs:
     BLE_HCI_EMSPI_STACK_SIZE:
         description: 'The size of the emspi task (units: 4-byte words).'
         value: 256
-
-    BLE_HCI_EMSPI_SYSINIT_STAGE:
-        description: >
-            Sysinit stage for the EMSPI BLE transport.
-        value: 100

Reply via email to