Packages referencing variables defined in setup_toolchain such as CC, CXX,
AR, CFLAGS, LDFLAGS, HOST_CC etc. etc. must only reference these variables in
pre_build()/pre_configure()/pre_make() etc. functions, as the variables will not
be available when the package is sourced, but will be available after the call
to setup_toolchain() from scripts/build.
Mtools is used to format and copy files to vfat partition.
Populatefs is used to copy files to ext4 partition.
Tested on imx6 with u-boot, Generic with BIOS and EFI boot.
To avoid messing around with ext4 partition we could also provide "empty" disk image file. Both partitions would be already formatted and storage partition would already contain resize file. Then mkimage script would only copy kernel, system, bootloader files and install bootloader.
But current approach is more flexible for future use.
This reverts commit 2c7735709d.
it did not work. thanks to t-nelson for testing it..
1. Zotac ZBOX PI320 pico wants bootia32.efi not bootx32.efi
2. even with bootia32.efi (from syslinux) it doesnt boot. I suspect it requires pure 32bit kernel. no mixed mode ?
thank you zotac for creating such a mess.. damn it's almost y2k15