<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic MPSS 3.2 includes everything in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974896#M24812</link>
    <description>&lt;P&gt;MPSS 3.2 includes everything necessary to re-build the card's opensource software stack, but some assembly is required--its completely undocumented state justified bug priority decisions which resulted in a few things not being fixed prior to the 3.2 release.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;In our internal uses of Yocto, we have an additional, closed-source layer which we use to build a handful of proprietary components, mpss-psm among them; the bugs affecting you are&amp;nbsp;&lt;/SPAN&gt;generally&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;erroneous references to closed-layer stuff. T&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;hat's easy to work around, though--just delete the references.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Now, that approach does mean that the mpss-image-minimal you'll build won't have mpss-psm installed. However, you can&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;manually&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;edit the image afterward to install the binary RPM built by Intel. (Future releases of MPSS may simply require that as part of the OFED installation procedure.)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;You're obviously past the first three steps, but I'll include them for completeness and so that you can see the assumptions my later script fragments make. B&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;efore &lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;proceeding&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;, I recommend deleting your poky/build directory (which was created by sourcing oe-init-build-env)--having dirty work trees&amp;nbsp;from before these kind of configuration changes may cause hard-to-diagnose build failures.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;First, extract the source and apply MPSS's patches to Poky:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;MPSS_TOP=`pwd`/build

tar -xf mpss-src-3.*.tar

mkdir -p $MPSS_TOP/sources
tar -xf mpss-downloadcache-3.*.tar -C $MPSS_TOP
tar -xf mpss-3.*/src/poky-???????.tar.bz2 -C $MPSS_TOP
tar -xf mpss-3.*/src/poky-patches-3.*.tar.bz2 -C $MPSS_TOP
tar -xf mpss-3.*/src/meta-mpss-3.*.tar.bz2 -C $MPSS_TOP
mv mpss-3.*/src/*.tar.bz2 $MPSS_TOP/sources

cd $MPSS_TOP/poky
for p in $MPSS_TOP/poky-patches/*.patch; do git apply $p; done&lt;/PRE&gt;

&lt;P&gt;It's necessary to use "git apply" instead of merely "patch" because one of those patches creates a symlink at $MPSS_TOP/build/poky/meta/site/k1om-linux, which requires one of git's extensions to the patch file format. If you want, you can use "patch" provided you manually fix up the symlink after.&lt;/P&gt;

&lt;P&gt;Second, initialize the Poky build environment:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;. ./oe-init-build-env&lt;/PRE&gt;

&lt;P&gt;Third, change Yocto's configuration as necessary to build MPSS. I use the following script, which edits the sample config files produced by sourcing oe-init-build-env:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;icc_path=/path/to/where/you/installed/composer
icc_license=/path/to/composer/license/directory

numthreads=`grep ^processor /proc/cpuinfo | wc -l`
nummakejobs=$numthreads
sed -i.old conf/local.conf \
        -e '/^#BB_NUMBER_THREADS/ a BB_NUMBER_THREADS = "'$numthreads'"' \
        -e '/^#PARALLEL_MAKE/ a PARALLEL_MAKE = "-j '$nummakejobs'"' \
        -e '/^MACHINE/ a MACHINE = "knightscorner"' \
        -e '/^# DISTRO/ a DISTRO = "mpss"' \
        -e 's/^PACKAGE_CLASSES/#&amp;amp;/' \
        -e 's/^EXTRA_IMAGE_FEATURES/#&amp;amp;/' \
        -e 's/^USER_CLASSES/#&amp;amp;/' \
        -e '/^# CONF_VERSION/ i LICENSE_FLAGS_WHITELIST = "mpss intelsamplecode"' \
        -e '/^# CONF_VERSION/ i ICC_VERSION = "local"' \
        -e '/^# CONF_VERSION/ i ICC_INSTALL_PATH = "'"$icc_path"'"' \
        -e '/^# CONF_VERSION/ i INTEL_LICENSE_FILE = "'"$icc_license"'"' \
        -e '/^# CONF_VERSION/ i PREMIRRORS = ".*://.*/.* file://'"$MPSS_TOP"'/download-cache/ \\n"' \
        -e '/^# CONF_VERSION/ i MPSS_MIRROR = "file://'"$MPSS_TOP"'/sources"' \
        -e '/^# CONF_VERSION/ i BB_NO_NETWORK = "1"\n'

