From 1e57778584c59e02afee00f4840a25fd00505997 Mon Sep 17 00:00:00 2001 From: Gilles DOFFE Date: Thu, 5 Nov 2020 21:46:41 +0100 Subject: [PATCH] pkg/paho-mqtt: fix patches for STM32MP157Cxx line As the STM32MP157Cxx has no CMSIS header repositories, SUCCESS enum is not defined. Thus STM32MP157Cxx line must be specifically handled as the STM32F030x4 line to create missing enums. Signed-off-by: Gilles DOFFE --- .../0001-MQTTClient-C-skip-SUCCESS-enum-on-STM32-cpus.patch | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/paho-mqtt/patches/0001-MQTTClient-C-skip-SUCCESS-enum-on-STM32-cpus.patch b/pkg/paho-mqtt/patches/0001-MQTTClient-C-skip-SUCCESS-enum-on-STM32-cpus.patch index 38145a29a7..107ff62050 100644 --- a/pkg/paho-mqtt/patches/0001-MQTTClient-C-skip-SUCCESS-enum-on-STM32-cpus.patch +++ b/pkg/paho-mqtt/patches/0001-MQTTClient-C-skip-SUCCESS-enum-on-STM32-cpus.patch @@ -11,11 +11,12 @@ diff --git a/MQTTClient-C/src/MQTTClient.h b/MQTTClient-C/src/MQTTClient.h index b612341..4f1dfba 100755 --- a/MQTTClient-C/src/MQTTClient.h +++ b/MQTTClient-C/src/MQTTClient.h -@@ -54,7 +54,13 @@ +@@ -54,7 +54,14 @@ enum QoS { QOS0, QOS1, QOS2, SUBFAIL=0x80 }; /* all failure return codes must be negative */ -+#if !defined(CPU_LINE_STM32F030x4) && defined(CPU_STM32) ++#if !defined(CPU_LINE_STM32F030x4) && !defined(CPU_LINE_STM32MP157Cxx) && \ ++ defined(CPU_STM32) +/* the SUCCESS enum is defined for all stm32. + Since it contains the same value, we just skip its definition here for them. */ +enum returnCode { BUFFER_OVERFLOW = -2, FAILURE = -1};