Merge tag 'efi-2020-07-rc6' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[oweals/u-boot.git] / board / samsung / origen / Makefile
1 # SPDX-License-Identifier: GPL-2.0+
2 #
3 # Copyright (C) 2011 Samsung Electronics
4
5 ifdef CONFIG_SPL_BUILD
6 # necessary to create built-in.o
7 obj- := __dummy__.o
8
9 hostprogs-y := tools/mkorigenspl
10 always := $(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))
18 else
19 obj-y   += origen.o
20 endif