sed -i.old conf/bblayers.conf \
        -e 's|^\(\s*\)"$|\1'"$MPSS_TOP/meta-mpss"' \\\n&amp;amp;|'&lt;/PRE&gt;

&lt;P&gt;Having a copy of Intel Composer XE is required to build MPSS; the most tested version is probably 2013 SP1. I recommend you "diff -u local.conf.old local.conf" to get a better feeling for how the above changes the sample configuration.&lt;/P&gt;

&lt;P&gt;Fourth, paper over the aforementioned bugs in the meta-mpss layer:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;sed -i $MPSS_TOP/meta-mpss/recipes-mpss/tasks/mpss-ofed.bb -e '/mpss-psm/ d'
sed -i $MPSS_TOP/meta-mpss/recipes-mpss/meta/meta-mpss.bb -e '/mpss-psm/ d'
sed -i $MPSS_TOP/meta-mpss/recipes-mpss/meta/meta-mpss.bb -e '/mpss-license/ d'
sed -i $MPSS_TOP/meta-mpss/recipes-mpss/meta/meta-mpss.bb -e '/mpss-sciftutorials/ d'
sed -i $MPSS_TOP/meta-mpss/recipes-mpss/micmgmt/mpss-micmgmt_mpss.bb \
        -e 's/ mpss-flash mpss-rasmm-kernel//'&lt;/PRE&gt;

&lt;P&gt;In summary, disable building mpss-psm (which contains an OFED component), mpss-license (which installs a copy of the MPSS license text), and mpss-sciftutorials (which contains the SCIF tutorials). Then remove the install-time dependency on mpss-flash and mpss-rasmm-kernel (which contain proprietary firmware blobs) from mpss-micmgmt.&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;mpss-psm is proprietary closed-source&lt;/LI&gt;
	&lt;LI&gt;mpss-license and mpss-flash/mpss-rasmm-kernel don't work right when the closed layer isn't present&lt;/LI&gt;
	&lt;LI&gt;mpss-sciftutorials is...not even broken. No idea what happened there.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Fifth, disable the nativepkg variant--this ought to be the default, and I expect it will be in MPSS 3.3:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;sed -i conf/local.conf \
        -e '/^# CONF_VERSION/ i NATIVEPKGS_BUILD_kernel = ""' \
        -e '/^# CONF_VERSION/ i NATIVEPKGS_BUILD_userland = ""'&lt;/PRE&gt;

&lt;P&gt;We use nativepkg variants in our automation of host RPM production within our internal build infrastructure, so you probably don't care about it, and it's somewhat brittle.&lt;/P&gt;

&lt;P&gt;At this point you should be able to proceed without any errors.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;On the 24GB, 32-logical-core (1 socket, 16 cores * 2 hyperthreads each) machine I typically build with, "bitbake meta-mpss" takes about two hours from a pristine tree. The build process has a lot of bits that don't parallelize well, though.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;(EDIT: Made it clear I'm recommending you delete poky/build &lt;EM&gt;before &lt;/EM&gt;following the above procedure, not after.)&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2014 17:43:00 GMT</pubDate>
    <dc:creator>Evan_P_Intel</dc:creator>
    <dc:date>2014-04-11T17:43:00Z</dc:date>
    <item>
      <title>Rebuilding MPSS-3.2 (Yocto) release from source</title>
      <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974894#M24810</link>
      <description>&lt;P&gt;Dear community,&lt;/P&gt;

