blob: 3b1eb4f74ad17ee42fc270c24f8bd08253934aa3 [file] [log] [blame]
Michal Simekaf482d52012-09-28 09:56:37 +00001#
2# (C) Copyright 2000-2006
3# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02005# SPDX-License-Identifier: GPL-2.0+
Michal Simekaf482d52012-09-28 09:56:37 +00006#
7
Masahiro Yamada5d23de52013-10-21 11:53:37 +09008obj-y := board.o
Masahiro Yamadac2d10792014-05-12 12:18:30 +09009
Soren Brinkmann00685432014-10-30 10:52:43 -070010# Please copy ps7_init_gpl.c/h from hw project to this directory
Masahiro Yamadac2d10792014-05-12 12:18:30 +090011obj-$(CONFIG_SPL_BUILD) += \
Soren Brinkmann00685432014-10-30 10:52:43 -070012 $(if $(wildcard $(srctree)/$(src)/ps7_init_gpl.c), ps7_init_gpl.o, \
13 $(if $(wildcard $(srctree)/$(src)/ps7_init.c), ps7_init.o legacy.o))
Masahiro Yamada50ee0662014-05-29 14:46:13 +090014
15# Suppress "warning: function declaration isn't a prototype"
Soren Brinkmann00685432014-10-30 10:52:43 -070016CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes
Masahiro Yamada50ee0662014-05-29 14:46:13 +090017CFLAGS_REMOVE_ps7_init.o := -Wstrict-prototypes