Michal Simek | f22651c | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 1 | # |
| 2 | # (C) Copyright 2000-2006 |
| 3 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 4 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | # SPDX-License-Identifier: GPL-2.0+ |
Michal Simek | f22651c | 2012-09-28 09:56:37 +0000 | [diff] [blame] | 6 | # |
| 7 | |
Masahiro Yamada | a79854a | 2013-10-21 11:53:37 +0900 | [diff] [blame] | 8 | obj-y := board.o |
Masahiro Yamada | 66e6715 | 2014-05-12 12:18:30 +0900 | [diff] [blame] | 9 | |
Soren Brinkmann | 290f1f9 | 2014-10-30 10:52:43 -0700 | [diff] [blame] | 10 | # Please copy ps7_init_gpl.c/h from hw project to this directory |
Masahiro Yamada | 66e6715 | 2014-05-12 12:18:30 +0900 | [diff] [blame] | 11 | obj-$(CONFIG_SPL_BUILD) += \ |
Soren Brinkmann | 290f1f9 | 2014-10-30 10:52:43 -0700 | [diff] [blame] | 12 | $(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 Yamada | 3274749 | 2014-05-29 14:46:13 +0900 | [diff] [blame] | 14 | |
| 15 | # Suppress "warning: function declaration isn't a prototype" |
Soren Brinkmann | 290f1f9 | 2014-10-30 10:52:43 -0700 | [diff] [blame] | 16 | CFLAGS_REMOVE_ps7_init_gpl.o := -Wstrict-prototypes |
Masahiro Yamada | 3274749 | 2014-05-29 14:46:13 +0900 | [diff] [blame] | 17 | CFLAGS_REMOVE_ps7_init.o := -Wstrict-prototypes |