[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PULL 2/3] edk2: replace build scripts
From: |
Simon Glass |
Subject: |
Re: [PULL 2/3] edk2: replace build scripts |
Date: |
Tue, 21 Mar 2023 08:19:09 +1300 |
Hi Gerd,
On Thu, 16 Mar 2023 at 04:49, Gerd Hoffmann <kraxel@redhat.com> wrote:
>
> Hi,
>
> > The README should mention that you need to use
> >
> > . edk2setup.sh
> >
> > first.
>
> The script will do that if needed.
>
> > Also you need to be in the edk2 directory, I think.
>
> Or use the --core switch, or place the location in the config file in
> the [global] section.
That seems to be resolved with the latest script.
>
> > It would be good if the edk2-clone.sh script could deal with updating
> > an existing checkout so I don't need to remove the old ones each time.
>
> Updating is just "git pull && git submodules update".
Even more reason to put it in the script :-)
>
> > edk2-build.py -c ../edk2-build-config/kraxel/x64.platforms -j30 --silent
>
> That config file expects cwd being edk2-platforms and edk2 being placed
> next to it (../ekd2). edk2-non-osi too. See the [global] section at
> the start of the file.
OK I see.
>
> > BaseTools/BuildEnv: 160: Bad substitution
> > Using Pip Basetools
> > BaseTools/BuildEnv: 184: Bad substitution
> > BaseTools/BuildEnv: 202: -c: not found
>
> Ok, tried updated the script to use bash not sh for that. Does this
> work better for you?
Yes, fixed.
>
> > Do I need to make -C BaseTools first?
>
> No, the script will do that.
Seems to work fine now.
>
> > > +import optparse
> >
> > I think this is obsolete and argparse should be used for new things.
> > The conversion is pretty easy.
>
> Done.
>
OK
> > Silent mode still produces output. Can you add a -s alias and also
> > make it fully silent?
>
> Well, silent means no output from the "build" command, so the console is
> not flooded with build logs (unless there are build errors), output is
> written to logfiles instead.
We have a different understanding of 'silent' ::-)
>
> > If the config file is not found, it seems to say nothing, but just
> > does not work. It should give an error.
>
> Fixed.
Works fine.
Thanks for the great script and the fixes.
Regards,
Simon
Re: [PULL 0/3] Edk2 stable202302 20230309 patches, Peter Maydell, 2023/03/10
Re: [PULL 0/3] Edk2 stable202302 20230309 patches, Philippe Mathieu-Daudé, 2023/03/10