Acknowledged
Created: May 17, 2021
Updated: Jun 9, 2021
Found In Version: 10.21.20.1
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Build & Config
h1. The SDK_ARCHIVE_TYPE = "zip" option does not create a working Windows SDK because the ZIP file does not correctly expand symlinks.
Make Default Windows SDK
$ SDKMACHINE=x86_64-mingw32 bitbake -c populate_sdk wrlinux-image-glibc-small
Convert the SDK from XZ to ZIP format (which converts symlinks to real files), using the respective SDK name
$ SDK=wrlinux-10.19.45.17-glibc-x86_64_mingw32-nxp_lx2xxx-wrlinux-image-glibc-small-sdk
$ mkdir temp-sdk
$ cd temp-sdk
$ cp ../tmp-glibc/deploy/sdk/$SDK.tar.xz .
$ unxz $SDK.tar.xz
$ tar -xf $SDK.tar
$ rm $SDK.tar
$ zip -9 -r -q ../$SDK.zip *
NOTE: to unzip, use a Windows application that supports long path names (e.g. 7-Zip, but not WinZip).
1. Create project
./setup.sh --machines=nxp-s32g2xx --layers=meta-mingw --dl-layers
2. Update local.conf and create sdk
....
DISTRO ??= "wrlinux"
EXTRA_IMAGE_FEATURES += " eclipse-debug tools-debug tools-profile"
IMAGE_INSTALL_append += " lib32-glibc"
SDKMACHINE = "x86_64-mingw32"
SDK_ARCHIVE_TYPE = "zip"
$bitbake wrlinux-image-std -c populate_sdk
3. Extract sdk on windows host and build apps.