blob: 44691af09f471234a029fd3baf7cb3b920a82b0e [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
Chander Kashyap0e7ab682011-08-18 22:37:19 +00002#
3# Copyright (C) 2011 Samsung Electronics
Chander Kashyap0e7ab682011-08-18 22:37:19 +00004
Chander Kashyap488ef1a2011-08-18 22:37:20 +00005ifdef CONFIG_SPL_BUILD
Masahiro Yamada350735c2014-02-04 17:24:25 +09006# necessary to create built-in.o
7obj- := __dummy__.o
8
Masahiro Yamadae2aadb92014-02-04 17:24:11 +09009hostprogs-y := tools/mkorigenspl
10always := $(hostprogs-y)
Chander Kashyap488ef1a2011-08-18 22:37:20 +000011
Masahiro Yamadae2aadb92014-02-04 17:24:11 +090012# 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 Yamada59f15f22014-02-04 17:24:24 +090017$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
Masahiro Yamadae2aadb92014-02-04 17:24:11 +090018else
19obj-y += origen.o
Chander Kashyap488ef1a2011-08-18 22:37:20 +000020endif