From: Mark Kettenis Date: Tue, 5 Feb 2019 22:28:41 +0100 (CET) Subject: [U-Boot] [PATCH] rockchip: make_fit_atf: Use BL31 environ variable for file location In-Reply-To: <20190205121425.2ebcdce253704de87696bb25@bidouilliste.com> (message from Emmanuel Vadot on Tue, 5 Feb 2019 12:14:25 +0100) References: <20190205105428.39890-1-manu@freebsd.org> <20190205121425.2ebcdce253704de87696bb25@bidouilliste.com> Message-ID: <9e5d767e4b8edcf4@bloch.sibelius.xs4all.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Date: Tue, 5 Feb 2019 12:14:25 +0100 > From: Emmanuel Vadot > > On Tue, 5 Feb 2019 12:05:57 +0100 > Philipp Tomsich wrote: > > > > > > > > On 05.02.2019, at 11:54, Emmanuel Vadot wrote: > > > > > > Other make_fit script (like imx or sunxi) use the BL31 environment > > > variable to indicate the location of the file. > > > Also do that for rockchip so we don't need to copy the file in the source > > > directory. > > > > > > Signed-off-by: Emmanuel Vadot > > > --- > > > arch/arm/mach-rockchip/make_fit_atf.py | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/arch/arm/mach-rockchip/make_fit_atf.py b/arch/arm/mach-rockchip/make_fit_atf.py > > > index d1faff1957..7bf58e3dd1 100755 > > > --- a/arch/arm/mach-rockchip/make_fit_atf.py > > > +++ b/arch/arm/mach-rockchip/make_fit_atf.py > > > @@ -194,7 +194,7 @@ def get_bl31_segments_info(bl31_file_name): > > > > > > def main(): > > > uboot_elf="./u-boot" > > > - bl31_elf="./bl31.elf" > > > + bl31_elf=os.getenv("BL31", "./bl31.elf?) > > > > Could we have something more specific than BL31 (e.g. UBOOT_BL31_PATH)? > > Or is this the same variable name that?s used for imx and sunxi? > > The same variable name is used for imx and sunxi. Right. This would make building RK3399 firmware in the OpenBSD ports tree much easier/cleaner.