&lt;P&gt;I think I have managed to go some steps forward to rebuild the Intel Xeon Phi MPSS-3.2 release (with Yocto, poky, bitbake ...) to add some required features in our installation. Now I'm stuck at the following with missing source code to rebuild the minimal mpss image:&lt;/P&gt;

&lt;PRE class="brush:plain;"&gt;$ bitbake mpss-image-minimal
WARNING: Host distribution "CentOS release 6.5 (Final)" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################################################################| ETA: 00:00:00
Loaded 1229 entries from dependency cache.

OE Build Configuration:
BB_VERSION = "1.15.1"
TARGET_ARCH = "k1om"
TARGET_OS = "linux"
MACHINE = "knightscorner"
DISTRO = "mpss"
DISTRO_VERSION = "3.2"
TUNE_FEATURES = "m64"
TARGET_FPU = ""
meta 
meta-yocto 
meta-mpss = "&amp;lt;unknown&amp;gt;:&amp;lt;unknown&amp;gt;"

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'mpss-psm' (but /tmp/poky/meta-mpss/recipes-mpss/tasks/mpss-ofed.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'mpss-psm' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['mpss-psm']
NOTE: Runtime target 'mpss-ofed' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['mpss-ofed', 'mpss-psm']
ERROR: Required build target 'mpss-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['mpss-image-minimal', 'mpss-ofed', 'mpss-psm']

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.&lt;/PRE&gt;

&lt;P&gt;The problem - I think - is the missing 'mpss-psm' recipe and source code in the released MPSS-3.2 source code packages.&lt;/P&gt;

&lt;P&gt;Unfortunately, the documentation for system administration lacks behind the release of Yocto-based MPSS for months now (http://software.intel.com/en-us/articles/system-administration-for-the-intel-xeon-phi-coprocessor). Other technical information in the topic of the Yocto-based MPSS are still very rare, too. Documentation from other sources like success stories would be very nice.&lt;/P&gt;

&lt;P&gt;Any help is appreciated. Creating something like a special support ticket for a required feature is not the way to go.&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Apr 2014 09:21:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974894#M24810</guid>
      <dc:creator>René_O_</dc:creator>
      <dc:date>2014-04-08T09:21:41Z</dc:date>
    </item>
    <item>
      <title>Just so you don't think we</title>
      <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974895#M24811</link>
      <description>&lt;P&gt;Just so you don't think we have abandoned you, this question has been passed on to a more Yocto savvy person who will be getting back to you.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 16:18:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974895#M24811</guid>
      <dc:creator>Frances_R_Intel</dc:creator>
      <dc:date>2014-04-09T16:18:05Z</dc:date>
    </item>
    <item>
      <title>MPSS 3.2 includes everything</title>
      <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974896#M24812</link>
      <description>&lt;P&gt;MPSS 3.2 includes everything necessary to re-build the card's opensource software stack, but some assembly is required--its completely undocumented state justified bug priority decisions which resulted in a few things not being fixed prior to the 3.2 release.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;In our internal uses of Yocto, we have an additional, closed-source layer which we use to build a handful of proprietary components, mpss-psm among them; the bugs affecting you are&amp;nbsp;&lt;/SPAN&gt;generally&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;erroneous references to closed-layer stuff. T&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;hat's easy to work around, though--just delete the references.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Now, that approach does mean that the mpss-image-minimal you'll build won't have mpss-psm installed. However, you can&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;manually&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;edit the image afterward to install the binary RPM built by Intel. (Future releases of MPSS may simply require that as part of the OFED installation procedure.)&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;You're obviously past the first three steps, but I'll include them for completeness and so that you can see the assumptions my later script fragments make. B&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;efore &lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;proceeding&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;, I recommend deleting your poky/build directory (which was created by sourcing oe-init-build-env)--having dirty work trees&amp;nbsp;from before these kind of configuration changes may cause hard-to-diagnose build failures.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;First, extract the source and apply MPSS's patches to Poky:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;MPSS_TOP=`pwd`/build

tar -xf mpss-src-3.*.tar

mkdir -p $MPSS_TOP/sources
tar -xf mpss-downloadcache-3.*.tar -C $MPSS_TOP
tar -xf mpss-3.*/src/poky-???????.tar.bz2 -C $MPSS_TOP
tar -xf mpss-3.*/src/poky-patches-3.*.tar.bz2 -C $MPSS_TOP
tar -xf mpss-3.*/src/meta-mpss-3.*.tar.bz2 -C $MPSS_TOP
mv mpss-3.*/src/*.tar.bz2 $MPSS_TOP/sources

cd $MPSS_TOP/poky
for p in $MPSS_TOP/poky-patches/*.patch; do git apply $p; done&lt;/PRE&gt;

&lt;P&gt;It's necessary to use "git apply" instead of merely "patch" because one of those patches creates a symlink at $MPSS_TOP/build/poky/meta/site/k1om-linux, which requires one of git's extensions to the patch file format. If you want, you can use "patch" provided you manually fix up the symlink after.&lt;/P&gt;

&lt;P&gt;Second, initialize the Poky build environment:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;. ./oe-init-build-env&lt;/PRE&gt;

&lt;P&gt;Third, change Yocto's configuration as necessary to build MPSS. I use the following script, which edits the sample config files produced by sourcing oe-init-build-env:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;icc_path=/path/to/where/you/installed/composer
icc_license=/path/to/composer/license/directory

numthreads=`grep ^processor /proc/cpuinfo | wc -l`
nummakejobs=$numthreads
sed -i.old conf/local.conf \
        -e '/^#BB_NUMBER_THREADS/ a BB_NUMBER_THREADS = "'$numthreads'"' \
        -e '/^#PARALLEL_MAKE/ a PARALLEL_MAKE = "-j '$nummakejobs'"' \
        -e '/^MACHINE/ a MACHINE = "knightscorner"' \
        -e '/^# DISTRO/ a DISTRO = "mpss"' \
        -e 's/^PACKAGE_CLASSES/#&amp;amp;/' \
        -e 's/^EXTRA_IMAGE_FEATURES/#&amp;amp;/' \
        -e 's/^USER_CLASSES/#&amp;amp;/' \
        -e '/^# CONF_VERSION/ i LICENSE_FLAGS_WHITELIST = "mpss intelsamplecode"' \
        -e '/^# CONF_VERSION/ i ICC_VERSION = "local"' \
        -e '/^# CONF_VERSION/ i ICC_INSTALL_PATH = "'"$icc_path"'"' \
        -e '/^# CONF_VERSION/ i INTEL_LICENSE_FILE = "'"$icc_license"'"' \
        -e '/^# CONF_VERSION/ i PREMIRRORS = ".*://.*/.* file://'"$MPSS_TOP"'/download-cache/ \\n"' \
        -e '/^# CONF_VERSION/ i MPSS_MIRROR = "file://'"$MPSS_TOP"'/sources"' \
        -e '/^# CONF_VERSION/ i BB_NO_NETWORK = "1"\n'

sed -i.old conf/bblayers.conf \
        -e 's|^\(\s*\)"$|\1'"$MPSS_TOP/meta-mpss"' \\\n&amp;amp;|'&lt;/PRE&gt;

&lt;P&gt;Having a copy of Intel Composer XE is required to build MPSS; the most tested version is probably 2013 SP1. I recommend you "diff -u local.conf.old local.conf" to get a better feeling for how the above changes the sample configuration.&lt;/P&gt;

&lt;P&gt;Fourth, paper over the aforementioned bugs in the meta-mpss layer:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;sed -i $MPSS_TOP/meta-mpss/recipes-mpss/tasks/mpss-ofed.bb -e '/mpss-psm/ d'
sed -i $MPSS_TOP/meta-mpss/recipes-mpss/meta/meta-mpss.bb -e '/mpss-psm/ d'
sed -i $MPSS_TOP/meta-mpss/recipes-mpss/meta/meta-mpss.bb -e '/mpss-license/ d'
sed -i $MPSS_TOP/meta-mpss/recipes-mpss/meta/meta-mpss.bb -e '/mpss-sciftutorials/ d'
sed -i $MPSS_TOP/meta-mpss/recipes-mpss/micmgmt/mpss-micmgmt_mpss.bb \
        -e 's/ mpss-flash mpss-rasmm-kernel//'&lt;/PRE&gt;

&lt;P&gt;In summary, disable building mpss-psm (which contains an OFED component), mpss-license (which installs a copy of the MPSS license text), and mpss-sciftutorials (which contains the SCIF tutorials). Then remove the install-time dependency on mpss-flash and mpss-rasmm-kernel (which contain proprietary firmware blobs) from mpss-micmgmt.&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;mpss-psm is proprietary closed-source&lt;/LI&gt;
	&lt;LI&gt;mpss-license and mpss-flash/mpss-rasmm-kernel don't work right when the closed layer isn't present&lt;/LI&gt;
	&lt;LI&gt;mpss-sciftutorials is...not even broken. No idea what happened there.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Fifth, disable the nativepkg variant--this ought to be the default, and I expect it will be in MPSS 3.3:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;sed -i conf/local.conf \
        -e '/^# CONF_VERSION/ i NATIVEPKGS_BUILD_kernel = ""' \
        -e '/^# CONF_VERSION/ i NATIVEPKGS_BUILD_userland = ""'&lt;/PRE&gt;

&lt;P&gt;We use nativepkg variants in our automation of host RPM production within our internal build infrastructure, so you probably don't care about it, and it's somewhat brittle.&lt;/P&gt;

&lt;P&gt;At this point you should be able to proceed without any errors.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;On the 24GB, 32-logical-core (1 socket, 16 cores * 2 hyperthreads each) machine I typically build with, "bitbake meta-mpss" takes about two hours from a pristine tree. The build process has a lot of bits that don't parallelize well, though.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;(EDIT: Made it clear I'm recommending you delete poky/build &lt;EM&gt;before &lt;/EM&gt;following the above procedure, not after.)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2014 17:43:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974896#M24812</guid>
      <dc:creator>Evan_P_Intel</dc:creator>
      <dc:date>2014-04-11T17:43:00Z</dc:date>
    </item>
    <item>
      <title>Was my response helpful?</title>
      <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974897#M24813</link>
      <description>&lt;P&gt;Was my response helpful?&lt;/P&gt;

&lt;P&gt;I should have also mentioned that, depending on the exact nature of your required feature, I might be able to suggest a simple way to add it without requiring you to rebuild the minimal image. Can you provide some details?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 19:46:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974897#M24813</guid>
      <dc:creator>Evan_P_Intel</dc:creator>
      <dc:date>2014-04-17T19:46:44Z</dc:date>
    </item>
    <item>
      <title>I was building kernel images</title>
      <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974898#M24814</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I was building kernel images for mic too. And Evan's post helped a lot.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;The only problem is that there are some command used "--same-order" option with "-c" in command tar. I greped all "tar.*\\-ps" and changed those "-ps" to "-p", and everything ran smoothly.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;It took me a lot of time to figure out how to configure a yocto build environment for mic before I saw this post. I think this post or sth. similar should has a link at mpss's download page.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2014 18:51:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974898#M24814</guid>
      <dc:creator>Kaicheng_Z_</dc:creator>
      <dc:date>2014-04-21T18:51:12Z</dc:date>
    </item>
    <item>
      <title>thank you for the suggestion</title>
      <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974899#M24815</link>
      <description>thank you for the suggestion on documentation - we will work on that</description>
      <pubDate>Mon, 21 Apr 2014 18:53:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974899#M24815</guid>
      <dc:creator>BelindaLiviero</dc:creator>
      <dc:date>2014-04-21T18:53:25Z</dc:date>
    </item>
    <item>
      <title>Dear Evan,</title>
      <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974900#M24816</link>
      <description>&lt;P&gt;Dear Evan,&lt;/P&gt;

&lt;P&gt;sorry for the late answer.&lt;/P&gt;

&lt;P&gt;I can confirm, that your documentation works out of the box with minor tweaks:&lt;/P&gt;

&lt;P&gt;1) The line&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;-e '/^# CONF_VERSION/ i PREMIRRORS = ".*://.*/.* file://'"$MPSS_TOP"'/download-cache/ \\n"' \&lt;/PRE&gt;

