Tweak compat_freebsd32_bit feature name

Mark the current name 'compat_freebsd_32bit' as legacy, and add the
new name 'compat_freebsd32'.  This seems to help with some make and
shell uses.

Requested by:	jrtc27
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D42641
This commit is contained in:
Konstantin Belousov 2023-11-19 00:40:58 +02:00
parent 26b36a64be
commit bddc7a8a94

View file

@ -131,7 +131,9 @@ register_compat32_feature(void *arg)
if (!compat_freebsd_32bit)
return;
FEATURE_ADD("compat_freebsd_32bit", "Compatible with 32-bit FreeBSD");
FEATURE_ADD("compat_freebsd32", "Compatible with 32-bit FreeBSD");
FEATURE_ADD("compat_freebsd_32bit",
"Compatible with 32-bit FreeBSD (legacy feature name)");
}
SYSINIT(freebsd32, SI_SUB_EXEC, SI_ORDER_ANY, register_compat32_feature,
NULL);