Re: New build system ready for testing

2020-09-14 Thread Chris Johns
On 15/9/20 4:31 pm, Sebastian Huber wrote: > On 15/09/2020 00:46, Chris Johns wrote: > >> On 15/9/20 1:18 am, Sebastian Huber wrote: >>> Hello Christian, >>> >>> On 14/09/2020 14:23, Christian Mauderer wrote: Hello Sebastian, I get a linker error when I try to build libbsd for BBB (

Re: [PATCH] bsps/riscv: Use far jump to boot_card()

2020-09-14 Thread Hesham Almatary
Thanks, Sebastian, LGTM. On Mon, 14 Sep 2020 at 14:01, Joel Sherrill wrote: > > Looks good. Reasonable and safer. > > On Mon, Sep 14, 2020 at 12:10 AM Sebastian Huber > wrote: >> >> Use a far jump to avoid errors like this: >> >> relocation truncated to fit: R_RISCV_JAL against symbol `boot_car

Re: New build system ready for testing

2020-09-14 Thread Sebastian Huber
On 15/09/2020 00:46, Chris Johns wrote: On 15/9/20 1:18 am, Sebastian Huber wrote: Hello Christian, On 14/09/2020 14:23, Christian Mauderer wrote: Hello Sebastian, I get a linker error when I try to build libbsd for BBB (with a buildset that builds everything but netipsec): - /home/EB/c

Re: [PATCH v1 7/9] bsps/pc386: Separate smp API functions. Makes smpfatal08 link

2020-09-14 Thread Sebastian Huber
Hello Jan, On 31/05/2020 16:22, Jan Sommer wrote: diff --git a/bsps/i386/pc386/start/bspsmp.c b/bsps/i386/pc386/start/bspsmp.c new file mode 100644 index 00..026f86916f --- /dev/null +++ b/bsps/i386/pc386/start/bspsmp.c @@ -0,0 +1,43 @@ + +#include this file has no license and copyrig

Re: Contributing to rtems

2020-09-14 Thread zack_on_the_speed_chanel
hello, I got locked out of my email but I'm the same person! Currently, I know that we had an original script to format it but it was lost, I also know that to make the new formatting script i have to take the old one and configure it until the diff matches with the original file. Can I get a ho

[PATCH master 4/4] waf: Implement module dependency checking in the build system

2020-09-14 Thread chrisj
From: Chris Johns - Do not build a test if a dependency is not enabled. - Perform a dependency check and generate an error if an enabled module depends on a disabled module. Closes #4077 --- builder.py | 114 +--- freebsd-to-rtems.py | 1 +

[PATCH 6-freebsd-12 4/4] waf: Implement module dependency checking in the build system

2020-09-14 Thread chrisj
From: Chris Johns - Do not build a test if a dependency is not enabled. - Perform a dependency check and generate an error if an enabled module depends on a disabled module. Closes #4077 --- builder.py | 114 +--- freebsd-to-rtems.py | 1 +

[PATCH 6-freebsd-12 1/4] waf: Reformat to PEP8 using yapf

2020-09-14 Thread chrisj
From: Chris Johns --- builder.py| 458 -- waf_libbsd.py | 239 +- wscript | 155 ++--- 3 files changed, 508 insertions(+), 344 deletions(-) diff --git a/builder.py b/builder.py index f5fe2afc..09c51d1b

[PATCH 6-freebsd-12 3/4] build: Separate the kernel and user land include paths

2020-09-14 Thread chrisj
From: Chris Johns - Provide support for separate user and kernel include paths in libbsd.py. - Update all added files with a suitable context to build them with. Supported contexts are `kernel` and `user`. - Kernel source use the kernel, CPU, and build header paths in this order. - User

[PATCH 6-freebsd-12 2/4] waf: Add a config report

2020-09-14 Thread chrisj
From: Chris Johns --- builder.py | 81 + freebsd-to-rtems.py | 40 ++ 2 files changed, 85 insertions(+), 36 deletions(-) diff --git a/builder.py b/builder.py index 09c51d1b..9dfe373f 100755 --- a/builder.py +++ b/builder.p

[PATCH master 1/4] waf: Reformat to PEP8 using yapf

2020-09-14 Thread chrisj
From: Chris Johns --- builder.py| 458 -- waf_libbsd.py | 239 +- wscript | 152 ++--- 3 files changed, 505 insertions(+), 344 deletions(-) diff --git a/builder.py b/builder.py index 0eda461f..83672935

[PATCH master 3/4] build: Separate the kernel and user land include paths

2020-09-14 Thread chrisj
From: Chris Johns - Provide support for separate user and kernel include paths in libbsd.py. - Update all added files with a suitable context to build them with. Supported contexts are `kernel` and `user`. - Kernel source use the kernel, CPU, and build header paths in this order. - User

[PATCH master 2/4] waf: Add a config report

2020-09-14 Thread chrisj
From: Chris Johns --- builder.py | 81 + freebsd-to-rtems.py | 40 ++ 2 files changed, 85 insertions(+), 36 deletions(-) diff --git a/builder.py b/builder.py index 83672935..79cb6c17 100755 --- a/builder.py +++ b/builder.p

Re: [PATCH] gitignore: ignore top-level ini files

2020-09-14 Thread Chris Johns
On 15/9/20 9:52 am, Gedare Bloom wrote: > hah, yes. In rtems.git with the new build system it seems the workflow > is to create a .ini file in your top-level source directory to control > the build. We should not include those ini files in version control I > think? The INI files do not need to be

Re: [PATCH] gitignore: ignore top-level ini files

2020-09-14 Thread Gedare Bloom
hah, yes. In rtems.git with the new build system it seems the workflow is to create a .ini file in your top-level source directory to control the build. We should not include those ini files in version control I think? I meant to start a discussion, then I went for a bicycle ride and forgot. -Ged

Re: New build system ready for testing

2020-09-14 Thread Chris Johns
On 15/9/20 1:18 am, Sebastian Huber wrote: > Hello Christian, > > On 14/09/2020 14:23, Christian Mauderer wrote: >> Hello Sebastian, >> >> I get a linker error when I try to build libbsd for BBB (with a buildset that >> builds everything but netipsec): >> >> - >> /home/EB/christian_m/Projekte/

Re: [PATCH] gitignore: ignore top-level ini files

2020-09-14 Thread Chris Johns
Hi Gedare, Which repo is this for? I suspect rtems.git but I thought it best to ask. Chris On 15/9/20 3:43 am, Gedare Bloom wrote: > --- > .gitignore | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/.gitignore b/.gitignore > index d7ca74b338..8b28b186e1 100644 > --- a/.gitignore > +++

Re: Contributing to rtems

2020-09-14 Thread Gedare Bloom
Either is fine. You can comment to https://devel.rtems.org/ticket/3818 about build system problems. More eyes see it here :) On Mon, Sep 14, 2020 at 12:40 PM Karel Gardas wrote: > > On 9/14/20 6:48 PM, Gedare Bloom wrote: > > > Nice to see you got through that. Right now we are actually > > trans

Contributing to rtems

2020-09-14 Thread zacchaeusliang
Hello, So I finally fixed the BSP problems! I'm able to I'm looking into contributing and I'm really excited to dive into the code. I think the GCC testing Issues is a bit to difficult as I don't have the background for it. Are there some issues I can patch and resolve easily? Also, I read on th

Re: Contributing to rtems

2020-09-14 Thread Karel Gardas
On 9/14/20 6:48 PM, Gedare Bloom wrote: > Nice to see you got through that. Right now we are actually > transitioning the new build system into place. It would be great if > you can try it out now with your BSP build and report any > feedback/problems you may encounter. Where to report issues? To

[PATCH] gitignore: ignore top-level ini files

2020-09-14 Thread Gedare Bloom
--- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index d7ca74b338..8b28b186e1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ autom4te.cache config.h.in configure doc +/*.ini .lock* Makefile.in *.pyc -- 2.17.1 _

Re: Contributing to rtems

2020-09-14 Thread Gedare Bloom
Hi Zack, Nice to see you got through that. Right now we are actually transitioning the new build system into place. It would be great if you can try it out now with your BSP build and report any feedback/problems you may encounter. BSP documentation involves a combination of looking at code or da

Re: [PATCH v4 2/5] rtems: Add rtems_task_create_from_config()

2020-09-14 Thread Sebastian Huber
On 13/09/2020 23:17, Joel Sherrill wrote: On Sun, Sep 13, 2020 at 3:41 AM Sebastian Huber > wrote: On 12/09/2020 02:53, Chris Johns wrote: > On 12/9/20 1:34 am, Sebastian Huber wrote: >> + * @par Notes >> + * By default, the calcul

Re: New build system ready for testing

2020-09-14 Thread Sebastian Huber
Hello Christian, On 14/09/2020 14:23, Christian Mauderer wrote: Hello Sebastian, I get a linker error when I try to build libbsd for BBB (with a buildset that builds everything but netipsec): - /home/EB/christian_m/Projekte/rtems-bbb/install/rtems/6/lib/gcc/arm-rtems6/10.2.1/../../../../a

Re: [PATCH v4 1/5] CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE

2020-09-14 Thread Joel Sherrill
On Sun, Sep 13, 2020 at 3:19 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 12/09/2020 02:33, Chris Johns wrote: > > > On 12/9/20 1:34 am, Sebastian Huber wrote: > >> +const size_t _Thread_Maximum_TLS_size = > >> + CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE; > > Should rtem

Re: libbsd configure removes -D flags from CFLAGS of pkg-config

2020-09-14 Thread Joel Sherrill
On Mon, Sep 14, 2020 at 12:15 AM Chris Johns wrote: > On 14/9/20 3:06 pm, Sebastian Huber wrote: > > On 14/09/2020 01:46, Chris Johns wrote: > >> On 13/9/20 3:46 am, Sebastian Huber wrote: > >>> Hello, > >>> > >>> I can't build the libbsd for powerpc/beatnik: > >>> > >>> -

Re: [PATCH] bsps/riscv: Use far jump to boot_card()

2020-09-14 Thread Joel Sherrill
Looks good. Reasonable and safer. On Mon, Sep 14, 2020 at 12:10 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > Use a far jump to avoid errors like this: > > relocation truncated to fit: R_RISCV_JAL against symbol `boot_card' > --- > bsps/riscv/shared/start/start.S | 2 +- > 1

Re: [PATCH] CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE

2020-09-14 Thread Joel Sherrill
On Sun, Sep 13, 2020 at 6:05 PM Chris Johns wrote: > On 13/9/20 6:31 pm, Sebastian Huber wrote: > > On 12/09/2020 01:31, Chris Johns wrote: > >> On 12/9/20 12:10 am, Joel Sherrill wrote: > >> [...] > >>> Did we decide if there had to be an explicit configure > >>> option to even use this API? Chr

How to collect test output data using rtems-tester and telnet?

2020-09-14 Thread Cláudio Maia
Hello, I am trying to get the output of "ser2net" (using telnet) inside rtems-tester but without success. From what I understood, by reading the documentation, to use telnet within rtems-tester I have to use the "bsp_tty_dev" option butthere is no example there that shows how to achieve this fu

Re: New build system ready for testing

2020-09-14 Thread Christian Mauderer
Hello Sebastian, I get a linker error when I try to build libbsd for BBB (with a buildset that builds everything but netipsec): - /home/EB/christian_m/Projekte/rtems-bbb/install/rtems/6/lib/gcc/arm-rtems6/10.2.1/../../../../arm-rtems6/bin/ld: ./libbsd.a(uipc_mbuf.c.20.o): in function `m_unm

New build system ready for testing

2020-09-14 Thread Sebastian Huber
Hello, I checked in the new build system today. Now is a good time to test your favourite BSP if it still works. You find the user oriented documentation of build system here: https://docs.rtems.org/branches/master/user/bld/index.html The documentation for RTEMS maintainers is here: https:/