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.
This commit is contained in:
Sebastian Huber
2018-05-11 06:22:49 +02:00
parent 4387010b7e
commit d542af2e43

View File

@@ -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
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])
fi
;;
esac
found=yes
break
fi