Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Aug 2023 22:34:55 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Graham Perrin <grahamperrin@gmail.com>
Cc:        FreeBSD CURRENT <freebsd-current@freebsd.org>
Subject:   Re: src.conf(5) to specify multiple flavours of a port
Message-ID:  <CANCZdfoouKRnDm3xfFGfFsdUL3cygyCvpJipoRWiRpvi4B_s7w@mail.gmail.com>
In-Reply-To: <31c2b00f-a3c4-5608-9776-fa20ea005a45@gmail.com>
References:  <31c2b00f-a3c4-5608-9776-fa20ea005a45@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000f2649306037b840b
Content-Type: text/plain; charset="UTF-8"

On Mon, Aug 21, 2023, 10:24 PM Graham Perrin <grahamperrin@gmail.com> wrote:

> In a thread elsewhere, as an example that did *not* involve src.conf,
> Mark Johnston wrote:
>
> $ cd /usr/ports/graphics/gpu-firmware-intel-kmod
> $ sudo make reinstall FLAVOR=kabylake
>
>
> How might I use /etc/src.conf to achieve much the same, with a different
> port?
>


I thought stuff like this went in ports.conf...

Warner

> A recent edition of my file included these four lines, the third of which
> causes an error:
>
> PORTS_MODULES= graphics/drm-510-kmod
> # PORTS_MODULES= graphics/drm-515-kmod
> PORTS_MODULES+= graphics/gpu-firmware-radeon-kmod@btc
> graphics/gpu-firmware-radeon-kmod@sumo
> graphics/gpu-firmware-radeon-kmod@turks
> # PORTS_MODULES+= graphics/gpu-firmware-radeon-kmod
>
> This morning: I use the fourth line, instead.
>
> In future: I'd prefer to be without the build time that's associated with
> so many flavours, when only three are required.
>
> <https://www.freshports.org/graphics/gpu-firmware-radeon-kmod/#flavors>;
> <https://www.freshports.org/graphics/gpu-firmware-radeon-kmod/#flavors>;
>
>
> More than doubly time-consuming, because:
>
> KERNCONF=GENERIC GENERIC-NODEBUG
> # KERNCONF=GENERIC
> # KERNCONF=GENERIC-NODEBUG
>
> NO_INSTALLEXTRAKERNELS=no
>
> TIA
>
>
>

--000000000000f2649306037b840b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Mon, Aug 21, 2023, 10:24 PM Graham Perrin &lt;<a hr=
ef=3D"mailto:grahamperrin@gmail.com">grahamperrin@gmail.com</a>&gt; wrote:<=
br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;borde=
r-left:1px #ccc solid;padding-left:1ex">
 =20

   =20
 =20
  <div style=3D"padding-bottom:1px">
    In a thread elsewhere, as an example that did <i>not</i> involve
    src.conf, Mark Johnston wrote: <br>
    <br>
    <blockquote type=3D"cite">
      <pre>$ cd /usr/ports/graphics/gpu-firmware-intel-kmod
$ sudo make reinstall FLAVOR=3Dkabylake</pre>
    </blockquote>
    <br>
    <p>How might I use <font face=3D"monospace">/etc/src.conf</font> to
      achieve much the same, with a different port?</p></div></blockquote><=
/div></div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><div dir=
=3D"auto">I thought stuff like this went in ports.conf...</div><div dir=3D"=
auto"><br></div><div dir=3D"auto">Warner=C2=A0</div><div dir=3D"auto"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style=3D"padding-=
bottom:1px">
    <p>A recent edition of my file included these four lines, the third
      of which causes an error: <font face=3D"monospace"><br>
      </font></p>
    <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;b=
ackground-color:#ffffff">PORTS_MODULES=3D
          graphics/drm-510-kmod
        </span><br>
        # PORTS_MODULES=3D graphics/drm-515-kmod
        <br>
        PORTS_MODULES+=3D graphics/gpu-firmware-radeon-kmod@btc
        graphics/gpu-firmware-radeon-kmod@sumo
        graphics/gpu-firmware-radeon-kmod@turks
        <br>
        # PORTS_MODULES+=3D graphics/gpu-firmware-radeon-kmod <br>
      </span></p>
    <p>This morning: I use the fourth line, instead. <br>
    </p>
    <p>In future: I&#39;d prefer to be without the build time that&#39;s
      associated with so many flavours, when only three are required. <br>
    </p>
    <p><a href=3D"https://www.freshports.org/graphics/gpu-firmware-radeon-k=
mod/#flavors" target=3D"_blank" rel=3D"noreferrer">&lt;https://www.freshpor=
ts.org/graphics/gpu-firmware-radeon-kmod/#flavors&gt;</a></p>
    <p><br>
    </p>
    <p>More than doubly time-consuming, because: <br>
    </p>
    <p><span style=3D"font-family:monospace"><span style=3D"color:#000000;b=
ackground-color:#ffffff">KERNCONF=3DGENERIC
          GENERIC-NODEBUG
        </span><br>
        # KERNCONF=3DGENERIC
        <br>
        # KERNCONF=3DGENERIC-NODEBUG
        <br>
        <br>
        NO_INSTALLEXTRAKERNELS=3Dno<br>
        <br>
      </span></p>
    <p>TIA</p>
    <p><br>
    </p>
    <p></p>
  </div>
  <u></u><u></u>

</blockquote></div></div></div>

--000000000000f2649306037b840b--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoouKRnDm3xfFGfFsdUL3cygyCvpJipoRWiRpvi4B_s7w>