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 | 350735c | 2014-02-04 17:24:25 +0900 | [diff] [blame] | 8 | # necessary to create built-in.o |
| 9 | obj- := __dummy__.o |
| 10 | |
Masahiro Yamada | e2aadb9 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 11 | hostprogs-y := tools/mkorigenspl |
| 12 | always := $(hostprogs-y) |
Chander Kashyap | 488ef1a | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 13 | |
Masahiro Yamada | e2aadb9 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 14 | # omit -O2 option to suppress |
| 15 | # warning: dereferencing type-punned pointer will break strict-aliasing rules |
| 16 | # |
| 17 | # TODO: |
| 18 | # Fix the root cause in tools/mkorigenspl.c and delete the following work-around |
Masahiro Yamada | 59f15f2 | 2014-02-04 17:24:24 +0900 | [diff] [blame] | 19 | $(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS)) |
Masahiro Yamada | e2aadb9 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 20 | else |
| 21 | obj-y += origen.o |
Chander Kashyap | 488ef1a | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 22 | endif |