ipkg: fix MMU-less build
authorBaruch Siach <baruch@tkos.co.il>
Tue, 26 Jul 2016 12:27:32 +0000 (15:27 +0300)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 27 Jul 2016 19:24:56 +0000 (21:24 +0200)
commit7800ae9f6a5735909956ac20c82d2c99ccb68761
treeb1ff997b6fbb862d6eefcf9b623e7020129dbea4
parentc18d403a8df7a3dbe3aaffeb20f214ecd4d0bc3b
ipkg: fix MMU-less build

The code incorrectly tests for __ARCH_HAS_MMU__ which is true for
architecture that *may* have a MMU, instead of __ARCH_USE_MMU__ which
specifies if MMU support is really enabled. Add a patch making direct
use of HAVE_FORK that configure defines when fork() is detected.

Fixes:
http://autobuild.buildroot.net/results/6cf/6cf75e08795d9ab194ce4e882c0f4858bad979c3/
http://autobuild.buildroot.net/results/964/964d8f694bc7d05b35411eabfbadf40bbf6337ae/
http://autobuild.buildroot.net/results/0f2/0f2cddf89af3ad4330556acd04ab6cb080370e24/

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ipkg/0002-fix-nommu.patch [new file with mode: 0644]