Drop all duplicate newlines. No functional change.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
*/
int fw_parse_script(char *fname, struct env_opts *opts);
-
/**
* fw_env_open() - read enviroment from flash into RAM cache
*
*/
int fw_env_close(struct env_opts *opts);
-
/**
* fw_env_version - return the current version of the library
*
#define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)
-
#ifdef ENV_IS_EMBEDDED
# include <env_internal.h>
extern unsigned int env_size;
fprintf(fout, "\033[1;%dm", col + 30);
}
-
/**
* value_add() - Add a new value to our list of things to grep for
*
#endif
#endif /* alloca not defined. */
-
#include "serial.h"
#include "error.h"
#include "remote.h"
? (REGISTER_BYTES * 2 + 32) \
: 400)
-
/* This variable sets the number of bytes to be written to the target
in a single packet. Normally PBUFSIZ is satisfactory, but some
targets need smaller values (perhaps because the receiving end
* for ex. default_image.c, fit_image.c
*/
-
void pbl_load_uboot(int fd, struct image_tool_params *mparams);
int zynqmpbif_copy_image(int fd, struct image_tool_params *mparams);
int imx8image_copy_image(int fd, struct image_tool_params *mparams);
return getPtr;
} /* ExtractDecimal */
-
static void ExtractNumber (uint32_t* value, char* getPtr)
{
bool neg = false;
if (neg) *value = -(*value);
} /* ExtractNumber */
-
static uint8_t* ExtractWord(uint16_t* value, uint8_t* buffer)
{
uint16_t x;
return buffer;
} /* ExtractWord */
-
static uint8_t* ExtractLong(uint32_t* value, uint8_t* buffer)
{
uint32_t x;
return buffer;
} /* ExtractLong */
-
static uint8_t* ExtractBlock(uint16_t count, uint8_t* data, uint8_t* buffer)
{
while (count--) *data++ = *buffer++;
return buffer;
} /* ExtractBlock */
-
static char* WriteHex(char* pa, uint8_t value, uint16_t* pCheckSum)
{
uint16_t temp;
return pa;
}
-
static char* BuildSRecord(char* pa, uint16_t sType, uint32_t addr,
const uint8_t* data, int nCount)
{
return pa;
}
-
static void ConvertELF(char* fileName, uint32_t loadOffset)
{
FILE* file;
char srecLine[128];
char *hdr_name;
-
/* open file */
if ((file = fopen(fileName,"rb")) == NULL) {
fprintf (stderr, "Can't open %s: %s\n", fileName, strerror(errno));
fclose(file);
} /* ConvertELF */
-
/*************************************************************************
| MAIN
|*************************************************************************/
* Peng Fan <peng.fan@nxp.com>
*/
-
#include "imagetool.h"
#include <image.h>
#include "imximage.h"
return dcd_len;
}
-
static int imximage_check_image_types(uint8_t type)
{
if (type == IH_TYPE_IMXIMAGE)
return pad_len;
}
-
/*
* imximage parameters
*/
return 0;
}
-
static int kwb_dump_fuse_cmds_38x(FILE *out, struct secure_hdr_v1 *sec_hdr)
{
struct hash_v1 kak_pub_hash;
return ret;
}
-
static int sb_build_tree_from_img(struct sb_image_ctx *ictx)
{
long filesize;