svn commit: r263637 - head/sys/arm/include
Andrew Turner
andrew at FreeBSD.org
Sat Mar 22 15:59:19 UTC 2014
Author: andrew
Date: Sat Mar 22 15:59:18 2014
New Revision: 263637
URL: http://svnweb.freebsd.org/changeset/base/263637
Log:
Simplify how we build MACHINE_ARCH. There are 3 options that may be set
however only arm, armeb, armv6, and soon armv6hf will be used.
Modified:
head/sys/arm/include/param.h
Modified: head/sys/arm/include/param.h
==============================================================================
--- head/sys/arm/include/param.h Sat Mar 22 15:24:37 2014 (r263636)
+++ head/sys/arm/include/param.h Sat Mar 22 15:59:18 2014 (r263637)
@@ -52,23 +52,29 @@
#define __PCI_REROUTE_INTERRUPT
-#ifndef MACHINE
-#define MACHINE "arm"
-#endif
-#ifndef MACHINE_ARCH
#if defined(__FreeBSD_ARCH_armv6__) || (defined(__ARM_ARCH) && __ARM_ARCH >= 6)
-#ifdef __ARMEB__
-#define MACHINE_ARCH "armv6eb"
+#define _V6_SUFFIX "v6"
#else
-#define MACHINE_ARCH "armv6"
+#define _V6_SUFFIX ""
#endif
+
+#ifdef __ARM_PCS_VFP
+#define _HF_SUFFIX "hf"
#else
+#define _HF_SUFFIX ""
+#endif
+
#ifdef __ARMEB__
-#define MACHINE_ARCH "armeb"
+#define _EB_SUFFIX "eb"
#else
-#define MACHINE_ARCH "arm"
+#define _EB_SUFFIX ""
#endif
+
+#ifndef MACHINE
+#define MACHINE "arm"
#endif
+#ifndef MACHINE_ARCH
+#define MACHINE_ARCH "arm" _V6_SUFFIX _HF_SUFFIX _EB_SUFFIX
#endif
#if defined(SMP) || defined(KLD_MODULE)
More information about the svn-src-head
mailing list