[PATCH] build: Add PROGRAM_PREFIX option
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Aug 2 08:39:25 UTC 2023
On 02.08.23 10:33, Chris Johns wrote:
>> diff --git a/spec/build/bsps/makeinc.yml b/spec/build/bsps/makeinc.yml
>> index ac395f2f02..08fc75a8b9 100644
>> --- a/spec/build/bsps/makeinc.yml
>> +++ b/spec/build/bsps/makeinc.yml
>> @@ -16,14 +16,14 @@ content: |
>> prefix = ${PREFIX}
>> exec_prefix = $${prefix}/${ARCH}-rtems${__RTEMS_MAJOR__}
>>
>> - CC_FOR_TARGET = ${ARCH}-rtems${__RTEMS_MAJOR__}-gcc
>> - CXX_FOR_TARGET = ${ARCH}-rtems${__RTEMS_MAJOR__}-g++
>> - AS_FOR_TARGET = ${ARCH}-rtems${__RTEMS_MAJOR__}-as
>> - AR_FOR_TARGET = ${ARCH}-rtems${__RTEMS_MAJOR__}-ar
>> - NM_FOR_TARGET = ${ARCH}-rtems${__RTEMS_MAJOR__}-nm
>> - LD_FOR_TARGET = ${ARCH}-rtems${__RTEMS_MAJOR__}-ld
>> - SIZE_FOR_TARGET = ${ARCH}-rtems${__RTEMS_MAJOR__}-size
>> - OBJCOPY_FOR_TARGET = ${ARCH}-rtems${__RTEMS_MAJOR__}-objcopy
>> + CC_FOR_TARGET = ${PROGRAM_PREFIX}gcc
>> + CXX_FOR_TARGET = ${PROGRAM_PREFIX}g++
> Is it worth doing the same to gcc and g++ as well so these can be replaced as well?
Yes, but this would be another patch and it is a bit more work since you
have to test the clang support.
>
>> + AS_FOR_TARGET = ${PROGRAM_PREFIX}as
>> + AR_FOR_TARGET = ${PROGRAM_PREFIX}ar
>> + NM_FOR_TARGET = ${PROGRAM_PREFIX}nm
>> + LD_FOR_TARGET = ${PROGRAM_PREFIX}ld
>> + SIZE_FOR_TARGET = ${PROGRAM_PREFIX}size
>> + OBJCOPY_FOR_TARGET = ${PROGRAM_PREFIX}objcopy
> Where is PROGRAM_PFREFIX set?
It is a new configuration option:
[sparc/gr740]
PROGRAM_PREFIX = ${ARCH}-rtems7-
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the devel
mailing list