<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 16, 2019, 3:37 AM  <<a href="mailto:changqing.li@windriver.com">changqing.li@windriver.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Changqing Li <<a href="mailto:changqing.li@windriver.com" target="_blank" rel="noreferrer">changqing.li@windriver.com</a>><br>
<br>
Current sdk type is tar.xz, but for mingw sdk, since we<br>
have symlink under the sdk folder, 7zip which used to<br>
extract tar.xz cannot handle it, refer 7zip upstream bug:<br>
<a href="https://sourceforge.net/p/sevenzip/discussion/45797/thread/c71d6b96/" rel="noreferrer noreferrer" target="_blank">https://sourceforge.net/p/sevenzip/discussion/45797/thread/c71d6b96/</a><br>
so change to .zip type<br>
<br>
Also tried to use option --dereference of tar which use means:<br>
"follow symlinks; archive and dump the files they point to"<br>
with this option, when archive it will deal with symlink to hard link,<br>
but windows not support hard link, so drop this solution,<br>
and use .zip for windows.<br>
<br>
Signed-off-by: Changqing Li <<a href="mailto:changqing.li@windriver.com" target="_blank" rel="noreferrer">changqing.li@windriver.com</a>><br>
---<br>
 conf/machine-sdk/include/mingw32-common.inc | 5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/conf/machine-sdk/include/mingw32-common.inc b/conf/machine-sdk/include/mingw32-common.inc<br>
index 9011ded..dbad50a 100644<br>
--- a/conf/machine-sdk/include/mingw32-common.inc<br>
+++ b/conf/machine-sdk/include/mingw32-common.inc<br>
@@ -46,3 +46,8 @@ GCCPIE_mingw32 = ""<br>
 # wine and wineserver are required to test MinGW SDKs<br>
 HOSTTOOLS += "${@'wine wineserver' if (bb.utils.contains_any('IMAGE_CLASSES', 'testsdk', True, False, d) or any(x in (d.getVar("BBINCLUDED") or "") for x in ["testsdk.bbclass"])) else ''}"<br>
<br>
+# mingw sdk use .zip type<br>
+SDK_TAR_TYPE = "zip"<br>
+SDK_TAR_DEPENDS = "zip-native"<br>
+SDK_TAR_CMD ?= "zip -r  ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_TAR_TYPE} ."<br>
+<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You will also need to update the QA tests, since right now they expecting a tar file (lib/oeqa/sdkmingw/testsdk.py)</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
--</blockquote></div></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2.7.4<br>
<br>
-- <br>
_______________________________________________<br>
yocto mailing list<br>
<a href="mailto:yocto@yoctoproject.org" target="_blank" rel="noreferrer">yocto@yoctoproject.org</a><br>
<a href="https://lists.yoctoproject.org/listinfo/yocto" rel="noreferrer noreferrer" target="_blank">https://lists.yoctoproject.org/listinfo/yocto</a><br>
</blockquote></div></div></div>