Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-26 Thread Mritunjay Sharma
On Wed, Aug 26, 2020 at 6:01 AM Chris Johns wrote: > On 26/8/20 8:48 am, Mritunjay Sharma wrote: > > First of all, Apologies for the little delay in response. I was actually > a > > little stuck with assignments in classes. > > Thanks for letting us know. You will need to make up the lost time so

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-25 Thread Chris Johns
On 24/8/20 9:59 am, Chris Johns wrote: > How is EPICS used in real systems? Is the production executable built by EPICS > from the EPICS source tree? Is it a set of libraries that get installed and an > application links in these libraries? Ping? Chris

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-25 Thread Chris Johns
On 26/8/20 8:48 am, Mritunjay Sharma wrote: > First of all, Apologies for the little delay in response. I was actually a > little stuck with assignments in classes. Thanks for letting us know. You will need to make up the lost time somehow. > There's one problem although, while building using:

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-25 Thread Mritunjay Sharma
Hello, everyone! First of all, Apologies for the little delay in response. I was actually a little stuck with assignments in classes. Thank you so much, Chris, for such a nice explanation and detailed review. It cleared a lot of things even for me. I have tried to respond to further suggestions a

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-25 Thread Chris Johns
On 25/8/20 10:48 pm, Heinz Junkes wrote: > yes it works as described. The header file (librtemsNfs.h) is also there. > I must have done something wrong the day before yesterday. Unfortunately > I can't reproduce it anymore. Sorry for the "false alarm”. Great and no problem. > I no longer use libr

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-25 Thread Heinz Junkes
Hallo Chris, yes it works as described. The header file (librtemsNfs.h) is also there. I must have done something wrong the day before yesterday. Unfortunately I can't reproduce it anymore. Sorry for the "false alarm”. I no longer use librtemNfs.h when using the libbsd stack. It is no longer nece

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-24 Thread Chris Johns
On 25/8/20 12:34 am, Heinz Junkes wrote: > Thanks Chris for the explanation. It all makes sense. My pleasure. > I stumbled over the following point: > > I tested the rc-2 and followed the Quick Guide to Building. > “ > To build the tools for the ARM architecture: > > ../source-builder/sb-set-bu

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-24 Thread Gedare Bloom
On Mon, Aug 24, 2020 at 8:34 AM Heinz Junkes wrote: > > Thanks Chris for the explanation. It all makes sense. > > I stumbled over the following point: > > I tested the rc-2 and followed the Quick Guide to Building. > “ > To build the tools for the ARM architecture: > > ../source-builder/sb-set-bui

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-24 Thread Heinz Junkes
Thanks Chris for the explanation. It all makes sense. I stumbled over the following point: I tested the rc-2 and followed the Quick Guide to Building. “ To build the tools for the ARM architecture: ../source-builder/sb-set-builder \ --prefix=$HOME/development/rtems/5.1-rc2 \ 5/rtems-arm To

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-23 Thread Chris Johns
On 23/8/20 8:08 am, Mritunjay Sharma wrote: > [Good news and Update]:  > > Thank you so much Chris! Your advice to search for macros using --trace solved > the problem of hard coding! > It took two complete days to figure out this beautiful thing but it is every > worth it. Well done, that looks

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-23 Thread Chris Johns
On 24/8/20 12:38 am, Heinz Junkes wrote: > But shouldn't the dependencies for the RTEMS basic installation > be taken into account. Dependences are normally checked by the application, package or tool being built. In the case of EPICS it should check for a suitable RTEMS, libbsd etc and configure

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-23 Thread Heinz Junkes
Hallo Mritunjay, that sounds good. But shouldn't the dependencies for the RTEMS basic installation be taken into account. Maybe I don't understand the purpose of the source-builder. But I thought that the necessary rtems-modules (compiler for architecture, libbsd, etc.) are checked and if somet

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-22 Thread Mritunjay Sharma
[Good news and Update]: Thank you so much Chris! Your advice to search for macros using --trace solved the problem of hard coding! It took two complete days to figure out this beautiful thing but it is every worth it. Now the user has to just enter the below command and it will make things work:

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-19 Thread Chris Johns
On 20/8/20 8:09 am, Mritunjay Sharma wrote: > [UPDATE]: Finally modified the RSB recipes to make them work with make utility > and EPICS was built successfully. Great you have had some success but there is a lot more work before it is usable. > iff --git a/source-builder/config/epics-7-1.cfg >

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-19 Thread Chris Johns
On 19/8/20 7:17 pm, Heinz Junkes wrote: > The assumption was that Makefile.inc is present in every BSP. You can for RTEMS 5 and I suppose RTEMS 6 but after that it is not as clear. I am concerned about hidden complexity in Makefile.inc that may be exposed in a generated version in RTEMS 6 and so i

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-19 Thread Mritunjay Sharma
[UPDATE]: Finally modified the RSB recipes to make them work with make utility and EPICS was built successfully. iff --git a/source-builder/config/epics-7-1.cfg b/source-builder/config/epics-7-1.cfg index f51c6582..a9581a2e 100644 --- a/source-builder/config/epics-7-1.cfg +++ b/source-builder/conf

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-19 Thread Heinz Junkes
Hallo Mritunjay, this was an improvement in the EPICS configuration to include the tool/path definitions from the RTEMS BSP directory: configure/os/CONFIG.Common.RTEMS: ... #--- # Pick up the RTEMS tool/path definitions from the RTEMS BSP direc

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-18 Thread Mritunjay Sharma
Hi everyone, Before I begin my queries [ mainly regarding epics upstream], let me give a few updates. As per the suggestion of Gedare, I started building by hand the pc-386 and xilinx_zynq_a9_qemu using the terminal configured make command. What I did initially as an experiment is that, in confi

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-18 Thread Gedare Bloom
On Tue, Aug 18, 2020 at 7:13 PM Heinz Junkes wrote: > > Hi Mritunjay, > > To define the architecture you can create a file “CONFIG_SITE.local” in > “configure”. > Look at the comment at the end of the file "CONFIG_SITE": > > " > ... > # Overrides for the settings above may appear in a CONFIG_SITE

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-18 Thread Heinz Junkes
Hi Mritunjay, To define the architecture you can create a file “CONFIG_SITE.local” in “configure”. Look at the comment at the end of the file "CONFIG_SITE": " ... # Overrides for the settings above may appear in a CONFIG_SITE.local file -include $(CONFIG)/CONFIG_SITE.local. “ Heinz > On 16. Au

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-16 Thread Gedare Bloom
On Sun, Aug 16, 2020 at 4:16 AM Mritunjay Sharma wrote: > > > > On Sun, Aug 16, 2020 at 1:12 PM Chris Johns wrote: >> >> On 16/8/20 8:29 am, Mritunjay Sharma wrote: >> > On Sun, Aug 16, 2020 at 12:15 AM Gedare Bloom > > > wrote: >> > >> > Hi Mritunjay, Chris: >> > >>

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-16 Thread Mritunjay Sharma
On Sun, Aug 16, 2020 at 1:12 PM Chris Johns wrote: > On 16/8/20 8:29 am, Mritunjay Sharma wrote: > > On Sun, Aug 16, 2020 at 12:15 AM Gedare Bloom > > wrote: > > > > Hi Mritunjay, Chris: > > > > For the RSB, since it is user-facing, we need to be sure to minimize

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-16 Thread Chris Johns
On 16/8/20 8:29 am, Mritunjay Sharma wrote: > On Sun, Aug 16, 2020 at 12:15 AM Gedare Bloom > wrote: > > Hi Mritunjay, Chris: > > For the RSB, since it is user-facing, we need to be sure to minimize > its dependencies on the user environment and platform. So

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-15 Thread Mritunjay Sharma
On Sun, Aug 16, 2020 at 12:15 AM Gedare Bloom wrote: > Hi Mritunjay, Chris: > > For the RSB, since it is user-facing, we need to be sure to minimize > its dependencies on the user environment and platform. So this pycli > can only be used if it is distributed standard with Python 2 and > Python 3

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-15 Thread Gedare Bloom
Hi Mritunjay, Chris: For the RSB, since it is user-facing, we need to be sure to minimize its dependencies on the user environment and platform. So this pycli can only be used if it is distributed standard with Python 2 and Python 3. Would someone be able to apply this patch and use it to build e

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-15 Thread Mritunjay Sharma
On Sat, Aug 15, 2020 at 7:42 PM Mritunjay Sharma < mritunjaysharma...@gmail.com> wrote: > [Update]: I have built a workable python cli package known as 'pycli' > which works as an alternative for 'sed'. > > I made the following changes in the config file: > > diff --git a/source-builder/config/epi

Re: [GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-15 Thread Mritunjay Sharma
[Update]: I have built a workable python cli package known as 'pycli' which works as an alternative for 'sed'. I made the following changes in the config file: diff --git a/source-builder/config/epics-7-1.cfg b/source-builder/config/epics-7-1.cfg index f51c658..6408534 100644 --- a/source-builder

[GSoC 2020]: Need help in writing sed alternative in Python for RSB recipes

2020-08-13 Thread Mritunjay Sharma
Hello everyone, Based on the input received by Gedare, I have started working on finding a 'sed' alternative to be used in the RSB recipes to do streamline text replacements. I have gone through the Python Development Guidelines ( https://docs.rtems.org/branches/master/eng/python-devel.html) and