Makefile 466 B

12345678910111213141516171819
  1. #
  2. # Copyright (C) 2011 Samsung Electronics
  3. #
  4. # SPDX-License-Identifier: GPL-2.0+
  5. #
  6. ifdef CONFIG_SPL_BUILD
  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