1 |
On Tue, 2022-11-29 at 17:31 -0500, Mike Gilbert wrote: |
2 |
> On Tue, Nov 29, 2022 at 5:14 PM James Le Cuirot <chewi@g.o> wrote: |
3 |
> > |
4 |
> > On Tue, 2022-11-29 at 13:55 -0500, Mike Gilbert wrote: |
5 |
> > > This avoids some unnecessary Makefile logic and gives a nice speed up. |
6 |
> > > |
7 |
> > > Before the change, linux-info_pkg_setup takes 11 to 15 seconds on my |
8 |
> > > AMD Phenom II. After, it takes 3 to 4 seconds. |
9 |
> > > |
10 |
> > > Signed-off-by: Mike Gilbert <floppym@g.o> |
11 |
> > > --- |
12 |
> > > eclass/linux-info.eclass | 4 +++- |
13 |
> > > 1 file changed, 3 insertions(+), 1 deletion(-) |
14 |
> > > |
15 |
> > > diff --git a/eclass/linux-info.eclass b/eclass/linux-info.eclass |
16 |
> > > index fc125b0d751..3e64cb9457a 100644 |
17 |
> > > --- a/eclass/linux-info.eclass |
18 |
> > > +++ b/eclass/linux-info.eclass |
19 |
> > > @@ -238,7 +238,9 @@ getfilevar() { |
20 |
> > > # Pass dot-config=0 to avoid the config check in kernels prior to 5.4. |
21 |
> > > [[ ${EAPI:-0} == [0123] ]] && nonfatal() { "$@"; } |
22 |
> > > echo -e "e:\\n\\t@echo \$(${1})\\ninclude ${basefname}" | \ |
23 |
> > > - nonfatal emake -C "${basedname}" --no-print-directory M="${T}" dot-config=0 need-config= ${BUILD_FIXES} -s -f - 2>/dev/null |
24 |
> > > + nonfatal emake -C "${basedname}" --no-print-directory M="${T}" \ |
25 |
> > > + dot-config=0 need-config= need-compiler= \ |
26 |
> > > + ${BUILD_FIXES} -s -f - 2>/dev/null |
27 |
> > > |
28 |
> > > ARCH=${myARCH} |
29 |
> > > fi |
30 |
> > |
31 |
> > I'm confused. Breaking up the line makes it faster? |
32 |
> |
33 |
> The change is stated in the email subject. |
34 |
> |
35 |
Heh, sorry. I need more sleep. |