diff --git a/mk/board_native.mk b/mk/board_native.mk index a97fe23fcd..a71e8660b1 100644 --- a/mk/board_native.mk +++ b/mk/board_native.mk @@ -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 # diff --git a/mk/board_qflight.mk b/mk/board_qflight.mk index 3209c10f50..63757bee05 100644 --- a/mk/board_qflight.mk +++ b/mk/board_qflight.mk @@ -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 diff --git a/mk/board_qurt.mk b/mk/board_qurt.mk index 8d374d15f8..f41f3eb778 100644 --- a/mk/board_qurt.mk +++ b/mk/board_qurt.mk @@ -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) diff --git a/mk/px4_targets.mk b/mk/px4_targets.mk index e3fd01a34e..9ad07249f1 100644 --- a/mk/px4_targets.mk +++ b/mk/px4_targets.mk @@ -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