Cherry-pick u-boot-fw-utils fixes from Krogoth to Morty
Created by: manoj23
Hi @sbabic,
This PR cherry-picks fixes from Krogoth to make u-boot-fw-utils compiles on Morty.
It allows to fix this compilation error:
| /home/manoj/fsl-community-bsp/build/tmp/sysroots/nitrogen6x/usr/lib/libubootenv.a(fw_env.o): In function `getenvsize':
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:131: undefined reference to `common_args'
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:131: undefined reference to `common_args'
| /home/manoj/fsl-community-bsp/build/tmp/sysroots/nitrogen6x/usr/lib/libubootenv.a(fw_env.o): In function `env_aes_cbc_crypt':
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:968: undefined reference to `common_args'
| /home/manoj/fsl-community-bsp/build/tmp/sysroots/nitrogen6x/usr/lib/libubootenv.a(fw_env.o): In function `fw_getenv':
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:161: undefined reference to `common_args'
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:161: undefined reference to `common_args'
| /home/manoj/fsl-community-bsp/build/tmp/sysroots/nitrogen6x/usr/lib/libubootenv.a(fw_env.o):/usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:187: more undefined references to `common_args' follow
| /home/manoj/fsl-community-bsp/build/tmp/sysroots/nitrogen6x/usr/lib/libubootenv.a(fw_env.o): In function `fw_printenv':
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:260: undefined reference to `printenv_args'
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:260: undefined reference to `printenv_args'
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:290: undefined reference to `common_args'
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:290: undefined reference to `common_args'
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:246: undefined reference to `common_args'
| /usr/src/debug/u-boot-fw-utils/v2016.03+gitAUTOINC+df61a74e68-r0/git/tools/env/fw_env.c:246: undefined reference to `common_args'
| collect2: error: ld returned 1 exit status
Georges