Makefile 516 B

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