]> Git Repo - J-u-boot.git/blobdiff - tools/imagetool.h
tools: kwbimage: Set BOOT_FROM by default to SPI
[J-u-boot.git] / tools / imagetool.h
index 8726792c8c0653679abbdac3ab340bbad798b4c5..e229a34ffc5793121fbf362596a7178dde5d108a 100644 (file)
@@ -67,6 +67,7 @@ struct image_tool_params {
        const char *outfile;    /* Output filename */
        const char *keydir;     /* Directory holding private keys */
        const char *keydest;    /* Destination .dtb for public key */
+       const char *keyfile;    /* Filename of private or public key */
        const char *comment;    /* Comment to add to signature node */
        int require_keys;       /* 1 to mark signing keys as 'required' */
        int file_size;          /* Total size of output file */
@@ -273,14 +274,14 @@ int rockchip_copy_image(int fd, struct image_tool_params *mparams);
 
 #define INIT_SECTION(name)  do {                                       \
                unsigned long name ## _len;                             \
-               char *__cat(pstart_, name) = getsectdata("__TEXT",      \
+               char *__cat(pstart_, name) = getsectdata("__DATA",      \
                        #name, &__cat(name, _len));                     \
                char *__cat(pstop_, name) = __cat(pstart_, name) +      \
                        __cat(name, _len);                              \
                __cat(__start_, name) = (void *)__cat(pstart_, name);   \
                __cat(__stop_, name) = (void *)__cat(pstop_, name);     \
        } while (0)
-#define SECTION(name)   __attribute__((section("__TEXT, " #name)))
+#define SECTION(name)   __attribute__((section("__DATA, " #name)))
 
 struct image_type_params **__start_image_type, **__stop_image_type;
 #else
This page took 0.023006 seconds and 4 git commands to generate.