From: Tom Rini Date: Thu, 22 Feb 2018 10:50:25 -0500 Subject: [U-Boot] [PATCH v8 4/4] common: Generic firmware loader for file system In-Reply-To: <17cbb393-3661-9735-4261-4c3e25f9237d@denx.de> References: <1517814409-25698-1-git-send-email-tien.fong.chee@intel.com> <1517814409-25698-5-git-send-email-tien.fong.chee@intel.com> <6406826c-2092-a616-1adc-d3c8f735d1a8@denx.de> <1519287480.9210.14.camel@intel.com> <17cbb393-3661-9735-4261-4c3e25f9237d@denx.de> Message-ID: <20180222155025.GY4311@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Thu, Feb 22, 2018 at 03:28:12PM +0100, Marek Vasut wrote: > On 02/22/2018 09:18 AM, Chee, Tien Fong wrote: > > On Thu, 2018-02-15 at 15:58 +0100, Marek Vasut wrote: > >> On 02/05/2018 08:06 AM, tien.fong.chee at intel.com wrote: > >>> > >>> From: Tien Fong Chee > >>> > >>> This is file system generic loader which can be used to load > >>> the file image from the storage into target such as memory. > >>> The consumer driver would then use this loader to program whatever, > >>> ie. the FPGA device. > >>> > >>> Signed-off-by: Tien Fong Chee > >>> Reviewed-by: Lothar Wa=C3=9Fmann > >> [...] > >> > >>> > >>> +#include > >>> +#include > >>> +#include > >>> +#include > >>> +#include > >>> +#include > >>> +#include > >>> +#include > >>> +#ifdef CONFIG_SPL > >> Are the ifdefs needed ? > >> > > Because spl.h contains some codes have its dependency with SPL. So, Tom > > adviced to make this part of code depend on CONFIG_SPL. > > However, only __weak int init_mmc() depend on the codes from spl.h, so > > user can override their own init_mmc() if SPL is not used. >=20 > You probably dont need those ifdefs around headers. In this case, we do. You can only include on architectures which have SPL support. I wouldn't object to a separate patch series that adds a dummy asm-generic/spl.h and we go that route, if it also cleans up more of the code in general. But I think that's separate from this series. Thanks! --=20 Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: