Chander Kashyap | 0e7ab68 | 2011-08-18 22:37:19 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 Samsung Electronics |
| 3 | # |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Chander Kashyap | 0e7ab68 | 2011-08-18 22:37:19 +0000 | [diff] [blame] | 5 | # |
| 6 | |
Chander Kashyap | 488ef1a | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 7 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | e2aadb9 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 8 | hostprogs-y := tools/mkorigenspl |
| 9 | always := $(hostprogs-y) |
Chander Kashyap | 488ef1a | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 10 | |
Masahiro Yamada | e2aadb9 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 11 | # omit -O2 option to suppress |
| 12 | # warning: dereferencing type-punned pointer will break strict-aliasing rules |
| 13 | # |
| 14 | # TODO: |
| 15 | # Fix the root cause in tools/mkorigenspl.c and delete the following work-around |
| 16 | $(obj)tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS)) |
| 17 | else |
| 18 | obj-y += origen.o |
Chander Kashyap | 488ef1a | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 19 | endif |