From: =?utf-8?Q?Ond=C5=99ej?= Jirman Date: Thu, 12 Sep 2019 20:28:50 +0200 Subject: [U-Boot] [PATCH v2 19/40] env: net: Move eth_parse_enetaddr() to net.c/h In-Reply-To: References: <20190801154715.225318-1-sjg@chromium.org> <20190801154715.225318-20-sjg@chromium.org> <20190912165947.i35behwl2qxp5uue@core.my.home> Message-ID: <20190912182850.2lde4hlpsm2pl4pm@core.my.home> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi, On Thu, Sep 12, 2019 at 12:22:15PM -0600, Simon Glass wrote: > Hi, >=20 > On Thu, 12 Sep 2019 at 10:59, Ond=C5=99ej Jirman wrot= e: > > > > Hello, > > > > On Thu, Aug 01, 2019 at 09:46:54AM -0600, Simon Glass wrote: > > > This function fits better with the network subsystem, so move it. > > > > Unfortunately, this breaks builds without CONFIG_NET. Reverting it > > fixes the issue. > > > > LD u-boot > > cmd/built-in.o: In function `eth_env_get_enetaddr': > > u-boot-v2019.10/cmd/nvedit.c:363: undefined reference to `eth_parse_ene= taddr' > > make[1]: *** [u-boot-v2019.10/Makefile:1594: u-boot] Error 1 > > make[1]: Leaving directory 'builds/.tmp/u-pc-5.4' > > make: *** [Makefile:148: sub-make] Error 2 > > >=20 > Which board is this please? It's orangepi_pc_defconfig with some menuconfig changes to disable CONFIG_N= ET. The issue is that by moving eth_parse_enetaddr to net/ if net is disabled, = this function will not be available to nvedit.c. The board doesn't really matter. regards, o. > Regards, > Simon