From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Thu, 29 Nov 2018 08:57:51 +0100 Subject: [U-Boot] [PATCH v2 01/24] Makefile: move MTD-related lines in coherent Makefiles In-Reply-To: <20181129004623.084c2d50@bbrezillon> References: <20181128230800.13292-1-miquel.raynal@bootlin.com> <20181128230800.13292-2-miquel.raynal@bootlin.com> <20181129004623.084c2d50@bbrezillon> Message-ID: <20181129085751.773d3de1@xps13> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Boris, Boris Brezillon wrote on Thu, 29 Nov 2018 00:46:23 +0100: > On Thu, 29 Nov 2018 00:07:37 +0100 > Miquel Raynal wrote: >=20 >=20 > > --- a/drivers/Makefile > > +++ b/drivers/Makefile > > @@ -6,7 +6,7 @@ obj-$(CONFIG_$(SPL_TPL_)DRIVERS_MISC_SUPPORT) +=3D misc= / sysreset/ firmware/ > > obj-$(CONFIG_$(SPL_TPL_)I2C_SUPPORT) +=3D i2c/ > > obj-$(CONFIG_$(SPL_TPL_)LED) +=3D led/ > > obj-$(CONFIG_$(SPL_TPL_)MMC_SUPPORT) +=3D mmc/ > > -obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) +=3D mtd/nand/raw/ > > +obj-$(CONFIG_$(SPL_TPL_)NAND_SUPPORT) +=3D mtd/nand/ =20 >=20 > Can't we have > +=3D mtd/ >=20 > instead? As you can see, an SPL build just compiles a few files and does not parse the whole "Makefile tree". To avoid compiling the world in the SPL, when I later change the Makefiles to have this "tree" logic I also enclosed some lines into a "#ifndef CONFIG_SPL_BUILD" conditional to avoid enlarging the SPL without reason. There is probably a way to simplify this but for now I don't want to do it :) Thanks, Miqu=C3=A8l