summaryrefslogtreecommitdiffstats
path: root/aclocal/bsp-alias.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal/bsp-alias.m4')
-rw-r--r--aclocal/bsp-alias.m421
1 files changed, 14 insertions, 7 deletions
diff --git a/aclocal/bsp-alias.m4 b/aclocal/bsp-alias.m4
index e574ef44a2..37b55c753f 100644
--- a/aclocal/bsp-alias.m4
+++ b/aclocal/bsp-alias.m4
@@ -2,11 +2,10 @@ dnl
dnl $Id$
dnl
-dnl RTEMS_BSP_ALIAS(BSP_ALIAS,BSP_RETURNED)
-dnl convert a bsp alias $1 into its bsp directory $2
-AC_DEFUN(RTEMS_BSP_ALIAS,
-[
- # account for "aliased" bsps which share source code
+dnl _RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
+dnl Internal subroutine to RTEMS_BSP_ALIAS
+AC_DEFUN(_RTEMS_BSP_ALIAS,
+[# account for "aliased" bsps which share source code
case $1 in
mcp750) $2=motorola_powerpc ;; # Motorola PPC board variant
mvme2307) $2=motorola_powerpc ;; # Motorola PPC board variant
@@ -18,6 +17,14 @@ AC_DEFUN(RTEMS_BSP_ALIAS,
pc486) $2=pc386 ;; # i386 - PC with i486DX
pc586) $2=pc386 ;; # i386 - PC with Pentium
pc686) $2=pc386 ;; # i386 - PC with PentiumPro
+ bare*) $2=bare ;; # EXP: bare-aliases
*) $2=$1;;
- esac
-])
+ esac]
+)
+
+dnl RTEMS_BSP_ALIAS(BSP_ALIAS,RTEMS_BSP_FAMILY)
+dnl convert a bsp alias $1 into its bsp directory RTEMS_BSP_FAMILY
+AC_DEFUN(RTEMS_BSP_ALIAS,
+[_RTEMS_BSP_ALIAS(ifelse([$1],,[$RTEMS_BSP],[$1]),
+ ifelse([$2],,[RTEMS_BSP_FAMILY],[$2]))]
+)