diff options
Diffstat (limited to 'rtems/config/rtems-bsp.cfg')
-rw-r--r-- | rtems/config/rtems-bsp.cfg | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/rtems/config/rtems-bsp.cfg b/rtems/config/rtems-bsp.cfg index d5868ca..2664776 100644 --- a/rtems/config/rtems-bsp.cfg +++ b/rtems/config/rtems-bsp.cfg @@ -12,7 +12,18 @@ # (--with-tools) is not provided use the prefix. # -%if %{_target} == %{nil} +# +# If a dry-run and with download ignore errors and correct setting for tools +# and BSPs. Only after the source to download. +# +%if %{_dry_run} && %{defined with_download} + %log BSP configuration errors ignored + %define rtems_bsp_error 0 +%else + %define rtems_bsp_error 1 +%endif + +%if %{_target} == %{nil} && %{rtems_bsp_error} %error No RTEMS target specified: --rtems-bsp=arch/bsp (or --target=target) %endif @@ -21,7 +32,10 @@ %endif %ifn %{defined with_rtems_bsp} - %error No RTEMS BSP specified: --rtems-bsp=arch/bsp (or --with-rtems-bsp=bsp) + %if %{rtems_bsp_error} + %error No RTEMS BSP specified: --rtems-bsp=arch/bsp (or --with-rtems-bsp=bsp) + %endif + %define with_rtems_bsp sparc/erc32 %endif %ifn %{defined with_tools} @@ -56,12 +70,12 @@ %define rtems_bsp_ldflags %{pkgconfig ldflags %{_host}-%{rtems_bsp}} %define rtems_bsp_libs %{pkgconfig libs %{_host}-%{rtems_bsp}} -%if %{rtems_bsp_cflags} == %{nil} +%if %{rtems_bsp_cflags} == %{nil} && %{rtems_bsp_error} %error No RTEMS target CFLAGS found; Please check the --rtems-bsp option. %endif %if %{rtems_bsp_ccflags} == %{nil} - %define rtems_bsp_ccflags %{rtems_bsp_cflags} + %define rtems_bsp_ccflags %{rtems_bsp_cflags} %endif # |