From patchwork Tue Aug 30 14:42:29 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_Bie=C3=9Fmann?= X-Patchwork-Id: 112349 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 02F21B6F7F for ; Wed, 31 Aug 2011 00:47:45 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 755CC28093; Tue, 30 Aug 2011 16:47:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8M2GIPl7Ndtd; Tue, 30 Aug 2011 16:47:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AAE362807E; Tue, 30 Aug 2011 16:47:39 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F3BF22807E for ; Tue, 30 Aug 2011 16:47:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YPacuT0u-Iz3 for ; Tue, 30 Aug 2011 16:47:35 +0200 (CEST) X-Greylist: delayed 304 seconds by postgrey-1.27 at theia; Tue, 30 Aug 2011 16:47:34 CEST X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by theia.denx.de (Postfix) with ESMTP id B9D3328077 for ; Tue, 30 Aug 2011 16:47:34 +0200 (CEST) Received: from corscience.de (DSL01.212.114.252.242.ip-pool.NEFkom.net [212.114.252.242]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MAGC5-1R5GDn09rl-00BRlv; Tue, 30 Aug 2011 16:42:30 +0200 Received: from azuregos.er.corscience.de (unknown [192.168.102.103]) by corscience.de (Postfix) with ESMTP id 8860651FE4; Tue, 30 Aug 2011 16:42:29 +0200 (CEST) From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= To: u-boot@lists.denx.de Date: Tue, 30 Aug 2011 16:42:29 +0200 Message-Id: <1314715349-29644-1-git-send-email-biessmann@corscience.de> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 X-Provags-ID: V02:K0:8su8bydRAGyRw9BswiYhhiqC+q2+c1UKtLtrkaKXqSr LOmfUR4VHVyjLjKyfVifSJcKJfYaiicE4Gr/w1WsNmT5BrdQvZ tdBO/zM8jCa4jq5EVoaTCdfR5ufooDrip02gXhhboeImJ7pOhI LZaXM0TF4kxrZOQo0zeci63j4BhR1QSKiwXYMZV5+6CD4hVeBb mpttlV2piLY98uoWkc7o9iAIGiqCuTHdcliUF+PXyLuFCxf+CH M8XaSyAKvN6BtZ7ejGr44aqCo7vLMF/hAZplhCtRJ8rsMEkEo+ zgXwovswUw7Bndd8DvbXBXjsRQNWQaTa0SV5ISbjiJ4MbNtuhj pSHS++TIKNoFDYBxoYuREBGyhKBbPqucD2G1R40O+845DihFWt XoqHClxAdjPxw== Cc: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Subject: [U-Boot] [PATCH] tools/env: use lib/crc32.c directly X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@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 --- tools/env/Makefile | 7 ++----- 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 #########################################################################