mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +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:
parent
1abd61303f
commit
300932bde3
@ -510,9 +510,12 @@ function(px4_add_common_flags)
|
||||
endif()
|
||||
|
||||
if (${CMAKE_C_COMPILER_ID} STREQUAL "Clang")
|
||||
list(APPEND warnings
|
||||
-Wno-unused-const-variable
|
||||
)
|
||||
# QuRT 6.4.X compiler identifies as Clang but does not support this option
|
||||
if (NOT ${OS} STREQUAL "qurt")
|
||||
list(APPEND warnings
|
||||
-Wno-unused-const-variable
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
list(APPEND warnings
|
||||
-Werror=unused-but-set-variable
|
||||
|
||||
@ -41,6 +41,7 @@ set(config_module_list
|
||||
modules/systemlib/mixer
|
||||
modules/uORB
|
||||
modules/commander
|
||||
modules/controllib
|
||||
|
||||
#
|
||||
# Libraries
|
||||
@ -50,7 +51,7 @@ set(config_module_list
|
||||
lib/geo
|
||||
lib/geo_lookup
|
||||
lib/conversion
|
||||
modules/controllib
|
||||
lib/ecl
|
||||
|
||||
#
|
||||
# QuRT port
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
#define __STDC_FORMAT_MACROS
|
||||
#include <inttypes.h>
|
||||
|
||||
#include <time.h>
|
||||
#include <px4_time.h>
|
||||
#include <queue.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
@ -1 +1 @@
|
||||
Subproject commit 229f2f4d8471564f01fe8330e5de1554a9b7aeb6
|
||||
Subproject commit 95e91546f42e6d88d34a2bb29d0f428a8706c9e4
|
||||
@ -366,7 +366,7 @@ private:
|
||||
|
||||
|
||||
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.
|
||||
@ -1949,7 +1949,7 @@ Sensors::task_main_trampoline(int argc, char *argv[])
|
||||
|
||||
int
|
||||
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);
|
||||
|
||||
|
||||
@ -40,6 +40,7 @@
|
||||
|
||||
#include <px4_config.h>
|
||||
#include <px4_defines.h>
|
||||
#include <px4_posix.h>
|
||||
#include <stdint.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@ -37,10 +37,12 @@
|
||||
* High-resolution timer with callouts and timekeeping.
|
||||
*/
|
||||
|
||||
#include <px4_defines.h>
|
||||
#include <px4_workqueue.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
#include <semaphore.h>
|
||||
#include <time.h>
|
||||
#include <dspal_time.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user