xref: /openbmc/u-boot/board/samsung/origen/Makefile (revision 9e414032)
1b9a1ef21SChander Kashyap#
2b9a1ef21SChander Kashyap# Copyright (C) 2011 Samsung Electronics
3b9a1ef21SChander Kashyap#
41a459660SWolfgang Denk# SPDX-License-Identifier:	GPL-2.0+
5b9a1ef21SChander Kashyap#
6b9a1ef21SChander Kashyap
7e183a174SMasahiro Yamadaifdef CONFIG_SPL_BUILD
8e183a174SMasahiro Yamadahostprogs-y := tools/mkorigenspl
9e183a174SMasahiro Yamadaalways := $(hostprogs-y)
10e183a174SMasahiro Yamada
11e183a174SMasahiro Yamada# omit -O2 option to suppress
12e183a174SMasahiro Yamada#   warning: dereferencing type-punned pointer will break strict-aliasing rules
13e183a174SMasahiro Yamada#
14e183a174SMasahiro Yamada# TODO:
15e183a174SMasahiro Yamada# Fix the root cause in tools/mkorigenspl.c and delete the following work-around
16*9e414032SMasahiro Yamada$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
17e183a174SMasahiro Yamadaelse
18a79854a9SMasahiro Yamadaobj-y	+= origen.o
1998a48c5dSChander Kashyapendif
20