Hi Simon, Am 08.05.2017 um 18:38 schrieb Simon Glass: > On 1 May 2017 at 11:48, Andreas Färber <afaer...@suse.de> 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) _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot