mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 17:35:22 +08:00
Remove the posix based #ifdef from version.h
Use the BOARD_NAME distributed to the board_config.h files for posix derived targets
This commit is contained in:
committed by
Lorenz Meier
parent
df1ed22cf9
commit
78eb02e480
@@ -43,6 +43,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <px4_config.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#define FREEZE_STR(s) #s
|
||||
@@ -51,21 +52,9 @@
|
||||
/* The preferred method for publishing a board name is to
|
||||
* define it in board_config.h as BOARD_NAME
|
||||
*/
|
||||
#if defined(CONFIG_ARCH_BOARD_SITL)
|
||||
# define BOARD_NAME "SITL"
|
||||
#elif defined(CONFIG_ARCH_BOARD_EAGLE)
|
||||
# define BOARD_NAME "EAGLE"
|
||||
#elif defined(CONFIG_ARCH_BOARD_EXCELSIOR)
|
||||
# define BOARD_NAME "EXCELSIOR"
|
||||
#elif defined(CONFIG_ARCH_BOARD_RPI)
|
||||
# define BOARD_NAME "RPI"
|
||||
#elif defined(CONFIG_ARCH_BOARD_BEBOP)
|
||||
# define BOARD_NAME "BEBOP"
|
||||
#else
|
||||
# include "board_config.h"
|
||||
# ifndef BOARD_NAME
|
||||
|
||||
#ifndef BOARD_NAME
|
||||
# error "board_config.h must define BOARD_NAME"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user