All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-mingw][PATCH] mingw32-common: change mingw sdk to .zip type
@ 2019-01-16  9:36 changqing.li
  2019-01-16 13:12 ` Joshua Watt
  0 siblings, 1 reply; 9+ messages in thread
From: changqing.li @ 2019-01-16  9:36 UTC (permalink / raw)
  To: yocto

From: Changqing Li <changqing.li@windriver.com>

Current sdk type is tar.xz, but for mingw sdk, since we
have symlink under the sdk folder, 7zip which used to
extract tar.xz cannot handle it, refer 7zip upstream bug:
https://sourceforge.net/p/sevenzip/discussion/45797/thread/c71d6b96/
so change to .zip type

Also tried to use option --dereference of tar which use means:
"follow symlinks; archive and dump the files they point to"
with this option, when archive it will deal with symlink to hard link,
but windows not support hard link, so drop this solution,
and use .zip for windows.

Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
 conf/machine-sdk/include/mingw32-common.inc | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/conf/machine-sdk/include/mingw32-common.inc b/conf/machine-sdk/include/mingw32-common.inc
index 9011ded..dbad50a 100644
--- a/conf/machine-sdk/include/mingw32-common.inc
+++ b/conf/machine-sdk/include/mingw32-common.inc
@@ -46,3 +46,8 @@ GCCPIE_mingw32 = ""
 # wine and wineserver are required to test MinGW SDKs
 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 ''}"
 
+# mingw sdk use .zip type
+SDK_TAR_TYPE = "zip"
+SDK_TAR_DEPENDS = "zip-native"
+SDK_TAR_CMD ?= "zip -r  ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.${SDK_TAR_TYPE} ."
+
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-05-05  7:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-16  9:36 [meta-mingw][PATCH] mingw32-common: change mingw sdk to .zip type changqing.li
2019-01-16 13:12 ` Joshua Watt
2019-01-16 13:17   ` Burton, Ross
2019-01-17  7:49     ` Changqing Li
2019-01-17  9:49     ` [meta-mingw][PATCH V2] testsdk: enhance extract sdk part changqing.li
2019-01-17  9:49       ` changqing.li
2019-01-21 14:47         ` Joshua Watt
2019-01-22  1:28           ` Changqing Li
2019-05-05  7:05           ` Changqing Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.