[LTP] [PATCH 01/31] m4: Remove UCLINUX (nommu detection)

Petr Vorel pvorel@suse.cz
Thu Apr 11 16:29:55 CEST 2024


nommu detection was written for UCLINUX distribution, which is not
active any more.  While there are still some used nommu kernel
architectures (m68k and other), there is missing support in the new
C API and nobody from the community did not stand to implement and
maintain it. Therefore removing all UCLINUX/nommu related code in this
and following commits.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 configure.ac          |  1 -
 m4/ltp-nommu-linux.m4 | 14 --------------
 2 files changed, 15 deletions(-)
 delete mode 100644 m4/ltp-nommu-linux.m4

diff --git a/configure.ac b/configure.ac
index 1d7e862d8..1d7e7628f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -384,7 +384,6 @@ LTP_CHECK_KERNEL_DEVEL
 LTP_CHECK_KEYUTILS_SUPPORT
 LTP_CHECK_LIBMNL
 LTP_CHECK_LINUXRANDOM
-LTP_CHECK_NOMMU_LINUX
 LTP_CHECK_SELINUX
 LTP_CHECK_SYNC_ADD_AND_FETCH
 LTP_CHECK_SYSCALL_EVENTFD
diff --git a/m4/ltp-nommu-linux.m4 b/m4/ltp-nommu-linux.m4
deleted file mode 100644
index 7471ddd06..000000000
--- a/m4/ltp-nommu-linux.m4
+++ /dev/null
@@ -1,14 +0,0 @@
-dnl SPDX-License-Identifier: GPL-2.0-or-later
-dnl Copyright (c) Linux Test Project, 2010
-dnl Author: Mike Frysinger <vapier@gentoo.org>
-
-AC_DEFUN([LTP_CHECK_NOMMU_LINUX],
-[
-	AC_CHECK_FUNCS([fork daemon vfork])
-	UCLINUX=0
-	if test "x$ac_cv_func_fork" = "xno" ; then
-		UCLINUX=1
-		AC_DEFINE([UCLINUX], 1, [Target is running Linux w/out an MMU])
-	fi
-	AC_SUBST(UCLINUX)
-])
-- 
2.43.0



More information about the ltp mailing list