1 #*************************************************************************************
2 #* FILE NAME: makefile
3 #*
4 #* DESCRIPTION: Makes the ethernet module for the IBL
5 #*
6 #*************************************************************************************/
8 ifndef IBL_ROOT
9 export IBL_ROOT= ../../..
10 endif
12 ECODIR= $(IBL_ROOT)/ethboot
14 CSRC= ethboot.c
16 .PHONY: ethboot
19 include $(IBL_ROOT)/make/$(ARCH)/makeeco.mk
23 C6X_C_DIR+= $(IBL_ROOT)
24 C6X_C_DIR+= ;$(IBL_ROOT)/arch/$(ARCH)
25 C6X_C_DIR+= ;$(IBL_ROOT)/device
26 C6X_C_DIR+= ;$(IBL_ROOT)/device/$(TARGET)
27 C6X_C_DIR+= ;$(IBL_ROOT)/ethboot
28 C6X_C_DIR+= ;$(IBL_ROOT)/driver/eth
29 C6X_C_DIR+= ;$(STDINC)
30 C6X_C_DIR+= ;$(IBL_ROOT)/hw/macs
31 C6X_C_DIR+= ;$(IBL_ROOT)/hw/mdio
32 C6X_C_DIR+= ;$(IBL_ROOT)/hw/sgmii
33 export C6X_C_DIR
37 ethboot: gen_cdefdep makefile $(OBJS)
40 $(OBJS): cdefdep
42 gen_cdefdep:
43 @echo Checking command line dependencies
44 @echo $(ENDIAN) $(TARGET) $(CDEFS) > cdefdep.tmp
45 @sh -c 'if diff -q cdefdep.tmp cdefdep ; then echo same ; else $(CP) cdefdep.tmp cdefdep ; fi '