Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #
  2. # Copyright 2010 Freescale Semiconductor, Inc.
  3. #
  4. # This program is free software; you can redistribute it and/or modify it
  5. # under the terms of the GNU General Public License as published by the Free
  6. # Software Foundation; either version 2 of the License, or (at your option)
  7. # any later version.
  8. #
  9. include $(TOPDIR)/config.mk
  10. LIB = $(obj)lib$(BOARD).o
  11. MINIMAL=
  12. ifdef CONFIG_SPL_BUILD
  13. ifdef CONFIG_SPL_INIT_MINIMAL
  14. MINIMAL=y
  15. endif
  16. endif
  17. ifdef MINIMAL
  18. COBJS-y += spl_minimal.o tlb.o law.o
  19. else
  20. COBJS-y += $(BOARD).o
  21. COBJS-y += ddr.o
  22. COBJS-y += law.o
  23. COBJS-y += tlb.o
  24. COBJS-$(CONFIG_FSL_DIU_FB) += diu.o
  25. endif
  26. SRCS := $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
  27. OBJS := $(addprefix $(obj),$(COBJS-y))
  28. SOBJS := $(addprefix $(obj),$(SOBJS))
  29. $(LIB): $(obj).depend $(OBJS) $(SOBJS)
  30. $(call cmd_link_o_target, $(OBJS))
  31. #########################################################################
  32. # defines $(obj).depend target
  33. include $(SRCTREE)/rules.mk
  34. sinclude $(obj).depend
  35. #########################################################################