<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/meta-telephony/+/16671">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  pespin: Verified
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">dahdi-linux: Fix build with poky pyro<br><br>bitbake/OE doesn't seem to like having PACKAGE_ARCH set to different<br>values for different packages in the same recipe.<br>When building ipk for dahdi-firmware (which was set to have different<br>arch than the recipe), opkg-build cannot be found iduring do_package_ipk<br>because PATH doesn't contain the machine-specific bin dir where<br>opkg-build is copied (under recipe-sysroot-native).<br>A possibility to keep dahdi-firmware allarch would be to split it into a<br>separate .bb, but since the install process of firmware files is tightly<br>coupled into the Makefile and arch-dependent binaries are used (such as<br>objcopy), let's simply set it as MACHINE_ARCH, same as done for kernel<br>modules.<br><br>Kernel module packages are now suffixed with the kernel version in order<br>to allow module packages from multiple kernel versions to co-exist on a<br>target system. As a result, .ko files are not correctly installed into<br>their respective kernel-module-* packages and hence those packages end<br>up being empty and not created, and during image build it will fail<br>because it cannot find the packages. Let's fix it by emptying<br>KERNEL_MODULE_PACKAGE_SUFFIX as explained in yocto manual.<br><br>Related: SYS#4760<br>Change-Id: I6b4802374194d0fb722d0c4fd8d6ed72cd468262<br>---<br>M recipes-isdn/dahdi-linux/dahdi-linux_2.10.2.bb<br>1 file changed, 1 insertion(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/recipes-isdn/dahdi-linux/dahdi-linux_2.10.2.bb b/recipes-isdn/dahdi-linux/dahdi-linux_2.10.2.bb</span><br><span>index 122b819..6191338 100644</span><br><span>--- a/recipes-isdn/dahdi-linux/dahdi-linux_2.10.2.bb</span><br><span>+++ b/recipes-isdn/dahdi-linux/dahdi-linux_2.10.2.bb</span><br><span>@@ -132,9 +132,8 @@</span><br><span>     kernel-module-xpd-fxs \</span><br><span>     kernel-module-dahdi-vpmadt032-loader \</span><br><span> "</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(0, 100%, 40%);">-PACKAGE_ARCH_dahdi-firmware = "all"</span><br><span> PACKAGES =+ "dahdi-firmware ${DAHDI_KERNEL_MODULE}"</span><br><span style="color: hsl(120, 100%, 40%);">+KERNEL_MODULE_PACKAGE_SUFFIX = ""</span><br><span> </span><br><span> FILES_${PN} = "${base_libdir}/modules/ ${sysconfdir}/udev/rules.d"</span><br><span> FILES_dahdi-firmware = "${base_libdir}/firmware ${datadir}/dahdi ${libdir}/hotplug/firmware "</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/meta-telephony/+/16671">change 16671</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/meta-telephony/+/16671"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: meta-telephony </div>
<div style="display:none"> Gerrit-Branch: 201705 </div>
<div style="display:none"> Gerrit-Change-Id: I6b4802374194d0fb722d0c4fd8d6ed72cd468262 </div>
<div style="display:none"> Gerrit-Change-Number: 16671 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>