]> Git Repo - J-u-boot.git/commit
tools: kwbimage: Fix compilation without CONFIG_SYS_U_BOOT_OFFS
authorPali Rohár <[email protected]>
Fri, 23 Jul 2021 09:13:55 +0000 (11:13 +0200)
committerStefan Roese <[email protected]>
Sat, 31 Jul 2021 07:49:31 +0000 (09:49 +0200)
commit8ab9c6be690e037589a7f0305ce76b3907f9c295
tree62335d5b990dc2862df3a0c21596eda8cc4ae558
parent15f7e0dc01d8a851fb1bfbf0e47eab5b67ed26b3
tools: kwbimage: Fix compilation without CONFIG_SYS_U_BOOT_OFFS

The CONFIG_SYS_U_BOOT_OFFS option may be defined as empty string.
In this case it causes compilation error:

    tools/kwbimage.c: In function ‘image_headersz_v1’:
    tools/kwbimage.c:1002:39: error: expected expression before ‘)’ token
      if (headersz > CONFIG_SYS_U_BOOT_OFFS) {
                                           ^
    tools/kwbimage.c:1006:41: error: expected expression before ‘)’ token
        (int)headersz, CONFIG_SYS_U_BOOT_OFFS);
                                             ^
    tools/kwbimage.c:1011:35: error: expected expression before ‘;’ token
      headersz = CONFIG_SYS_U_BOOT_OFFS;
                                       ^
    make[1]: *** [scripts/Makefile.host:112: tools/kwbimage.o] Error 1
    make: *** [Makefile:1822: tools] Error 2

Check whether the value of CONFIG_SYS_U_BOOT_OFFS is really set.

Signed-off-by: Pali Rohár <[email protected]>
Reviewed-by: Marek Behún <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Reviewed-by: Chris Packham <[email protected]>
Tested-by: Chris Packham <[email protected]>
tools/Makefile
This page took 0.033677 seconds and 4 git commands to generate.