summaryrefslogtreecommitdiff
path: root/tools/env
diff options
context:
space:
mode:
authorAndreas Bießmann <biessmann@corscience.de>2011-10-17 22:11:12 +0000
committerStefano Babic <sbabic@denx.de>2011-11-22 08:49:21 +0100
commitdca61f0128a15bfc4fdefbbdb4a5f6c10b0c8f0b (patch)
tree92ba437ae79174defb3e2017d8a425b14dfbe898 /tools/env
parentff85628674c946ad427a61a245052d98e6532392 (diff)
downloadu-boot-imx-dca61f0128a15bfc4fdefbbdb4a5f6c10b0c8f0b.zip
u-boot-imx-dca61f0128a15bfc4fdefbbdb4a5f6c10b0c8f0b.tar.gz
u-boot-imx-dca61f0128a15bfc4fdefbbdb4a5f6c10b0c8f0b.tar.bz2
tools/env: use lib/crc32.c directly
Instead of linking the file into $(obj) tree use directly the source file. This also prevents littered source tree if building not out-of-tree. Signed-off-by: Andreas Bießmann <biessmann@corscience.de> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tools/env')
-rw-r--r--tools/env/Makefile7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/env/Makefile b/tools/env/Makefile
index 2f7a59c..28b73da 100644
--- a/tools/env/Makefile
+++ b/tools/env/Makefile
@@ -23,7 +23,7 @@
include $(TOPDIR)/config.mk
-HOSTSRCS := $(obj)crc32.c fw_env.c fw_env_main.c
+HOSTSRCS := $(SRCTREE)/lib/crc32.c fw_env.c fw_env_main.c
HEADERS := fw_env.h
# Compile for a hosted environment on the target
@@ -43,10 +43,7 @@ $(obj)fw_printenv: $(HOSTSRCS) $(HEADERS)
$(HOSTCC) $(HOSTCFLAGS_NOPED) $(HOSTLDFLAGS) -o $@ $(HOSTSRCS)
clean:
- rm -f $(obj)fw_printenv $(obj)crc32.c
-
-$(obj)crc32.c:
- ln -s $(src)../../lib/crc32.c $(obj)crc32.c
+ rm -f $(obj)fw_printenv
#########################################################################