|
@@ -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
|