forked from Imagelibrary/rtems
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:
@@ -34,9 +34,13 @@ AC_ARG_ENABLE(rtemsbsp,
|
|||||||
cfg_bsp=$(echo ${bsp_path} | sed -e "s/.*\///" -e 's/\.cfg//')
|
cfg_bsp=$(echo ${bsp_path} | sed -e "s/.*\///" -e 's/\.cfg//')
|
||||||
if test x$bsp = x$cfg_bsp; then
|
if test x$bsp = x$cfg_bsp; then
|
||||||
cfg_arch=$(echo ${bsp_path} | sed -e "s/${libbsp_e}*\///" -e 's/\/.*//')
|
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])
|
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
|
found=yes
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user