Wind River Support Network

HomeDefectsLIN1021-124
Acknowledged

LIN1021-124 : Windows SDK does not work with SDK_ARCHIVE_TYPE = "zip"

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

Description

h1. The SDK_ARCHIVE_TYPE = "zip" option does not create a working Windows SDK because the ZIP file does not correctly expand symlinks.

Workaround

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).

Steps to Reproduce

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.
Live chat
Online