blob: 31e88f4424600e80e411c720e448cfcb10b49d90 [file] [log] [blame]
Chander Kashyap0e7ab682011-08-18 22:37:19 +00001#
2# Copyright (C) 2011 Samsung Electronics
3#
Wolfgang Denkd79de1d2013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chander Kashyap0e7ab682011-08-18 22:37:19 +00005#
6
Chander Kashyap488ef1a2011-08-18 22:37:20 +00007ifdef CONFIG_SPL_BUILD
Masahiro Yamadae2aadb92014-02-04 17:24:11 +09008hostprogs-y := tools/mkorigenspl
9always := $(hostprogs-y)
Chander Kashyap488ef1a2011-08-18 22:37:20 +000010
Masahiro Yamadae2aadb92014-02-04 17:24:11 +090011# 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))
17else
18obj-y += origen.o
Chander Kashyap488ef1a2011-08-18 22:37:20 +000019endif