On Thursday, February 13, 2020 at 7:47:34 PM UTC+5:30, Jan Kiszka wrote:
>
> On 13.02.20 14:44, Vijai Kumar K wrote: 
> > Add support for building pine64-plus u-boot. Use mainline u-boot + ATF. 
> > 
> > Build only the necessary envtools. u-boot tools-only build is broken 
> > upstream and hence not supported here. 
>
> Actually, there is rarely the need to use self-built tools. Those 
> provided by Debian prebuilt are generally fine. 
>
> > 
> > Signed-off-by: Vijai Kumar K <vijaikumar...@gmail.com <javascript:>> 
> > --- 
> >   recipes-bsp/u-boot/files/pine64-plus-rules    | 32 ++++++++++++++++++ 
> >   .../u-boot-pine64-plus_2019.10-atf2.2.bb      | 33 
> +++++++++++++++++++ 
> >   2 files changed, 65 insertions(+) 
> >   create mode 100644 recipes-bsp/u-boot/files/pine64-plus-rules 
> >   create mode 100644 recipes-bsp/u-boot/
> u-boot-pine64-plus_2019.10-atf2.2.bb 
> > 
> > diff --git a/recipes-bsp/u-boot/files/pine64-plus-rules 
> b/recipes-bsp/u-boot/files/pine64-plus-rules 
> > new file mode 100644 
> > index 0000000..f6340f7 
> > --- /dev/null 
> > +++ b/recipes-bsp/u-boot/files/pine64-plus-rules 
> > @@ -0,0 +1,32 @@ 
> > +#!/usr/bin/make -f 
> > +# 
> > +# Jailhouse, a Linux-based partitioning hypervisor 
> > +# 
> > +# Copyright (c) Vijai Kumar K, 2020 
> > +# 
> > +# Authors: 
> > +#  Vijai Kumar K <vijaikumar...@gmail.com <javascript:>> 
> > +# 
> > +# SPDX-License-Identifier: MIT 
> > +# 
> > + 
> > +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) 
> > +export CROSS_COMPILE=$(DEB_HOST_GNU_TYPE)- 
> > +SET_CROSS_BUILD_TOOLS=CROSS_BUILD_TOOLS=y 
> > +endif 
> > +PARALLEL_BUILD=-j $(shell echo $$(($$(nproc) * 2))) 
> > + 
> > +override_dh_auto_build: 
> > +        $(MAKE) $(PARALLEL_BUILD) -C ../arm-trusted-firmware-* 
> PLAT=sun50i_a64 bl31 
> > +        $(MAKE) $(PARALLEL_BUILD) $(U_BOOT_CONFIG) 
> > +        BL31=$$(readlink -f 
> ../arm-trusted-firmware-*/build/sun50i_a64/release/bl31.bin) \ 
> > +        $(MAKE) $(PARALLEL_BUILD) $(U_BOOT_BIN) 
> > +        $(MAKE) $(PARALLEL_BUILD) $(SET_CROSS_BUILD_TOOLS) NO_SDL=1 
> envtools 
> > + 
> > +override_dh_auto_install: 
> > +        mv tools/env/lib.a tools/env/libubootenv.a 
> > + 
> > +override_dh_auto_test: 
> > + 
> > +%: 
> > +        CFLAGS= LDFLAGS= dh $@ --parallel 
> > diff --git a/recipes-bsp/u-boot/u-boot-pine64-plus_2019.10-atf2.2.bb 
> b/recipes-bsp/u-boot/u-boot-pine64-plus_2019.10-atf2.2.bb 
> > new file mode 100644 
> > index 0000000..4842ef8 
> > --- /dev/null 
> > +++ b/recipes-bsp/u-boot/u-boot-pine64-plus_2019.10-atf2.2.bb 
> > @@ -0,0 +1,33 @@ 
> > +# 
> > +# Jailhouse, a Linux-based partitioning hypervisor 
> > +# 
> > +# Copyright (c) Vijai Kumar K, 2020 
> > +# 
> > +# Authors: 
> > +#  Vijai Kumar K <vijaikumar...@gmail.com <javascript:>> 
> > +# 
> > +# SPDX-License-Identifier: MIT 
> > +# 
> > + 
> > +U_BOOT_PV="${@d.getVar('PV').split('-atf')[0]}" 
> > +ATF_PV="${@d.getVar('PV').split('-atf')[1]}" 
> > + 
> > +require recipes-bsp/u-boot/u-boot-custom.inc 
> > +require 
> recipes-bsp/arm-trusted-firmware/arm-trusted-firmware_${ATF_PV}.inc 
> > + 
> > +SRC_URI += " \ 
> > +    
> ftp://ftp.denx.de/pub/u-boot/u-boot-${U_BOOT_PV}.tar.bz2;name=u-boot \ 
> > +    file://pine64-plus-rules \ 
> > +    " 
> > +SRC_URI[u-boot.sha256sum] = 
> "8d6d6070739522dd236cba7055b8736bfe92b4fac0ea18ad809829ca79667014" 
> > + 
> > +U_BOOT_CONFIG="pine64_plus_defconfig" 
> > +U_BOOT_BIN="u-boot-sunxi-with-spl.bin" 
> > + 
> > +BUILD_DEPENDS += ", libssl-dev, swig:native, python-dev:native" 
>
> Where do those dependencies come from? libssl-dev is understood, but the 
> others? Just curious. 
>

swig is needed for scripts/dtc/pylibfdt/ which comes as a dependency from 
binman.

python-dev is not actually needed. I might have introduced it as part of 
debugging some compilation issue.
I will check and remove it in v2.


> > + 
> > +S = "${WORKDIR}/u-boot-${U_BOOT_PV}" 
> > + 
> > +do_prepare_build_append() { 
> > +    cp ${WORKDIR}/pine64-plus-rules ${S}/debian/rules 
> > +} 
> > 
>
> Jan 
>
> -- 
> Siemens AG, Corporate Technology, CT RDA IOT SES-DE 
> Corporate Competence Center Embedded Linux 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/acffe83e-3f47-4d29-bef5-56ce542b7208%40googlegroups.com.

Reply via email to