[libre-riscv-dev] Setup automation scripts

Luke Kenneth Casson Leighton lkcl at lkcl.net
Thu Mar 26 04:14:12 GMT 2020


cole click the three dots first before reading this further...

On Wednesday, March 25, 2020, Cole Poirier <colepoirier at gmail.com> wrote:

>
>
> On Mar 25 2020, at 9:18 am, Luke Kenneth Casson Leighton <lkcl at lkcl.net>
> wrote:
>
> > On Wed, Mar 25, 2020 at 4:04 PM Cole Poirier <colepoirier at gmail.com>
> wrote:
> >>
> >> Hi Libre-SOC team,
> >>
> >> I'm currently working on turning the setup Jacob and I did on his build
> >> server into an easily replicable bash setup script. While working on
> >> this yesterday, I concurrently tried to follow the hdl workflow, a
> >> substantial part of which is setting up a debootstrapped chroot and
> >> installing coriolis2. On this attempt I was finally able to complete it
> >> (thanks to Luke and Jock for updating the process for Debian 10 and
> >> working out a few other kinks in the process!),
> >
> > hooraaay!
> >
> >> but given the length and
> >> complexity of this process, it strikes me as another candidate for
> >> automation. I was thinking I could repeat the process I'm going through
> >> with Jacob, working on the build server setup automation, with the HDL
> >> workflow.
> >
> > yep, sure, go for it.  drop all the commands into scripts, then...
> > hmmm, you have git read/write access to the wiki: git commit them into
> > HDL_workflow directory and put in a link to them in coriolis2.mdwn
>
> Will do!
>
> >> Jacob has advised me to set up a local debian vm for the
> >> purposes of ensuring the script's reliability, so it is my thiniking
> >> that it will be worthwhile to work on these two process automations
> concurrently.
> >> Do you think that this is would be useful and worthwhile? Also, given
> >> that we already have a hard dependency on python, are bash scripts
> >> preferable to the python equivalent of these automation scripts?
> >
> > python is total overkill, bash is generic and brain-dead.
> >
> > there's absolutely no need for using python for this task, as there is
> > zero interaction.  it's literally a matter of bang, bang, command,
> > command.  remember you can output stuff to files with:
> >
> > $ cat <<EOF > filename
> > adasdjhasd
> > asda
> > sd
> > EOF
> > $
> >
> > https://stackoverflow.com/questions/2500436/how-does-
> cat-eof-work-in-bash
> >
> > so you absolutely do not need to use python, not even for file-writing.
> >
> > l.
>
> Perfect, thanks for the advice Luke. Working with you is a great
> education in how to do software engineering properly.


... which includes trimming context on replies.  you see how much crap
there is, how long it took to scroll down and find this?

not everyone is using gmaul.

l.


> Cole
>
>
> _______________________________________________
> libre-riscv-dev mailing list
> libre-riscv-dev at lists.libre-riscv.org
> http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
>


-- 
---
crowd-funded eco-conscious hardware: https://www.crowdsupply.com/eoma68


More information about the libre-riscv-dev mailing list