&lt;P&gt;should be&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;-e '/^# CONF_VERSION/ i PREMIRRORS = ".*://.*/.* file://'"$MPSS_TOP"'/download-cache/"' \&lt;/PRE&gt;

&lt;P&gt;2) The line&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;icc_path=/path/to/where/you/installed/composer&lt;/PRE&gt;

&lt;P&gt;should be clarified with an example to (the composer &lt;STRONG&gt;base path&lt;/STRONG&gt;)&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;icc_path=/opt/intel/composer_xe_2013_sp1.2.144&lt;/PRE&gt;

&lt;P&gt;where bin/intel64/icc is appended. So a more general directory like /opt/intel/composerxe/ wouldn't work, because the bin/intel64 directory is not available there.&lt;/P&gt;

&lt;P&gt;At the moment, I have a new 'problem': After building with bitbake meta-mpss, the package mpss-boot-files-3.2.1-1.glibc2.12.2.x86_64.rpm is not available, but after bitbake mpss-boot-files the RPM ./tmp/deploy/rpm/k1om/mpss-boot-files-3.2.1-1.k1om.rpm is ready. Why is there a difference in the package name, has it the same content and why is it not build with meta-mpss?&lt;/P&gt;

&lt;P&gt;To answer your second question:&lt;/P&gt;

