]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - board/cray/L1/Makefile
2 # (C) Copyright 2000-2006
3 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 # SPDX-License-Identifier: GPL-2.0+
8 include $(TOPDIR
)/config.mk
10 LIB
= $(obj
)lib
$(BOARD
).o
12 COBJS
= $(BOARD
).o flash.o
16 SRCS
:= $(SOBJS
:.o
=.S
) $(COBJS
:.o
=.c
)
17 OBJS
:= $(addprefix $(obj
),$(COBJS
))
18 SOBJS
:= $(addprefix $(obj
),$(SOBJS
))
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
, $^
)
25 $(obj
)$(BOARD
).o
: $(src
)$(BOARD
).c
$(obj
)bootscript.o
27 $(obj
)bootscript.c
: $(obj
)bootscript.image
28 od
-t x1
-v
-A x
$^ | awk
-f x2c.awk
> $@
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
$@
33 #########################################################################
35 # defines $(obj).depend target
36 include $(SRCTREE
)/rules.mk
38 sinclude
$(obj
).depend
40 #########################################################################