From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Date: Tue, 9 May 2017 10:05:58 +0200 Subject: [U-Boot] [PATCH] rockchip: rk3368: Set fdtfile In-Reply-To: References: <20170501174118.15817-1-afaerber@suse.de> <10ca4dce-e2a7-f358-5211-3526e94f9cd4@suse.de> Message-ID: <40e3151c-aac6-61bd-2193-d3f3aa863bf1@suse.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi Simon, Am 08.05.2017 um 18:38 schrieb Simon Glass: > On 1 May 2017 at 11:48, Andreas Färber wrote: >> Am 01.05.2017 um 19:41 schrieb Andreas Färber: >>> diff --git a/configs/geekbox_defconfig b/configs/geekbox_defconfig >>> index f5783100c0..5e4d5f03a4 100644 >>> --- a/configs/geekbox_defconfig >>> +++ b/configs/geekbox_defconfig >>> @@ -4,6 +4,7 @@ CONFIG_ROCKCHIP_RK3368=y >>> CONFIG_TARGET_GEEKBOX=y >>> CONFIG_DEFAULT_DEVICE_TREE="rk3368-geekbox" >>> CONFIG_HUSH_PARSER=y >>> +CONFIG_DEFAULT_FDT_FILE="rockchip/rk3368-geekbox.dtb" >> >> The PX5 and Sheep boards would need the equivalent config setting or an >> empty #define FDTFILE, otherwise they'd end up with fdtfile=\0. > > Can you fix that by making it empty automatically in that case? E.g.: > > #ifndef FDTFILE > #define FDTFILE "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" > #else > #define FDTFILE > #endif That does not work. For one, it will cause a redefinition warning in the #else clause, for another it no longer allows to override FDTFILE. Unfortunately #ifdef CONFIG_DEFAULT_FDT_FILE does not work for an empty string. Do you see any reason not to set fdtfile for some boards? Regards, Andreas -- SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg)