<html><head><style>p{margin-top:0px;margin-bottom:0px;}</style></head><body><div style="font-size:10pt; font-family:Gulim;"><p>I want to split the package that belongs to host and target in one recipes. </p><p> </p><p>Thanks.</p><p> </p><p style="font-size:10pt;font-family:sans-serif;padding:0 0 0 10pt"><span>-----Original Message-----</span><br><b>From:</b> "Paul Eggleton"<paul.eggleton@linux.intel.com> <br><b>To:</b> "윤영석"<earwigz@naver.com>; <br><b>Cc:</b> <yocto@yoctoproject.org>; <br><b>Sent:</b> 2016-11-29 (í™”) 13:15:12<br><b>Subject:</b> Re: [yocto] What criteria are categorized? (tmp/work/...)<br> </p>On Tue, 29 Nov 2016 11:47:40 ìœ¤ì˜ì„ wrote:<br>> After poky the build, i look at the tmp/work folder.<br>> I can see these folders.<br>> All-poky-linux / i586-poky-linux / qemux86-poky-linux / x86_64-linux /<br>> <br>> What is the classification of each folder?<br><br>That directory level corresponds to MULTIMACH_TARGET_SYS, whose value is<br>"${PACKAGE_ARCH}${TARGET_VENDOR}-${TARGET_OS}". The first variable<br>PACKAGE_ARCH has a default value of "${TUNE_PKGARCH}" which makes a recipe<br>architecture-specific by default. PACKAGE_ARCH is often set in the recipe<br>in two common cases:<br><br>1) Recipes which are packaging something that is not architecture-specific -<br>these should "inherit allarch" which will automatically set<br>PACKAGE_ARCH = "all". Note that in this situation you should use<br>"inherit allarch" rather than setting PACKAGE_ARCH yourself since that is<br>not the only thing that the allarch class takes care of.<br><br>2) Recipes which are packaging something that is machine-specific - these<br>should set PACKAGE_ARCH = "${MACHINE_ARCH}".<br><br>Additionally, recipes that are building for the build host rather than the<br>target machine (*-native) or for the SDK (nativesdk-*) get different values<br>for  MULTIMACH_TARGET_SYS as well, but this is accomplished by inheriting<br>the native or nativesdk classes or using BBCLASSEXTEND to create a variant<br>of the recipe for one or both.<br><br>> What options should I set in recipes?<br><br>Can you be more precise about what you want to do?<br><br>Cheers,<br>Paul<br><br>-- <br><br>Paul Eggleton<br>Intel Open Source Technology Centre<br><br></div></body></html>
<table style="display:none"><tr><td><img src="https://mail.naver.com/readReceipt/notify/?img=f%2FRN1B%2BZM6E%2FpzKdhARPpAtwa6uZMxtZK4KZKqKXFqMqpAv9M6K9pA3CtzFXp6UZaVl5WLl51zlqDBFdp6d5MreRhoRlWrFdWdIlWrFdWXIZWrG0MXt5WXiN.gif" border="0"></td></tr></table>