Compilation error with Mender on IMX6ULL (rocko branch)

Hi everybody.
I’m trying to backport on Rocko the IMX6ULL support which has been added on meta-mender-community (meta-mender-community/meta-mender-toradex-nxp at dunfell · mendersoftware/meta-mender-community · GitHub) for the Dunfell branch.
I’ve already succeeded in backporting U-Boot 2020 from the Toradex Dunfell branch, but when I add the Mender recipe the build fails.
Here is the log

DEBUG: Executing shell function do_compile
NOTE: make -j 12 CROSS_COMPILE=arm-angstrom-linux-gnueabi- CC=arm-angstrom-linux-gnueabi-gcc  --sysroot=/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot V=1 HOSTCC=gcc  -isystem/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-O1 -C /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git O=/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/build colibri-imx6ull_defconfig
make: Entering directory '/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git'
make -C /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/build KBUILD_SRC=/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git \
-f /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/Makefile colibri-imx6ull_defconfig
make[1]: Entering directory '/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/build'
make -f /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/Makefile.build obj=scripts/basic
ln -fsn /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git source
/bin/sh /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/mkmakefile \
    /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git . 2020 07
  gcc  -isystem/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wp,-MD,scripts/basic/.fixdep.d -Iscripts/basic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -o scripts/basic/fixdep /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/basic/fixdep.c   
  GEN     ./Makefile
rm -f .tmp_quiet_recordmcount
make -f /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/Makefile.build obj=scripts/kconfig colibri-imx6ull_defconfig
  gcc  -isystem/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wp,-MD,scripts/kconfig/.conf.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11 -c -o scripts/kconfig/conf.o /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/kconfig/conf.c
  bison -oscripts/kconfig/zconf.tab.c -t -l /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/kconfig/zconf.y
  flex -oscripts/kconfig/zconf.lex.c -L /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/kconfig/zconf.l
  gcc  -isystem/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-O1 -Wp,-MD,scripts/kconfig/.zconf.tab.o.d -Iscripts/kconfig -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -std=gnu11  -I/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/kconfig -c -o scripts/kconfig/zconf.tab.o scripts/kconfig/zconf.tab.c
  gcc  -isystem/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-O1   -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o   
scripts/kconfig/conf  --defconfig=arch/../configs/colibri-imx6ull_defconfig Kconfig
#
# configuration written to .config
#
make[1]: Leaving directory '/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/build'
make: Leaving directory '/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git'
NOTE: make -j 12 CROSS_COMPILE=arm-angstrom-linux-gnueabi- CC=arm-angstrom-linux-gnueabi-gcc  --sysroot=/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot V=1 HOSTCC=gcc  -isystem/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -L/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/lib -Wl,-O1 -C /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git O=/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/build u-boot-nand.imx
make: Entering directory '/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git'
make -C /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/build KBUILD_SRC=/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git \
-f /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/Makefile u-boot-nand.imx
make[1]: Entering directory '/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/build'
make -f /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/Makefile syncconfig
make -f /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/Makefile.build obj=scripts/basic
ln -fsn /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git source
rm -f .tmp_quiet_recordmcount
/bin/sh /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/mkmakefile \
    /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git . 2020 07
  GEN     ./Makefile
make -f /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/Makefile.build obj=scripts/kconfig syncconfig
scripts/kconfig/conf  --syncconfig Kconfig
make -f /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/Makefile.autoconf || \
	{ rm -f include/config/auto.conf; false; }
mkdir -p include/asm
if [ -d /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/arch/arm/mach-mx6/include/mach ]; then	\
	dest=arch/arm/mach-mx6/include/mach;			\
else									\
	dest=arch/arm/include/asm/arch-mx6;	\
