Re: [PATCH] build: Use build context for custom commands

2023-09-12 Thread Sebastian Huber
On 12.09.23 08:49, Chris Johns wrote: On 12/9/2023 2:15 pm, Sebastian Huber wrote: On 12.09.23 03:26, Chris Johns wrote: On 11/9/2023 7:37 pm, Sebastian Huber wrote: Revert duplicated listing of TEST_OPTIMIZATION_FLAGS. Thank you for picking this up. Does this change let the user control TES

Re: [PATCH] build: Use build context for custom commands

2023-09-12 Thread Chris Johns
On 12/9/2023 5:32 pm, Sebastian Huber wrote: > On 12.09.23 08:49, Chris Johns wrote: >> On 12/9/2023 2:15 pm, Sebastian Huber wrote: >>> On 12.09.23 03:26, Chris Johns wrote: On 11/9/2023 7:37 pm, Sebastian Huber wrote: > Revert duplicated listing of TEST_OPTIMIZATION_FLAGS. Thank you

Re: [PATCH] build: Use build context for custom commands

2023-09-12 Thread Sebastian Huber
On 12.09.23 09:43, Chris Johns wrote: Setting OPTIMIZATION_FLAGS and TEST_OPTIMIZATION_FLAGS through the configuration file always worked. Great. I am seeing: OPTIMIZATION_FLAGS = -O2 -g -fdata-sections -ffunction-sections and data sections is an optimisation however does it complicates thin

Re: [PATCH] build: Add target to build scripts

2023-09-12 Thread Sebastian Huber
On 11.08.23 07:51, Sebastian Huber wrote: On 11.08.23 07:40, Chris Johns wrote: On 11/8/2023 3:33 pm, Sebastian Huber wrote: On 11.08.23 02:21, Chris Johns wrote: On 10/8/2023 7:02 pm, Sebastian Huber wrote: Document that the build scripts in the testsuites produce a test program. I am sorr

[PATCH 1/2] score: Fix RTEMS_DEFINE_GLOBAL_SYMBOL()

2023-09-12 Thread Sebastian Huber
The availability of a proper RTEMS_DEFINE_GLOBAL_SYMBOL() implementation depends on __asm__() and thus __GNUC__. Clarify documentation. Update #4953. --- cpukit/include/rtems/score/basedefs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cpukit/include/rtems/score/base

[PATCH 2/2] tests: Improve RTEMS_DEFINE_GLOBAL_SYMBOL() tests

2023-09-12 Thread Sebastian Huber
Use a symbol value relative to an existing symbol address to make the test work on more code models. Update #4953. --- testsuites/sptests/spmisc01/init.c | 11 +-- testsuites/validation/tc-basedefs.c | 18 +++--- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a

Re: [PATCH] build: Use build context for custom commands

2023-09-12 Thread Chris Johns
On 12/9/2023 5:55 pm, Sebastian Huber wrote: > On 12.09.23 09:43, Chris Johns wrote: > Setting OPTIMIZATION_FLAGS and TEST_OPTIMIZATION_FLAGS through the > configuration > file always worked. Great. I am seeing: OPTIMIZATION_FLAGS = -O2 -g -fdata-sections -ffunction-secti

Re: [PATCH 1/2] score: Fix RTEMS_DEFINE_GLOBAL_SYMBOL()

2023-09-12 Thread Chris Johns
OK Thanks Chris On 13/9/2023 12:44 am, Sebastian Huber wrote: > The availability of a proper RTEMS_DEFINE_GLOBAL_SYMBOL() implementation > depends on __asm__() and thus __GNUC__. > > Clarify documentation. > > Update #4953. > --- > cpukit/include/rtems/score/basedefs.h | 5 +++-- > 1 file chan

[PATCH] build: Merge regulator build into library item

2023-09-12 Thread Sebastian Huber
There is no need to use a separate build object item. --- spec/build/cpukit/librtemscpu.yml | 5 +++-- spec/build/cpukit/objregulator.yml | 18 -- 2 files changed, 3 insertions(+), 20 deletions(-) delete mode 100644 spec/build/cpukit/objregulator.yml diff --git a/spec/build/cpu

Re: [PATCH] build: Use build context for custom commands

2023-09-12 Thread Sebastian Huber
On 13.09.23 03:12, Chris Johns wrote: On 12/9/2023 5:55 pm, Sebastian Huber wrote: On 12.09.23 09:43, Chris Johns wrote: Setting OPTIMIZATION_FLAGS and TEST_OPTIMIZATION_FLAGS through the configuration file always worked. Great. I am seeing: OPTIMIZATION_FLAGS = -O2 -g -fdata-sections -ffun