libbsd: fix build for openrisc with uClibc
authorBaruch Siach <baruch@tkos.co.il>
Tue, 3 Apr 2018 19:05:02 +0000 (22:05 +0300)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 3 Apr 2018 20:51:00 +0000 (22:51 +0200)
commit71d1610029fa206442c305cf7c9b4a597db6e7c6
treeffca61a32ad2b7bd9697e66d6bdb41d6f9e1da36
parent439826eeccb1a148783c8fc38fc91f55e9fae808
libbsd: fix build for openrisc with uClibc

Commit d879be30495 (package/libbsd: enable for non-glibc toolchains)
enabled libbsd for openrisc. Unfortunately uClibc does not define the
EM_OPENRISC macro that libbsd expects for ELF e_machine ID. Add patch
making libbsd fallback to the equivalent EM_OR1K macro that uClibc does
provide.

Fixes:
http://autobuild.buildroot.net/results/2f5/2f51eebe5964e8f1be3ecd2032e7d7837bf98b84/

Cc: Waldemar Brodkorb <wbx@openadk.org>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libbsd/0002-Fix-build-for-openrisc-with-uClibc.patch [new file with mode: 0644]