blob: 37acba71e010f4c3a6b0198bd021f42bb8503aaf [file] [log] [blame]
Chander Kashyapb9a1ef22011-08-18 22:37:19 +00001#
2# Copyright (C) 2011 Samsung Electronics
3#
Wolfgang Denk1a459662013-07-08 09:37:19 +02004# SPDX-License-Identifier: GPL-2.0+
Chander Kashyapb9a1ef22011-08-18 22:37:19 +00005#
6
Masahiro Yamadae183a172014-02-04 17:24:11 +09007ifdef CONFIG_SPL_BUILD
8hostprogs-y := tools/mkorigenspl
9always := $(hostprogs-y)
10
11# 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
Masahiro Yamada9e414032014-02-04 17:24:24 +090016$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
Masahiro Yamadae183a172014-02-04 17:24:11 +090017else
Masahiro Yamadaa79854a2013-10-21 11:53:37 +090018obj-y += origen.o
Chander Kashyap98a48c52011-08-18 22:37:20 +000019endif