Commit f62ea0c4 authored by Blaž Hrastnik's avatar Blaž Hrastnik Committed by David Brown
Browse files

bootutil *should not* import assert.h

bootutil already handles ASSERT definition, allowing us to override it
with a custom implementation. Importing assert.h would pull in stdio.h
and a whole bunch of other stuff by TI compiler into the final
firmware.

Signed-off-by: default avatarBlaž Hrastnik <blaz@mxxn.io>
parent 453231ca
Loading
Loading
Loading
Loading
+0 −1
Changes for boot/bootutil/src/bootutil_misc.c: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@
 * under the License.
 */

#include <assert.h>
#include <string.h>
#include <inttypes.h>
#include <stddef.h>
+1 −0
Changes for boot/bootutil/src/bootutil_priv.h: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -49,6 +49,7 @@ extern "C" {
#ifdef MCUBOOT_HAVE_ASSERT_H
#include "mcuboot_config/mcuboot_assert.h"
#else
#include <assert.h>
#define ASSERT assert
#endif

+0 −1
Changes for boot/bootutil/src/encrypted.c: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -8,7 +8,6 @@
#include "mcuboot_config/mcuboot_config.h"

#if defined(MCUBOOT_ENC_IMAGES)
#include <assert.h>
#include <stddef.h>
#include <inttypes.h>
#include <string.h>
+0 −1
Changes for boot/bootutil/src/loader.c: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -30,7 +30,6 @@
 * this file should only be called while the boot loader is running.
 */

#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
#include <inttypes.h>
+0 −1
Changes for boot/bootutil/src/swap_misc.c: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@
 * limitations under the License.
 */

#include <assert.h>
#include <stddef.h>
#include <stdbool.h>
#include <inttypes.h>
Loading