[rtems commit] build: Fix RTEMS_ENABLE_RTEMSBSP()
Sebastian Huber
sebh at rtems.org
Mon May 14 12:13:47 UTC 2018
Module: rtems
Branch: master
Commit: d542af2e4304b663461330a60313fb6c4fdbf4db
Changeset: http://git.rtems.org/rtems/commit/?id=d542af2e4304b663461330a60313fb6c4fdbf4db
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri May 11 06:22:49 2018 +0200
build: Fix RTEMS_ENABLE_RTEMSBSP()
The riscv32 and riscv64 targets share a riscv source directory. The
potential future powerpcspe and powerpc targets need this change as
well.
---
aclocal/enable-rtemsbsp.m4 | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/aclocal/enable-rtemsbsp.m4 b/aclocal/enable-rtemsbsp.m4
index fcec398..98c2668 100644
--- a/aclocal/enable-rtemsbsp.m4
+++ b/aclocal/enable-rtemsbsp.m4
@@ -34,9 +34,13 @@ AC_ARG_ENABLE(rtemsbsp,
cfg_bsp=$(echo ${bsp_path} | sed -e "s/.*\///" -e 's/\.cfg//')
if test x$bsp = x$cfg_bsp; then
cfg_arch=$(echo ${bsp_path} | sed -e "s/${libbsp_e}*\///" -e 's/\/.*//')
- if test x${target_arch} != x${cfg_arch}; then
- AC_MSG_ERROR([BSP '$bsp' architecture does not match the --target architecture, run 'rtems-bsp' (in the top of the source tree) for a valid BSP list])
- fi
+ case ${cfg_arch} in
+ ${target_arch$}* )
+ ;;
+ * )
+ AC_MSG_ERROR([BSP '$bsp' architecture does not match the --target architecture, run 'rtems-bsp' (in the top of the source tree) for a valid BSP list])
+ ;;
+ esac
found=yes
break
fi
More information about the vc
mailing list