From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Tue, 18 Oct 2011 10:11:12 +0200 Subject: [U-Boot] [PATCH v2] tools/env: use lib/crc32.c directly In-Reply-To: <1314715349-29644-1-git-send-email-biessmann@corscience.de> References: <1314715349-29644-1-git-send-email-biessmann@corscience.de> Message-ID: <1318925472-7863-1-git-send-email-biessmann@corscience.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Acked-by: Mike Frysinger --- total: 0 errors, 0 warnings, 27 lines checked 0001-tools-env-use-lib-crc32.c-directly.patch has no obvious style problems and is ready for submission. changes since v1: - also remove deletion of $(obj)/tools/crc32.c from Makefile which is not longer necessary Makefile | 2 +- tools/env/Makefile | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e9a153c..081e975 100644 --- a/Makefile +++ b/Makefile @@ -973,7 +973,7 @@ clobber: clean @rm -f $(obj)u-boot.kwb @rm -f $(obj)u-boot.imx @rm -f $(obj)u-boot.ubl - @rm -f $(obj)tools/{env/crc32.c,inca-swap-bytes} + @rm -f $(obj)tools/inca-swap-bytes @rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c @rm -fr $(obj)include/asm/proc $(obj)include/asm/arch $(obj)include/asm @rm -fr $(obj)include/generated 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 ######################################################################### -- 1.7.6.3