xref: /openbmc/u-boot/board/samsung/origen/Makefile (revision 66dae3bb)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# Copyright (C) 2011 Samsung Electronics
4
5ifdef CONFIG_SPL_BUILD
6# necessary to create built-in.o
7obj- := __dummy__.o
8
9hostprogs-y := tools/mkorigenspl
10always := $(hostprogs-y)
11
12# 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
17$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
18else
19obj-y	+= origen.o
20endif
21