]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/samsung/origen/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-spi
[karo-tx-uboot.git] / board / samsung / origen / Makefile
1 #
2 # Copyright (C) 2011 Samsung Electronics
3 #
4 # SPDX-License-Identifier:      GPL-2.0+
5 #
6
7 ifdef CONFIG_SPL_BUILD
8 # necessary to create built-in.o
9 obj- := __dummy__.o
10
11 hostprogs-y := tools/mkorigenspl
12 always := $(hostprogs-y)
13
14 # omit -O2 option to suppress
15 #   warning: dereferencing type-punned pointer will break strict-aliasing rules
16 #
17 # TODO:
18 # Fix the root cause in tools/mkorigenspl.c and delete the following work-around
19 $(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS))
20 else
21 obj-y   += origen.o
22 endif