mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
mk: define missing headers for px4/qurt/sitl
This commit is contained in:
parent
40338c3272
commit
a014d0c790
@ -5,6 +5,7 @@ include $(MK_DIR)/find_tools.mk
|
||||
# Hardcoded libraries/AP_Common/missing/cmath defines in "make" to retain the current behavior
|
||||
EXTRAFLAGS += -DHAVE_CMATH_ISFINITE -DNEED_CMATH_ISFINITE_STD_NAMESPACE
|
||||
|
||||
EXTRAFLAGS += -DHAVE_ENDIAN_H -DHAVE_BYTESWAP_H
|
||||
#
|
||||
# Tool options
|
||||
#
|
||||
|
@ -37,7 +37,7 @@ GENERATE_TARGETS = $(GENERATE_DSP_C) $(GENERATE_ARM_C) $(QFLIGHT_BUILD)/qflight_
|
||||
LIBOBJS += $(QFLIGHT_BUILD)/qflight_stub.o
|
||||
|
||||
# Add missing parts from libc and libstdc++
|
||||
MISSING_TOOLCHAIN_FLAGS += -DHAVE_STD_NULLPTR_T=0 -DHAVE_STD_MOVE=0 -DHAVE_STD_REMOVE_REFERENCE=0 -DHAVE_TYPE_TRAITS_H=0 -DHAVE_BYTESWAP_H=0
|
||||
MISSING_TOOLCHAIN_FLAGS += -DHAVE_STD_NULLPTR_T=0 -DHAVE_STD_MOVE=0 -DHAVE_STD_REMOVE_REFERENCE=0 -DHAVE_TYPE_TRAITS_H=0 -DHAVE_BYTESWAP_H=0 -DHAVE_ENDIAN_H=1
|
||||
|
||||
# Hardcoded libraries/AP_Common/missing/cmath defines in "make" to retain the current behavior
|
||||
EXTRAFLAGS += -DHAVE_CMATH_ISFINITE -DNEED_CMATH_ISFINITE_STD_NAMESPACE
|
||||
|
@ -33,7 +33,7 @@ OPT = -O3
|
||||
include $(MK_DIR)/find_tools.mk
|
||||
|
||||
# Hardcoded libraries/AP_Common/missing/cmath defines in "make" to retain the current behavior
|
||||
EXTRAFLAGS += -DHAVE_CMATH_ISFINITE -DNEED_CMATH_ISFINITE_STD_NAMESPACE
|
||||
EXTRAFLAGS += -DHAVE_CMATH_ISFINITE -DNEED_CMATH_ISFINITE_STD_NAMESPACE -DHAVE_BYTESWAP_H=1 -DHAVE_ENDIAN_H=1
|
||||
|
||||
DEFINES += -DSKETCH=\"$(SKETCH)\" -DSKETCHNAME="\"$(SKETCH)\"" -DSKETCHBOOK="\"$(SKETCHBOOK)\"" -DAPM_BUILD_DIRECTORY=APM_BUILD_$(SKETCH)
|
||||
DEFINES += $(EXTRAFLAGS)
|
||||
|
@ -42,6 +42,8 @@ EXTRAFLAGS += -DUAVCAN=1
|
||||
|
||||
# Add missing parts from libc and libstdc++
|
||||
EXTRAFLAGS += -DHAVE_STD_NULLPTR_T=0
|
||||
EXTRAFLAGS += -DHAVE_ENDIAN_H=0
|
||||
EXTRAFLAGS += -DHAVE_BYTESWAP_H=0
|
||||
|
||||
EXTRAFLAGS += -I$(BUILDROOT)/libraries/GCS_MAVLink/include/mavlink
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user