&lt;P&gt;We would like to use domain-search in the MIC OS udhcpc DHCP client provided by the busybox executable (udhcpc -O search). In MPSS-2.x, busybox was compiled with the appropriate define/configuration &lt;STRONG&gt;ENABLE_FEATURE_UDHCP_RFC3397.&lt;/STRONG&gt; This feature helps use to get a more flexible and dynamic resolv.conf configuration through DHCP in a subdomain based style.&lt;/P&gt;

&lt;P&gt;Many thanks in advance!&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 13:06:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974900#M24816</guid>
      <dc:creator>René_O_</dc:creator>
      <dc:date>2014-04-23T13:06:48Z</dc:date>
    </item>
    <item>
      <title>Quote:René O. wrote:</title>
      <link>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974901#M24817</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;René O. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;After building with bitbake meta-mpss, the package mpss-boot-files-3.2.1-1.glibc2.12.2.x86_64.rpm is not available, but after bitbake mpss-boot-files the RPM ./tmp/deploy/rpm/k1om/mpss-boot-files-3.2.1-1.k1om.rpm is ready. Why is there a difference in the package name, has it the same content and why is it not build with meta-mpss?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Sorry, I should have covered this in my first response.&lt;/P&gt;

&lt;P&gt;The short answer is that "bitbake mpss-boot-files" builds an RPM for $TARGET_ARCH==k1om, while what you're looking for is one built for $BUILD_ARCH==x86_64. That is accomplished with "bitbake nativepkg-mpss-boot-files".&lt;/P&gt;

