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