]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/cray/L1/Makefile
Merge branch 'master' of git://git.denx.de/u-boot-nds32
[karo-tx-uboot.git] / board / cray / L1 / Makefile
1 #
2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 include $(TOPDIR)/config.mk
9
10 LIB     = $(obj)lib$(BOARD).o
11
12 COBJS   = $(BOARD).o flash.o
13 SOBJS   = init.o
14
15
16 SRCS    := $(SOBJS:.o=.S) $(COBJS:.o=.c)
17 OBJS    := $(addprefix $(obj),$(COBJS))
18 SOBJS   := $(addprefix $(obj),$(SOBJS))
19
20 # HACK: depend needs bootscript.c, which needs tools/mkimage, which is not
21 # built in the depend stage.  So... put bootscript.o here, not in OBJS
22 $(LIB): $(OBJS) $(SOBJS) $(obj)bootscript.o
23         $(call cmd_link_o_target, $^)
24
25 $(obj)$(BOARD).o : $(src)$(BOARD).c $(obj)bootscript.o
26
27 $(obj)bootscript.c: $(obj)bootscript.image
28         od -t x1 -v -A x $^ | awk -f x2c.awk > $@
29
30 $(obj)bootscript.image: $(src)bootscript.hush $(src)Makefile
31         -$(OBJTREE)/tools/mkimage -A ppc -O linux -T script -C none -a 0 -e 0 -n bootscript -d $(src)bootscript.hush $@
32
33 #########################################################################
34
35 # defines $(obj).depend target
36 include $(SRCTREE)/rules.mk
37
38 sinclude $(obj).depend
39
40 #########################################################################