From: Michal Simek Date: Tue, 14 May 2019 08:45:10 -0700 Subject: [U-Boot] [PATCH v3 1/2] arm64: zynqmp: spl: install a PMU firmware config object at runtime In-Reply-To: <3ee7b580-b65f-86d4-cb7d-380316823e61@lucaceresoli.net> References: <20190415164738.28024-1-luca@lucaceresoli.net> <20190415164738.28024-2-luca@lucaceresoli.net> <82e45722-0bd2-bf72-7daa-fd59c9b94000@xilinx.com> <9879c0e1-9939-8d51-5f04-d7d5a2b74f5f@lucaceresoli.net> <998d13a6-dffc-c9fa-9487-d5030b7dbe2e@xilinx.com> <3ee7b580-b65f-86d4-cb7d-380316823e61@lucaceresoli.net> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 14. 05. 19 8:06, Luca Ceresoli wrote: > Hi Michal, All, > > On 07/05/19 16:11, Luca Ceresoli wrote: >> Hi, >> >> On 06/05/19 17:56, Michal Simek wrote: >>> Hi, >>> >>> snip. >>> >>>>>> +$(obj)/pm_cfg_obj.o: $(obj)/pm_cfg_obj.bin >>>>>> + >>>>>> +CFLAGS_zynqmp.o += -DZYNQMP_LOAD_PM_CFG_OBJ >>>>> >>>>> I am no fan of passing another object. you have >>>>> CONFIG_ZYNQMP_LOAD_PM_CFG_OBJ_FILE already and this can be used instead. >>>> >>>> Not sure I got your point here. I'm not passing an object, just setting >>>> a define (without value). This is used to enable code under #ifdef in C >>>> files. >>> >>> Sorry I meant new config option. It should be enough to use CFG_OBJ_FILE >>> everywhere and not create another config option which is just used the >>> same way. >> >> I totally agree. But I would need to check whether >> CONFIG_ZYNQMP_LOAD_PM_CFG_OBJ_FILE is empty or not, and I don't think >> the C preprocessor can do that. > > Any news on this issue? It's the only issue still open on this series, > and as said, I don't think there's a way to avoid the extra define. As > such, unless a smart solution emerges suddenly, I'm sending v4 in one or > two days with all the other issues fixed. I didn't spend any time on this. Try to grep it. If you don't file anything please add there TODO and let's fix it in future. Thanks, Michal