[RTEMS Project] #4904: Application build with vendor target toolchain fails with rtems make build support

RTEMS trac trac at rtems.org
Sun May 14 10:29:06 UTC 2023


#4904: Application build with vendor target toolchain fails with rtems make build
support
---------------------------------+--------------------
  Reporter:  Martin Erik Werner  |      Owner:  (none)
      Type:  defect              |     Status:  new
  Priority:  normal              |  Milestone:
 Component:  build               |    Version:  5
  Severity:  normal              |   Keywords:
Blocked By:                      |   Blocking:
---------------------------------+--------------------
 When building an application using the make build support (as given by the
 example in make/Templates/Makefile.leaf), and when the used toolchain has
 a vendor identifier as part of the target triplet (for example
 sparc-**gaisler**-rtems5), the build fails with the following kind of
 error:

 {{{
 <user_path>/make/custom/default.cfg:14: <user_path>/sparc-
 rtems5/leon3/make/bsp.cfg: No such file or directory
 make: *** No rule to make target '<user_path>/sparc-
 rtems5/leon3/make/bsp.cfg'.  Stop.
 }}}

 This seems to be due to `make/custom/default.cfg` which uses:
 {{{
 !#make
 (...)
 RTEMS_TARGET = $(RTEMS_CPU)-rtems$(RTEMS_API)

 include $(RTEMS_ROOT)/$(RTEMS_TARGET)/$(RTEMS_BSP)/make/target.cfg
 include $(RTEMS_SHARE)/make/host.cfg

 include $(RTEMS_ROOT)/make/main.cfg
 include $(RTEMS_ROOT)/$(RTEMS_TARGET)/$(RTEMS_BSP)/make/bsp.cfg
 }}}
 where `RTEMS_CPU` does not include the vendor id, and hence gives an
 incorrect target triplet in `RTEMS_TARGET`.

 This seems to be a regression between rtems 4.11 and rtems 5 introduced in

 [https://devel.rtems.org/changeset/270c5df5dbaf93c19e2f66a27f4bb73c7e625629/rtems
 270c5df5/rtems]

--
Ticket URL: <http://devel.rtems.org/ticket/4904>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list