[meta-xilinx] [PATCH 1/2] u-boot-xlnx.inc : Add support for building working SPL.

Mike Looijmans mike.looijmans at topic.nl
Fri Oct 10 04:32:30 PDT 2014


On 10/09/2014 08:09 PM, Philip Balister wrote:
> You need to add the files ps7_init.[ch] via a board specific
> SRC_URI append. The ps7 files should be GPL licensed to avoid
> license headaches.
>
> Signed-off-by: Philip Balister <philip at balister.org>
> ---
>   recipes-bsp/u-boot/u-boot-xlnx.inc | 22 +++++++++++++++++++++-
>   1 file changed, 21 insertions(+), 1 deletion(-)
>
> diff --git a/recipes-bsp/u-boot/u-boot-xlnx.inc b/recipes-bsp/u-boot/u-boot-xlnx.inc
> index ee6b32c..6f5e5c6 100644
> --- a/recipes-bsp/u-boot/u-boot-xlnx.inc
> +++ b/recipes-bsp/u-boot/u-boot-xlnx.inc
> @@ -4,7 +4,27 @@ LICENSE = "GPLv2+"
>
>   XILINX_EXTENSION = "-xilinx"
>
> -FILESEXTRAPATHS += "${THISDIR}/u-boot-xlnx:"
> +FILESEXTRAPATHS += "${THISDIR}/u-boot-xlnx:${THISDIR}/${MACHINE}:"

This line shouldn't be needed. BB will look into $MACHINE subdirectories 
automatically, because of override rules.

>   SRC_URI = "git://github.com/Xilinx/u-boot-xlnx.git;protocol=https"
>
> +SPL_BINARY = "boot.bin"
> +UBOOT_SUFFIX = "img"
> +
> +do_configure_prepend () {
> +	if test -e ${WORKDIR}/ps7_init.h; then
> +		cp ${WORKDIR}/ps7_init.h ${S}/board/xilinx/zynq/
> +		cp ${WORKDIR}/ps7_init.c ${S}/board/xilinx/zynq/
> +	fi
> +}
> +
> +do_deploy_append () {
> +	if test -e ${WORKDIR}/uEnv.txt; then
> +		cp ${WORKDIR}/uEnv.txt ${DEPLOYDIR}
> +	fi
> +	if test -e ${WORKDIR}fpga.bin; then
> +		cp ${WORKDIR}/fpga.bin ${DEPLOYDIR}
> +	fi
> +}
> +
>   include u-boot-extra.inc
> +
>



Met vriendelijke groet / kind regards,

Mike Looijmans

TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax:  (+31) (0) 499 33 69 70
E-mail: mike.looijmans at topic.nl
Website: www.topic.nl

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacatures/topic-zoekt-software-engineers/




More information about the meta-xilinx mailing list