Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Chander Kashyap | 0e7ab68 | 2011-08-18 22:37:19 +0000 | [diff] [blame] | 2 | # |
| 3 | # Copyright (C) 2011 Samsung Electronics |
Chander Kashyap | 0e7ab68 | 2011-08-18 22:37:19 +0000 | [diff] [blame] | 4 | |
Chander Kashyap | 488ef1a | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 5 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 350735c | 2014-02-04 17:24:25 +0900 | [diff] [blame] | 6 | # necessary to create built-in.o |
| 7 | obj- := __dummy__.o |
| 8 | |
Masahiro Yamada | e2aadb9 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 9 | hostprogs-y := tools/mkorigenspl |
| 10 | always := $(hostprogs-y) |
Chander Kashyap | 488ef1a | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 11 | |
Masahiro Yamada | e2aadb9 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 12 | # omit -O2 option to suppress |
| 13 | # warning: dereferencing type-punned pointer will break strict-aliasing rules |
| 14 | # |
| 15 | # TODO: |
| 16 | # 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] | 17 | $(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS)) |
Masahiro Yamada | e2aadb9 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 18 | else |
| 19 | obj-y += origen.o |
Chander Kashyap | 488ef1a | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 20 | endif |