nimble/ports: Use native BSP for test targets

Dummy BSP could be getting out of sync with Mynewt BSP leading to
compile errors.
This commit is contained in:
Szymon Janc
2021-12-30 12:50:20 +01:00
parent f771348a4e
commit 605ade16f7
8 changed files with 7 additions and 118 deletions
-56
View File
@@ -1,56 +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.
#
bsp.name: "dummy"
bsp.url:
bsp.maker:
bsp.arch: dummy
bsp.compiler: "@apache-mynewt-core/compiler/sim"
bsp.flash_map:
areas:
# System areas.
FLASH_AREA_BOOTLOADER:
device: 0
offset: 0x00000000
size: 32kB
FLASH_AREA_IMAGE_0:
device: 0
offset: 0x0000c000
size: 472kB
FLASH_AREA_IMAGE_1:
device: 0
offset: 0x00082000
size: 472kB
FLASH_AREA_IMAGE_SCRATCH:
device: 0
offset: 0x000f8000
size: 16kB
# User areas.
FLASH_AREA_REBOOT_LOG:
user_id: 0
device: 0
offset: 0x00008000
size: 16kB
FLASH_AREA_NFFS:
user_id: 1
device: 0
offset: 0x000fc000
size: 16kB
@@ -1,31 +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_BSP_H
#define H_BSP_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* H_BSP_H */
-27
View File
@@ -1,27 +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.
#
pkg.name: porting/targets/dummy_bsp
pkg.type: bsp
pkg.description: A dummy BSP definition
pkg.author: "Apache Mynewt <[email protected]>"
pkg.homepage: "http://mynewt.apache.org/"
pkg.keywords:
pkg.cflags:
pkg.deps:
+1 -1
View File
@@ -16,5 +16,5 @@
# under the License.
#
target.app: "porting/targets/dummy_app"
target.bsp: "porting/targets/dummy_bsp"
target.bsp: "@apache-mynewt-core/hw/bsp/native"
target.build_profile: "debug"
+1 -1
View File
@@ -17,5 +17,5 @@
#
target.app: "porting/targets/dummy_app"
target.bsp: "porting/targets/dummy_bsp"
target.bsp: "@apache-mynewt-core/hw/bsp/native"
target.build_profile: "debug"
+1 -1
View File
@@ -16,5 +16,5 @@
# under the License.
#
target.app: "porting/targets/dummy_app"
target.bsp: "porting/targets/dummy_bsp"
target.bsp: "@apache-mynewt-core/hw/bsp/native"
target.build_profile: "debug"
@@ -0,0 +1,3 @@
syscfg.vals:
BLE_SOCK_USE_TCP: 0
BLE_SOCK_USE_LINUX_BLUE: 1
+1 -1
View File
@@ -17,5 +17,5 @@
#
target.app: "porting/targets/dummy_app"
target.bsp: "porting/targets/dummy_bsp"
target.bsp: "@apache-mynewt-core/hw/bsp/native"
target.build_profile: "debug"