fi;									\
ln -fsn /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/$dest include/asm/arch
set -e; mkdir -p include/; 	(echo "/* Automatically generated - do not edit */"; for i in $(echo "IMX_CONFIG=board/toradex/colibri-imx6ull/imximage.cfg,MX6ULL,IMX_NAND" | sed 's/,/ /g'); do echo \#define CONFIG_$i | sed '/=/ {s/=/	/;q; } ; { s/$/	1/; }'; done; echo \#define CONFIG_BOARDDIR board/toradex/colibri-imx6ull; echo \#include \<config_defaults.h\>; echo \#include \<config_uncmd_spl.h\>; echo \#include \<configs/"colibri-imx6ull".h\>; echo \#include \<asm/config.h\>; echo \#include \<linux/kconfig.h\>; echo \#include \<config_fallbacks.h\>; echo \#include \<config_mender.h\>;) < /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/Makefile.autoconf > include/config.h.tmp; if [ -r include/config.h ] && cmp -s include/config.h include/config.h.tmp; then rm -f include/config.h.tmp; else : '  UPD     include/config.h'; mv -f include/config.h.tmp include/config.h; fi
  arm-angstrom-linux-gnueabi-gcc  --sysroot=/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 -fno-stack-protector -fno-delete-null-pointer-checks   -g -fstack-usage -Wno-format-nonliteral  -Wno-unused-but-set-variable -Werror=date-time  -D__KERNEL__ -D__UBOOT__   -D__ARM__ -Wa,-mimplicit-it=always  -mthumb -mthumb-interwork  -mabi=aapcs-linux  -mword-relocations  -fno-pic  -mno-unaligned-access  -ffunction-sections -fdata-sections -fno-common -ffixed-r9  -msoft-float    -pipe -Iinclude  -I/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include -I/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/arch/arm/include -include /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include/linux/kconfig.h  -nostdinc -isystem /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/../../lib/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/7.3.0/include  -DDO_DEPS_ONLY -dM /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include/common.h > u-boot.cfg.tmp && { grep 'define CONFIG_' u-boot.cfg.tmp > u-boot.cfg; rm u-boot.cfg.tmp; } || { rm u-boot.cfg.tmp; false; }
  arm-angstrom-linux-gnueabi-gcc  --sysroot=/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot -x c -DDO_DEPS_ONLY -M -MP -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 -fno-stack-protector -fno-delete-null-pointer-checks   -g -fstack-usage -Wno-format-nonliteral  -Wno-unused-but-set-variable -Werror=date-time  -D__KERNEL__ -D__UBOOT__   -D__ARM__ -Wa,-mimplicit-it=always  -mthumb -mthumb-interwork  -mabi=aapcs-linux  -mword-relocations  -fno-pic  -mno-unaligned-access  -ffunction-sections -fdata-sections -fno-common -ffixed-r9  -msoft-float    -pipe -Iinclude  -I/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include -I/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/arch/arm/include -include /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include/linux/kconfig.h  -nostdinc -isystem /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/recipe-sysroot-native/usr/bin/arm-angstrom-linux-gnueabi/../../lib/arm-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/7.3.0/include -MQ include/config/auto.conf /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include/common.h > include/autoconf.mk.dep || { rm include/autoconf.mk.dep; false; }
In file included from include/config.h:12:0,
                 from /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include/common.h:16:
/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include/config_mender.h:28:3: error: #error CONFIG_ENV_IS_IN_MMC, CONFIG_ENV_IS_IN_NAND or CONFIG_ENV_IS_IN_FLASH is required for Mender to work
 # error CONFIG_ENV_IS_IN_MMC, CONFIG_ENV_IS_IN_NAND or CONFIG_ENV_IS_IN_FLASH is required for Mender to work
   ^~~~~
In file included from include/config.h:12:0,
                 from /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include/common.h:16:
/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/include/config_mender.h:28:3: error: #error CONFIG_ENV_IS_IN_MMC, CONFIG_ENV_IS_IN_NAND or CONFIG_ENV_IS_IN_FLASH is required for Mender to work
 # error CONFIG_ENV_IS_IN_MMC, CONFIG_ENV_IS_IN_NAND or CONFIG_ENV_IS_IN_FLASH is required for Mender to work
   ^~~~~
/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/Makefile.autoconf:48: recipe for target 'include/autoconf.mk.dep' failed
make[2]: *** [include/autoconf.mk.dep] Error 1
make[2]: *** Waiting for unfinished jobs....
/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git/scripts/Makefile.autoconf:77: recipe for target 'u-boot.cfg' failed
make[2]: *** [u-boot.cfg] Error 1
make[1]: *** No rule to make target 'u-boot-nand.imx'.  Stop.
make[1]: Leaving directory '/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/build'
Makefile:167: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/git'
ERROR: oe_runmake failed
WARNING: /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/temp/run.do_compile.20521:1 exit 1 from 'exit 1'
ERROR: Function failed: do_compile (log file is located at /export/home/oedev/boxio/toradex/dev/iervasi/colibri-imx6ull/build-boxio-colibri-imx6ull/tmp-glibc/work/colibri_imx6ull-angstrom-linux-gnueabi/u-boot-toradex/1_2020.07+gitAUTOINC+3f1b0662d1-r0/temp/log.do_compile.20521)

Is someone able to understand what’s wrong? It seems that something is missing from U-Boot sources, but if I build the same sources on Dunfell branch this error doesn’t popup.

Thanks
Matteo Iervasi

Hi @miervasi,

I suspect this is going to require a full integration setup. I don’t believe the rocko branch has the U-Boot automatic patch and such. Rocko is quite old and has not been kept up to date.

At a minimum it seems you are going to have to patch the U-Boot sources and enable CONFIG_ENV_IS_IN_NAND. I’m not sure why that would not be enabled by default but it’s possible that the upstream u-boot branch you are using does not have all the configs needed for running the Toradex colibri-imx6ull board.

Drew

Thanks for the answer Drew, it sounds rather complicated and time consuming xD
It’s strange though as I’m using the same recipe that’s used in the meta-toradex-nxp layer, which already provides recipes for the u-boot-toradex fork

Is it possible for you to move to a newer Yocto branch?

The original plan was to integrate Mender, because the rest of the image contains quite a lot of custom software that we still need to migrate to Dunfell.
Only after having tested everything and being sure it works well under Dunfell, we would use Mender to update the image.

Your not alone in this, I have found myself on a couple of projects needing to back-port newer mender versions to work with older yocto projects as the amount of work to upgrade and test a newer Yocto branch is much higher than back-porting mender in a given release window. (although it requires a certain level of knowledge on how mender works).

Unfortunately I’m new to Mender so I only have a very high-level view of how it works from the doc xD

I’ve just found out that the U-Boot patches in the Rocko branch of meta-mender don’t even contain any reference to “CONFIG_ENV_IS_IN_UBI”, while the ones in the Dunfell branch do mention it. Is the UBI support not available with the Mender version that come with Rocko?

I think there was some support for UBI from the Mender side in Rocko. CONFIG_ENV_IS_IN_UBI is a U-Boot define though so you will to inspect the u-boot sources that are used in the Toradex layers for that branch.