1*4882a593Smuzhiyun# 2*4882a593Smuzhiyun# Copyright (C) 2011 Samsung Electronics 3*4882a593Smuzhiyun# 4*4882a593Smuzhiyun# SPDX-License-Identifier: GPL-2.0+ 5*4882a593Smuzhiyun# 6*4882a593Smuzhiyun 7*4882a593Smuzhiyunifdef CONFIG_SPL_BUILD 8*4882a593Smuzhiyun# necessary to create built-in.o 9*4882a593Smuzhiyunobj- := __dummy__.o 10*4882a593Smuzhiyun 11*4882a593Smuzhiyunhostprogs-y := tools/mkorigenspl 12*4882a593Smuzhiyunalways := $(hostprogs-y) 13*4882a593Smuzhiyun 14*4882a593Smuzhiyun# omit -O2 option to suppress 15*4882a593Smuzhiyun# warning: dereferencing type-punned pointer will break strict-aliasing rules 16*4882a593Smuzhiyun# 17*4882a593Smuzhiyun# TODO: 18*4882a593Smuzhiyun# Fix the root cause in tools/mkorigenspl.c and delete the following work-around 19*4882a593Smuzhiyun$(obj)/tools/mkorigenspl: HOSTCFLAGS:=$(filter-out -O2,$(HOSTCFLAGS)) 20*4882a593Smuzhiyunelse 21*4882a593Smuzhiyunobj-y += origen.o 22*4882a593Smuzhiyunendif 23