Well almost compiled. I have hopefully one last error to solve before it’ll build. At the bottom I’ve copied in the error log when it tries to build the sdimag. Taking a look the following snippet stands out:
Error Log
DEBUG: Executing python function prepare_excluded_directories
DEBUG: 'IMAGE_ROOTFS_EXCLUDE_PATH' is set but 'respect_exclude_path' variable flag is 0 for this image type, so ignoring it
DEBUG: Python function prepare_excluded_directories finished
DEBUG: Executing python function set_image_size
DEBUG: 61648.000000 = 61648 * 1.000000
DEBUG: 221184.000000 = max(61648.000000, 221184)[221184.000000] + 1
DEBUG: 221184.000000 = int(221184.000000)
DEBUG: 221184 = aligned(221184)
DEBUG: returning 221184
DEBUG: Python function set_image_size finished
DEBUG: Executing python function extend_recipe_sysroot
NOTE: Direct dependencies are ['/home/yocto/clearfog/build/../sources/poky/meta/recipes-core/glibc/ldconfig-native_2.12.1.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/cdrtools/cdrtools-native_3.01.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-connectivity/openssl/openssl_1.1.1b.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/opkg/opkg_0.4.0.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/dosfstools/dosfstools_4.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-kernel/dtc/dtc_1.4.7.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/meta-clearfog/recipes-kernel/linux/linux-yocto-clearfog_5.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-extended/parted/parted_3.2.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/makedevs/makedevs_1.0.1.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.32.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/qemu/qemuwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-support/bmap-tools/bmap-tools_3.5.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-kernel/kmod/kmod-native_git.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-core/glibc/cross-localedef-native_2.29.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/swig/swig_3.0.12.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/opkg-utils/opkg-utils_0.4.0.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-core/glibc/glibc_2.29.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-kernel/kmod/depmodwrapper-cross_1.0.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/btrfs-tools/btrfs-tools_4.20.1.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.44.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-extended/pigz/pigz_2.4.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-bsp/u-boot/u-boot_2019.01.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-extended/pbzip2/pbzip2_1.1.13.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/bison/bison_3.0.4.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/flex/flex_2.6.0.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/fdisk/gptfdisk_1.0.4.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-core/update-rc.d/update-rc.d_0.8.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs_1.44.5.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/dnf/dnf_4.1.0.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/rpm/rpm_4.14.2.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-extended/xz/xz_5.2.4.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-core/coreutils/coreutils_8.30.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-extended/bc/bc_1.07.1.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/python/python-native_2.7.16.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/syslinux/syslinux_6.04-pre2.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/prelink/prelink_git.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/gcc/gcc-cross_8.3.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/gcc/gcc-runtime_8.3.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-kernel/kern-tools/kern-tools-native_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/createrepo-c/createrepo-c_git.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-devtools/mtools/mtools_4.0.19.bb:do_populate_sysroot', 'virtual:native:/home/yocto/clearfog/build/../sources/poky/meta/recipes-support/lzop/lzop_1.04.bb:do_populate_sysroot', '/home/yocto/clearfog/build/../sources/poky/meta/recipes-core/meta/wic-tools.bb:do_populate_sysroot']
NOTE: Installed into sysroot: []
NOTE: Skipping as already exists in sysroot: ['ldconfig-native', 'cdrtools-native', 'openssl-native', 'opkg-native', 'squashfs-tools-native', 'dosfstools-native', 'dtc-native', 'linux-yocto-clearfog', 'parted-native', 'makedevs-native', 'binutils-cross-arm', 'qemuwrapper-cross', 'bmap-tools-native', 'kmod-native', 'cross-localedef-native', 'swig-native', 'opkg-utils-native', 'glibc', 'depmodwrapper-cross', 'btrfs-tools-native', 'mklibs-native', 'pigz-native', 'quilt-native', 'u-boot', 'pbzip2-native', 'bison-native', 'flex-native', 'gptfdisk-native', 'update-rc.d-native', 'e2fsprogs-native', 'dnf-native', 'rpm-native', 'xz-native', 'coreutils-native', 'bc-native', 'pseudo-native', 'python-native', 'syslinux-native', 'prelink-native', 'gcc-cross-arm', 'gcc-runtime', 'kern-tools-native', 'createrepo-c-native', 'mtools-native', 'lzop-native', 'wic-tools', 'systemd-systemctl-native', 'shadow-native', 'autoconf-native', 'automake-native', 'libtool-native', 'pkgconfig-native', 'gnu-config-native', 'libsolv-native', 'libarchive-native', 'zlib-native', 'lz4-native', 'attr-native', 'lzo-native', 'debianutils-native', 'texinfo-dummy-native', 'util-linux-native', 'readline-native', 'ncurses-native', 'gettext-minimal-native', 'qemu-native', 'python3-native', 'python3-setuptools-native', 'python3-six-native', 'gtk-doc-native', 'libpcre-native', 'linux-libc-headers', 'acl-native', 'bzip2-native', 'm4-native', 'popt-native', 'cmake-native', 'ninja-native', 'librepo-native', 'python3-iniparse-native', 'libcomps-native', 'libdnf-native', 'dbus-native', 'perl-native', 'nss-native', 'file-native', 'elfutils-native', 'db-native', 'expat-native', 'gdbm-native', 'sqlite3-native', 'nasm-native', 'binutils-native', 'mpfr-native', 'gmp-native', 'libmpc-native', 'libgcc', 'curl-native', 'libxml2-native', 'glib-2.0-native', 'libffi-native', 'libtirpc-native', 'libnsl2-native', 'unzip-native', 're2c-native', 'gpgme-native', 'libcheck-native', 'gobject-introspection-native', 'libmodulemd-native', 'json-c-native', 'nspr-native', 'groff-native', 'meson-native', 'gettext-native', 'libassuan-native', 'libgpg-error-native', 'libyaml-native']
DEBUG: Python function extend_recipe_sysroot finished
DEBUG: Executing shell function do_image_sdimg
+ mkdir -p /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0
+ true
+ install -m 0644 /home/yocto/clearfog/build/tmp/deploy/images/clearfog/uboot.env /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/
++ basename /dev/mmcblk0
+ ondisk_dev=mmcblk0
+ wks=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/mender-sdimg.wks
+ rm -f /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/mender-sdimg.wks
+ '[' -n u-boot-clearfog.bin ']'
+ install -m 0644 /home/yocto/clearfog/build/tmp/deploy/images/clearfog/u-boot-clearfog.bin /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/
++ expr 1 % 2
+ '[' 1 -ne 0 ']'
++ expr 1 + 1
+ bootloader_sector=2
+ bootloader_file=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/u-boot-clearfog.bin-partial
+ dd if=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/u-boot-clearfog.bin of=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/u-boot-clearfog.bin-partial skip=1
1035+1 records in
1035+1 records out
530324 bytes (530 kB, 518 KiB) copied, 0.00638665 s, 83.0 MB/s
+++ expr 2 '*' 512
++ expr 1024 / 1024
+ bootloader_align_kb=1
++ stat -c %s /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/u-boot-clearfog.bin-partial
+ bootloader_size=530324
++ expr 1 '*' 1024 + 530324
+ bootloader_end=531348
+ '[' 531348 -gt 8388608 ']'
+ cat
+ true
+ '[' -n 8388608 ']'
++ expr 8388608 / 1024
+ boot_env_align_kb=8192
+ cat
++ expr 8388608 % 1024
++ true
+ '[' 0 -ne 0 ']'
++ expr 8388608 / 1024
+ alignment_kb=8192
+ '[' msdos = gpt ']'
+ part_type_params=
++ echo ' '
++ sed -r 's/(^\s*)|(\s*$)//g'
+ IMAGE_BOOT_FILES_STRIPPED=
+ '[' 16 -ne 0 ']'
+ mender_merge_bootfs_and_image_boot_files
+ W=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/bootfs.image_sdimg
+ rm -rf /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/bootfs.image_sdimg
+ cp -al /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/rootfs//uboot /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/bootfs.image_sdimg
+ image_boot_files=' '
+ cat
+ cat
+ '[' 0 -ne 0 ']'
+ cat
+ echo '### Contents of wks file ###'
### Contents of wks file ###
+ cat /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/mender-sdimg.wks
# embed bootloader
part --source rawcopy --sourceparams="file=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/u-boot-clearfog.bin-partial" --ondisk "mmcblk0" --align 1 --no-table
part --source rawcopy --sourceparams="file=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/uboot.env" --ondisk "mmcblk0" --align 8192 --no-table
part --source rootfs --rootfs-dir /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/bootfs.image_sdimg --ondisk "mmcblk0" --fstype=vfat --label boot --align 8192 --fixed-size 16 --active
part --source rawcopy --sourceparams="file=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-clearfog.ext4" --ondisk "mmcblk0" --align 8192 --fixed-size 221184k
part --source rawcopy --sourceparams="file=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-clearfog.ext4" --ondisk "mmcblk0" --align 8192 --fixed-size 221184k
part --source rawcopy --sourceparams="file=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-clearfog.dataimg" --ondisk "mmcblk0" --align 8192 --fixed-size 128 --mkfs-extraopts=''
bootloader --ptable msdos
+ echo '### End of contents of wks file ###'
### End of contents of wks file ###
+ outimgname=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-clearfog--20191015213400.sdimg
+ wicout=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-clearfog--20191015213400-sdimg
+ BUILDDIR=/home/yocto/clearfog/build
+ wic create /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/mender-sdimg.wks --vars /home/yocto/clearfog/build/tmp/sysroots/clearfog/imgdata/ -e core-image-base -o /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-clearfog--20191015213400-sdimg/
INFO: Creating image(s)...
WARNING: overhead-factor was specified, but size was not, so bitbake variables will be used for the size. In this case both IMAGE_OVERHEAD_FACTOR and --overhead-factor will be applied
ERROR: _exec_cmd: export PATH=/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/recipe-sysroot-native/sbin:/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/recipe-sysroot-native/usr/sbin:/home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/recipe-sysroot-native/usr/bin:$PATH;mcopy -i /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-clearfog--20191015213400-sdimg/tmp.wic.81r3k2n7/rootfs_boot.3.vfat -s /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/bootfs.image_sdimg/* ::/ returned '1' instead of 0
output: /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/bootfs.image_sdimg/*: No such file or directory
+ bb_exit_handler
+ ret=1
+ case $ret in
+ case $BASH_VERSION in
+ echo 'WARNING: /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/temp/run.do_image_sdimg.62730:1 exit 1 from '\''BUILDDIR="/home/yocto/clearfog/build" wic create "$wks" --vars "/home/yocto/clearfog/build/tmp/sysroots/clearfog/imgdata/" -e "core-image-base" -o "$wicout/"'\'''
WARNING: /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/temp/run.do_image_sdimg.62730:1 exit 1 from 'BUILDDIR="/home/yocto/clearfog/build" wic create "$wks" --vars "/home/yocto/clearfog/build/tmp/sysroots/clearfog/imgdata/" -e "core-image-base" -o "$wicout/"'
+ exit 1
ERROR: Function failed: do_image_sdimg (log file is located at /home/yocto/clearfog/build/tmp/work/clearfog-poky-linux-gnueabi/core-image-base/1.0-r0/temp/log.do_image_sdimg.62730)