Skip to content
Snippets Groups Projects
Commit 290f1f99 authored by Soren Brinkmann's avatar Soren Brinkmann Committed by Michal Simek
Browse files

zynq: Use GPLed files for SPL


The latest Xilinx tools generate ps7_init files that are explicitly
available under GPL. Change the makefile to allow drop in of those files
for building the SPL.

Signed-off-by: default avatarSoren Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: default avatarJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Reviewed-and-tested-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 11ada922
No related branches found
No related tags found
No related merge requests found
ps7_init.[ch]
ps7_init_gpl.[ch]
......@@ -7,9 +7,11 @@
obj-y := board.o
# Please copy ps7_init.c/h from hw project to this directory
# Please copy ps7_init_gpl.c/h from hw project to this directory
obj-$(CONFIG_SPL_BUILD) += \
$(if $(wildcard $(srctree)/$(src)/ps7_init.c), ps7_init.o)
$(if $(wildcard $(srctree)/$(src)/ps7_init_gpl.c), ps7_init_gpl.o, \
$(if $(wildcard $(srctree)/$(src)/ps7_init.c), ps7_init.o legacy.o))
# Suppress "warning: function declaration isn't a prototype"
CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
CFLAGS_REMOVE_ps7_init.o := -Wstrict-prototypes
#warning usage of ps7_init files is deprecated please use ps7_init_gpl
......@@ -6,7 +6,7 @@
#define XIL_IO_H
/*
* This empty file is here because ps7_init.c exported by hw project
* This empty file is here because ps7_init_gpl.c exported by hw project
* has #include "xil_io.h" line.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment