version: rebase fixes & add bbblue

This commit is contained in:
Beat Küng 2018-10-02 14:35:07 +02:00
parent afc1be2296
commit 6c34407d57
8 changed files with 23 additions and 45 deletions

View File

@ -30,12 +30,11 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
if ("${BOARD}" STREQUAL "bbblue")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error")
px4_add_library(drivers_board
init.c
)
px4_add_library(drivers_board
init.c
../common/board_identity.c
)
endif()

View File

@ -42,8 +42,8 @@
#ifndef BOARD_CONFIG_H
#define BOARD_CONFIG_H
#define BOARD_OVERRIDE_UUID "BBBLUEID " // must be of length 12 (PX4_CPU_UUID_BYTE_LENGTH)
#define BOARD_OVERRIDE_MFGUID BOARD_OVERRIDE_UUID
#define BOARD_OVERRIDE_UUID "BBBLUEID00000000" // must be of length 16
#define PX4_SOC_ARCH_ID PX4_SOC_ARCH_ID_BBBLUE
#define BOARD_NAME "BBBLUE"

View File

@ -30,12 +30,6 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_module(
MODULE drivers__boards__bebop
COMPILE_FLAGS
SRCS
../common/board_identity.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
px4_add_library(drivers_board
../common/board_identity.c
)

View File

@ -343,6 +343,7 @@ typedef enum PX4_SOC_ARCH_ID_t {
PX4_SOC_ARCH_ID_SIM = 0x1005,
PX4_SOC_ARCH_ID_SITL = 0x1006,
PX4_SOC_ARCH_ID_BEBOP = 0x1007,
PX4_SOC_ARCH_ID_BBBLUE = 0x1008,
} PX4_SOC_ARCH_ID_t;

View File

@ -30,12 +30,6 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_module(
MODULE drivers__boards__ocpoc
COMPILE_FLAGS
SRCS
../common/board_identity.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
px4_add_library(drivers_board
../common/board_identity.c
)

View File

@ -30,12 +30,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_module(
MODULE drivers__boards__rpi
COMPILE_FLAGS
SRCS
../common/board_identity.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
px4_add_library(drivers_board
../common/board_identity.c
)

View File

@ -30,12 +30,6 @@
# POSSIBILITY OF SUCH DAMAGE.
#
############################################################################
px4_add_module(
MODULE drivers__boards__sim
COMPILE_FLAGS
SRCS
../common/board_identity.c
DEPENDS
platforms__common
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
px4_add_library(drivers_board
../common/board_identity.c
)

View File

@ -77,4 +77,5 @@ endif()
add_library(version version.c)
target_compile_definitions(version PRIVATE BUILD_URI=${BUILD_URI})
target_link_libraries(version PRIVATE git_ver)
target_link_libraries(version PRIVATE drivers_board)
add_dependencies(version prebuild_targets)