Andre Schwarz | a1293e5 | 2008-06-10 09:14:05 +0200 | [diff] [blame] | 1 | # |
Kumar Gala | 4c2e3da | 2009-07-28 21:49:52 -0500 | [diff] [blame] | 2 | # Copyright (C) Freescale Semiconductor, Inc. 2006. |
Andre Schwarz | a1293e5 | 2008-06-10 09:14:05 +0200 | [diff] [blame] | 3 | # |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 4 | # SPDX-License-Identifier: GPL-2.0+ |
Andre Schwarz | a1293e5 | 2008-06-10 09:14:05 +0200 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | include $(TOPDIR)/config.mk |
| 8 | |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 9 | LIB = $(obj)lib$(BOARD).o |
Andre Schwarz | a1293e5 | 2008-06-10 09:14:05 +0200 | [diff] [blame] | 10 | |
| 11 | COBJS := $(BOARD).o pci.o fpga.o |
| 12 | |
| 13 | SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) |
| 14 | OBJS := $(addprefix $(obj),$(COBJS)) |
| 15 | SOBJS := $(addprefix $(obj),$(SOBJS)) |
| 16 | |
| 17 | $(LIB): $(obj).depend $(OBJS) |
Sebastien Carlier | 6d8962e | 2010-11-05 15:48:07 +0100 | [diff] [blame] | 18 | $(call cmd_link_o_target, $(OBJS)) |
Wolfgang Denk | 2e4f35d | 2010-05-15 20:22:21 +0200 | [diff] [blame] | 19 | @mkimage -T script -C none -n M7_script -d bootscript $(obj)bootscript.img |
Andre Schwarz | a1293e5 | 2008-06-10 09:14:05 +0200 | [diff] [blame] | 20 | |
Andre Schwarz | a1293e5 | 2008-06-10 09:14:05 +0200 | [diff] [blame] | 21 | ######################################################################### |
| 22 | |
| 23 | include $(SRCTREE)/rules.mk |
| 24 | |
| 25 | sinclude $(obj).depend |
| 26 | |
| 27 | ######################################################################### |