kmod-native: use bswap to work on older Linux hosts
authorTing Liu <b28495@freescale.com>
Tue, 10 Sep 2013 06:00:20 +0000 (06:00 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 14 Oct 2013 15:55:24 +0000 (16:55 +0100)
commit5f7d1f9bf2ca7550b373b2a3be07afce0fe7a3c4
treef39f429f69c4c5d50eeeca92d904d75a5efb539b
parent5ace303d94e4d38a84b3218df1d42b04c46c4da2
kmod-native: use bswap to work on older Linux hosts

We can't use htobe* and be*toh functions because they are not
available on older versions of glibc, For example, shipped on Centos 5.5.

Change to directly calling bswap_* as defined in byteswap.h.

(From OE-Core rev: 63edb6b9a8bdf2f5541edd618f2f598185e37223)

Signed-off-by: Ting Liu <b28495@freescale.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/kmod/kmod-native_git.bb
meta/recipes-kernel/kmod/kmod/Change-to-calling-bswap_-instead-of-htobe-and-be-toh.patch [new file with mode: 0644]