&lt;P&gt;The long answer is somewhat involved. First, recall that, by convention, "bitbake foo" almost always compiles "foo" for $MACHINE; if it's possible to compile "foo" for a different target (without changing $MACHINE, I mean), that's almost always indicated with a prefix or suffix that identifies the variant to be used—e.g. "foo-nativesdk" to build for $SDKMACHINE or "foo-native" to build for $BUILD_ARCH. Second, note that the meta-mpss layer includes a .bbclass that introduces a new "nativepkg" variant; this variant behaves similarly to the "native" variant except that it produces an RPM package ("native" does not), and it is this variant which is used to enable building mpss-boot-files for a different target (namely $BUILD_ARCH). As for why it's "nativepkg-mpss-boot-files" as opposed to "mpss-boot-files-nativepkg"—that's an artifact of the implementation; nativepkg.bbclass uses the same mechanism as multilib.bbclass, and in Yocto 1.2 such classes are identified with a prefix instead of a suffix. (More recent versions of Yocto use prefixes for everything, not just multilib-style variants.)&lt;/P&gt;

&lt;P&gt;The reason it's not built when building meta-mpss is simpler; it's because that was disabled:&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Evan Powers (Intel) wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Fifth, disable the nativepkg variant—this ought to be the default, and I expect it will be in MPSS 3.3:&lt;/P&gt;

