Re: Conditionalize make behavior e.g. disable --gc-sections

2019-05-10 Thread Chris Johns
On 10/5/19 10:27 pm, dufa...@hda.com wrote: > > >> On May 10, 2019, at 08:07 , Sebastian Huber >> > > wrote: >> >> On 10/05/2019 13:58, Gedare Bloom wrote: >>> On Tue, May 7, 2019 at 5:03 AM Peter Dufault>> >  wrote: What is

[PATCH] Use static inline functions for jail and prison

2019-05-10 Thread Sebastian Huber
This helps the compiler to optimize away dead code. --- freebsd/sys/sys/jail.h | 202 rtemsbsd/rtems/rtems-kernel-jail.c | 230 - 2 files changed, 202 insertions(+), 230 deletions(-) diff --git a/freebsd/sys/sys/jail

[PATCH] shell: Avoid rtems_error()

2019-05-10 Thread Sebastian Huber
Do not use the rtems_error() function since this function pulls in exit() and abort(). The abort() function pulls in raise() which pulls in the whole POSIX signals support. This change saves about 16KiB of text/rodata on ARM Thumb-2 systems. --- cpukit/libmisc/shell/shell.c | 9 - 1 file

Re: Conditionalize make behavior e.g. disable --gc-sections

2019-05-10 Thread dufault
> On May 10, 2019, at 08:07 , Sebastian Huber > wrote: > > On 10/05/2019 13:58, Gedare Bloom wrote: >> On Tue, May 7, 2019 at 5:03 AM Peter Dufault wrote: >>> What is best practice to change build behavior? e.g. I need to use >>> --whole-archive/--no-whole-archive in one place but --gc-sect

[PATCH] Add USB mass storage only build set

2019-05-10 Thread Sebastian Huber
--- buildset/umass.ini | 18 ++ rtemsbsd/include/rtems/bsd/local/opt_usb.h | 4 2 files changed, 22 insertions(+) create mode 100644 buildset/umass.ini diff --git a/buildset/umass.ini b/buildset/umass.ini new file mode 100644 index ..6a43c58f

Re: Conditionalize make behavior e.g. disable --gc-sections

2019-05-10 Thread Sebastian Huber
On 10/05/2019 13:58, Gedare Bloom wrote: On Tue, May 7, 2019 at 5:03 AM Peter Dufault wrote: What is best practice to change build behavior? e.g. I need to use --whole-archive/--no-whole-archive in one place but --gc-sections breaks it and that's turned on for the BSP (xilinx_zynq_a9_qemu).

Re: Conditionalize make behavior e.g. disable --gc-sections

2019-05-10 Thread Gedare Bloom
On Tue, May 7, 2019 at 5:03 AM Peter Dufault wrote: > > What is best practice to change build behavior? e.g. I need to use > --whole-archive/--no-whole-archive in one place but --gc-sections breaks it > and that's turned on for the BSP (xilinx_zynq_a9_qemu). > > I’ve done this in the .cfg files