dahdi-linux: Fix build with poky pyro

bitbake/OE doesn't seem to like having PACKAGE_ARCH set to different
values for different packages in the same recipe.
When building ipk for dahdi-firmware (which was set to have different
arch than the recipe), opkg-build cannot be found iduring do_package_ipk
because PATH doesn't contain the machine-specific bin dir where
opkg-build is copied (under recipe-sysroot-native).
A possibility to keep dahdi-firmware allarch would be to split it into a
separate .bb, but since the install process of firmware files is tightly
coupled into the Makefile and arch-dependent binaries are used (such as
objcopy), let's simply set it as MACHINE_ARCH, same as done for kernel
modules.

Kernel module packages are now suffixed with the kernel version in order
to allow module packages from multiple kernel versions to co-exist on a
target system. As a result, .ko files are not correctly installed into
their respective kernel-module-* packages and hence those packages end
up being empty and not created, and during image build it will fail
because it cannot find the packages. Let's fix it by emptying
KERNEL_MODULE_PACKAGE_SUFFIX as explained in yocto manual.

Related: SYS#4760
Change-Id: I6b4802374194d0fb722d0c4fd8d6ed72cd468262
1 file changed