xref: /openbmc/u-boot/board/samsung/origen/Makefile (revision 7c8278a8)
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
8*7c8278a8SMasahiro Yamada# necessary to create built-in.o
9*7c8278a8SMasahiro Yamadaobj- := __dummy__.o
10*7c8278a8SMasahiro Yamada
11e183a174SMasahiro Yamadahostprogs-y := tools/mkorigenspl
12e183a174SMasahiro Yamadaalways := $(hostprogs-y)
13e183a174SMasahiro Yamada
14e183a174SMasahiro Yamada# omit -O2 option to suppress
15e183a174SMasahiro Yamada#   warning: dereferencing type-punned pointer will break strict-aliasing rules
16e183a174SMasahiro Yamada#
17e183a174SMasahiro Yamada# TODO:
18e183a174SMasahiro Yamada# Fix the root cause in tools/mkorigenspl.c and delete the following work-around
199e414032SMasahiro Yamada$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
20e183a174SMasahiro Yamadaelse
21a79854a9SMasahiro Yamadaobj-y	+= origen.o
2298a48c5dSChander Kashyapendif
23