mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-27 05:03:35 +08:00
QuRT: fixes to unbreak cmake build for QuRT
Updated DSPAL version. Fixed missing lib in config. Fixed heafers for missing timespec definition. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -510,9 +510,12 @@ function(px4_add_common_flags)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
|
if (${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
|
||||||
list(APPEND warnings
|
# QuRT 6.4.X compiler identifies as Clang but does not support this option
|
||||||
-Wno-unused-const-variable
|
if (NOT ${OS} STREQUAL "qurt")
|
||||||
)
|
list(APPEND warnings
|
||||||
|
-Wno-unused-const-variable
|
||||||
|
)
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
list(APPEND warnings
|
list(APPEND warnings
|
||||||
-Werror=unused-but-set-variable
|
-Werror=unused-but-set-variable
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ set(config_module_list
|
|||||||
modules/systemlib/mixer
|
modules/systemlib/mixer
|
||||||
modules/uORB
|
modules/uORB
|
||||||
modules/commander
|
modules/commander
|
||||||
|
modules/controllib
|
||||||
|
|
||||||
#
|
#
|
||||||
# Libraries
|
# Libraries
|
||||||
@@ -50,7 +51,7 @@ set(config_module_list
|
|||||||
lib/geo
|
lib/geo
|
||||||
lib/geo_lookup
|
lib/geo_lookup
|
||||||
lib/conversion
|
lib/conversion
|
||||||
modules/controllib
|
lib/ecl
|
||||||
|
|
||||||
#
|
#
|
||||||
# QuRT port
|
# QuRT port
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
#define __STDC_FORMAT_MACROS
|
#define __STDC_FORMAT_MACROS
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
#include <time.h>
|
#include <px4_time.h>
|
||||||
#include <queue.h>
|
#include <queue.h>
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|||||||
+1
-1
Submodule src/lib/dspal updated: 229f2f4d84...95e91546f4
@@ -366,7 +366,7 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
int init_sensor_class(const struct orb_metadata *meta, int *subs,
|
int init_sensor_class(const struct orb_metadata *meta, int *subs,
|
||||||
unsigned *priorities, unsigned *errcount);
|
uint32_t *priorities, uint32_t *errcount);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update our local parameter cache.
|
* Update our local parameter cache.
|
||||||
@@ -1949,7 +1949,7 @@ Sensors::task_main_trampoline(int argc, char *argv[])
|
|||||||
|
|
||||||
int
|
int
|
||||||
Sensors::init_sensor_class(const struct orb_metadata *meta, int *subs,
|
Sensors::init_sensor_class(const struct orb_metadata *meta, int *subs,
|
||||||
unsigned *priorities, unsigned *errcount)
|
uint32_t *priorities, uint32_t *errcount)
|
||||||
{
|
{
|
||||||
unsigned group_count = orb_group_count(meta);
|
unsigned group_count = orb_group_count(meta);
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
#include <px4_config.h>
|
#include <px4_config.h>
|
||||||
#include <px4_defines.h>
|
#include <px4_defines.h>
|
||||||
|
#include <px4_posix.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
@@ -37,10 +37,12 @@
|
|||||||
* High-resolution timer with callouts and timekeeping.
|
* High-resolution timer with callouts and timekeeping.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <px4_defines.h>
|
||||||
#include <px4_workqueue.h>
|
#include <px4_workqueue.h>
|
||||||
#include <drivers/drv_hrt.h>
|
#include <drivers/drv_hrt.h>
|
||||||
#include <semaphore.h>
|
#include <semaphore.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
#include <dspal_time.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user