&lt;PRE class="brush:bash;" style="font-size: 13px;"&gt;sed -i conf/local.conf \
        -e '/^# CONF_VERSION/ i NATIVEPKGS_BUILD_kernel = ""' \
        -e '/^# CONF_VERSION/ i NATIVEPKGS_BUILD_userland = ""'&lt;/PRE&gt;

&lt;P&gt;We use nativepkg variants in our automation of host RPM production within our internal build infrastructure, so you probably don't care about it, and it's somewhat brittle.&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;Setting those two variables to the empty string effectively removes all nativepkg variants from meta-mpss's DEPENDS so they won't build automatically when building meta-mpss. (I&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;f you want to see the mechanics of how that happens, take a look at meta-mpss/recipes-mpss/meta/meta-mpss.{inc,bb}.) It's still possible to build them manually, however, and in&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;the case of nativepkg-mpss-boot-files, there's little risk of it failing to work.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;By contrast, the other nativepkg variants which would have otherwise been enabled are quite likely to break, for a variety of reasons. For some, it's because they require unusual things to be installed on the build host (e.g. the JRE); for others, it's because they haven't been audited for dependencies on our internal build environment.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;For completeness, I should mention why the above doesn't affect mpss-sdk-k1om-*.x86_64.rpm or intel-composerxe-compat-k1om-*.x86_64.rpm, which are still built automatically when building meta-mpss. Disabling building nativepkg variants by default has no effect on them because they inherit from cross-canadian.bbclass &lt;EM&gt;instead of&lt;/EM&gt; nativepkg.bbclass in order to access variables which would not otherwise be in scope. (Using cross-canadian.bbclass has its own caveats; of the RPMs in build/tmp/deploy/rpm/x86_64-nativesdk, only those two are safe to install on a host system without risk of confusing its RPM dependency solver.)&lt;/P&gt;

&lt;P style="font-size: 12px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;René O. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;We would like to use domain-search in the MIC OS udhcpc DHCP client provided by the busybox executable (udhcpc -O search). In MPSS-2.x, busybox was compiled with the appropriate define/configuration&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-weight: 700; font-size: 1em; line-height: 1.5;"&gt;ENABLE_FEATURE_UDHCP_RFC3397.&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;This feature helps use to get a more flexible and dynamic resolv.conf configuration through DHCP in a subdomain based style.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Ah. For that purpose, "bitbake nativepkg-mpss-boot-files" probably&amp;nbsp;&lt;EM&gt;is&lt;/EM&gt;&amp;nbsp;the simplest way to proceed, as you've no doubt decided already. If you had responded with something that could be accomplished by editing a run-time configuration file, or if you wanted to integrate a new software package which you had cross-compiled using the SDK (i.e. without integrating it into Yocto as a new bitbake recipe), I might have suggested approaches based on manipulating the Intel-built initramfs cpio archive....&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2014 00:37:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Rebuilding-MPSS-3-2-Yocto-release-from-source/m-p/974901#M24817</guid>
      <dc:creator>Evan_P_Intel</dc:creator>
      <dc:date>2014-04-29T00:37:10Z</dc:date>
    </item>
  </channel>
</rss>

