projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spi: Kconfig: Drop redundant CF_SPI definition
[oweals/u-boot.git]
/
tools
/
ifwitool.c
diff --git
a/tools/ifwitool.c
b/tools/ifwitool.c
index 2e020a82824fd9fd6cafb4441a5ebeee2cdf6815..b2b06cc9219b7a312071519e501f246bfb79d19f 100644
(file)
--- a/
tools/ifwitool.c
+++ b/
tools/ifwitool.c
@@
-8,13
+8,13
@@
#include <assert.h>
#include <stdbool.h>
#include <getopt.h>
#include <assert.h>
#include <stdbool.h>
#include <getopt.h>
+#include "imagetool.h"
#include "os_support.h"
#include "os_support.h"
+#ifndef __packed
#define __packed __attribute__((packed))
#define __packed __attribute__((packed))
+#endif
#define KiB 1024
#define KiB 1024
-#define ALIGN(x, a) __ALIGN_MASK((x), (typeof(x))(a) - 1)
-#define __ALIGN_MASK(x, mask) (((x) + (mask)) & ~(mask))
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
/*
* min()/max()/clamp() macros that also do
/*
* min()/max()/clamp() macros that also do