Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
Chander Kashyap | b9a1ef2 | 2011-08-18 22:37:19 +0000 | [diff] [blame] | 2 | # |
| 3 | # Copyright (C) 2011 Samsung Electronics |
Chander Kashyap | b9a1ef2 | 2011-08-18 22:37:19 +0000 | [diff] [blame] | 4 | |
Masahiro Yamada | e183a17 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 5 | ifdef CONFIG_SPL_BUILD |
Masahiro Yamada | 7c8278a | 2014-02-04 17:24:25 +0900 | [diff] [blame] | 6 | # necessary to create built-in.o |
| 7 | obj- := __dummy__.o |
| 8 | |
Masahiro Yamada | e183a17 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 9 | hostprogs-y := tools/mkorigenspl |
| 10 | always := $(hostprogs-y) |
| 11 | |
| 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 | 9e41403 | 2014-02-04 17:24:24 +0900 | [diff] [blame] | 17 | $(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS)) |
Masahiro Yamada | e183a17 | 2014-02-04 17:24:11 +0900 | [diff] [blame] | 18 | else |
Masahiro Yamada | a79854a | 2013-10-21 11:53:37 +0900 | [diff] [blame] | 19 | obj-y += origen.o |
Chander Kashyap | 98a48c5 | 2011-08-18 22:37:20 +0000 | [diff] [blame] | 20 | endif |