]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools/Makefile: Remove symlinks for remaining source files
authorPeter Tyser <ptyser@xes-inc.com>
Fri, 13 Mar 2009 23:54:47 +0000 (18:54 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 3 Apr 2009 23:14:28 +0000 (01:14 +0200)
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Makefile
tools/.gitignore
tools/Makefile

index 38426dc25c2c3a959333357ed1cc3a58741a19f7..f9edd9db3925668445d026b9ed61fda01d7b278d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3531,8 +3531,7 @@ clobber:  clean
        @rm -f $(OBJS) $(obj)*.bak $(obj)ctags $(obj)etags $(obj)TAGS \
                $(obj)cscope.* $(obj)*.*~
        @rm -f $(obj)u-boot $(obj)u-boot.map $(obj)u-boot.hex $(ALL)
-       @rm -f $(obj)tools/{crc32.c,env_embedded.c,env/crc32.c,md5.c,sha1.c,inca-swap-bytes}
-       @rm -f $(obj)tools/{image.c}
+       @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes}
        @rm -f $(obj)cpu/mpc824x/bedbug_603e.c
        @rm -f $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm
        @[ ! -d $(obj)nand_spl ] || find $(obj)nand_spl -name "*" -type l -print | xargs rm -f
index 7614766f63409c721792e1145c12534e4528080f..3a4136b5ec01b1811b67196e86e5aceeb019efff 100644 (file)
@@ -1,14 +1,9 @@
 /bmp_logo
-/crc32.c
 /envcrc
-/env_embedded.c
 /gen_eth_addr
 /img2srec
-/md5.c
 /mkimage
 /mpc86x_clk
 /ncp
-/sha1.c
 /ubsha1
 /inca-swap-bytes
-/image.c
index b1680adc0c9623ec07b3bea27e4ecb7deb791784..6ef9099663144a1023f65d067f1a870c38f7cd77 100644 (file)
@@ -83,11 +83,12 @@ BIN_FILES-$(CONFIG_VIDEO_LOGO) += bmp_logo$(SFX)
 BIN_FILES-$(CONFIG_INCA_IP) += inca-swap-bytes$(SFX)
 BIN_FILES-$(CONFIG_NETCONSOLE) += ncb$(SFX)
 
-# Source files which are symlinked from elsewhere in U-Boot
-OBJ_LINKS-y += env_embedded.o
-OBJ_LINKS-y += crc32.o md5.o
-OBJ_LINKS-y += sha1.o
-OBJ_LINKS-y += image.o
+# Source files which exist outside the tools directory
+EXT_OBJ_FILES-y += common/env_embedded.o
+EXT_OBJ_FILES-y += lib_generic/crc32.o
+EXT_OBJ_FILES-y += lib_generic/md5.o
+EXT_OBJ_FILES-y += lib_generic/sha1.o
+EXT_OBJ_FILES-y += common/image.o
 
 # Source files located in the tools directory
 OBJ_FILES-$(CONFIG_CMD_LOADS) += img2srec.o
@@ -126,7 +127,8 @@ LOGO_BMP= logos/atmel.bmp
 endif
 
 # now $(obj) is defined
-SRCS   := $(addprefix $(obj),$(OBJ_LINKS-y:.o=.c)) $(OBJ_FILES-y:.o=.c)
+SRCS   += $(addprefix $(SRCTREE)/,$(EXT_OBJ_FILES-y:.o=.c))
+SRCS   += $(OBJ_FILES-y:.o=.c)
 SRCS   += $(addprefix $(SRCTREE)/libfdt/,$(LIBFDT_OBJ_FILES-y:.o=.c))
 BINS   := $(addprefix $(obj),$(BIN_FILES-y))
 LIBFDT_OBJS    := $(addprefix $(obj),$(LIBFDT_OBJ_FILES-y))
@@ -197,16 +199,16 @@ $(obj)envcrc.o:   $(src)envcrc.c
 $(obj)ubsha1.o:        $(src)ubsha1.c
        $(CC) -g $(CFLAGS) -c -o $@ $<
 
-$(obj)crc32.o: $(obj)crc32.c
+$(obj)crc32.o: $(SRCTREE)/lib_generic/crc32.c
        $(CC) -g $(CFLAGS) -c -o $@ $<
 
-$(obj)md5.o:   $(obj)md5.c
+$(obj)md5.o: $(SRCTREE)/lib_generic/md5.c
        $(CC) -g $(CFLAGS) -c -o $@ $<
 
-$(obj)sha1.o:  $(obj)sha1.c
+$(obj)sha1.o: $(SRCTREE)/lib_gneric/sha1.c
        $(CC) -g $(CFLAGS) -c -o $@ $<
 
-$(obj)image.o: $(obj)image.c
+$(obj)image.o: $(SRCTREE)/common/image.c
        $(CC) -g $(FIT_CFLAGS) -c -o $@ $<
 
 $(obj)mkimage.o:       $(src)mkimage.c
@@ -253,29 +255,9 @@ else
        done
 endif
 
-$(obj)env_embedded.c:
-       @rm -f $(obj)env_embedded.c
-       ln -s $(src)../common/env_embedded.c $(obj)env_embedded.c
-
-$(obj)env_embedded.o:  $(obj)env_embedded.c
+$(obj)env_embedded.o: $(SRCTREE)/common/env_embedded.c
        $(CC) -g $(HOST_ENVIRO_CFLAGS) $(CPPFLAGS) -c -o $@ $<
 
-$(obj)crc32.c: $(SRCTREE)/include/u-boot/zlib.h
-       @rm -f $(obj)crc32.c
-       ln -s $(src)../lib_generic/crc32.c $(obj)crc32.c
-
-$(obj)md5.c:
-       @rm -f $(obj)md5.c
-       ln -s $(src)../lib_generic/md5.c $(obj)md5.c
-
-$(obj)sha1.c:
-       @rm -f $(obj)sha1.c
-       ln -s $(src)../lib_generic/sha1.c $(obj)sha1.c
-
-$(obj)image.c:
-       @rm -f $(obj)image.c
-       ln -s $(src)../common/image.c $(obj)image.c
-
 $(LOGO_H):     $(obj)bmp_logo $(LOGO_BMP)
        $(obj)./bmp_logo $(LOGO_BMP) >$@