From patchwork Mon Oct 14 13:22:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 283218 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 1038D2C0342 for ; Tue, 15 Oct 2013 00:22:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 02A3293A8C; Mon, 14 Oct 2013 13:22:25 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id S3NeXDyG9JiM; Mon, 14 Oct 2013 13:22:24 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 74E6593A89; Mon, 14 Oct 2013 13:22:24 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 2E3AB1BF98D for ; Mon, 14 Oct 2013 13:22:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 28EF08C379 for ; Mon, 14 Oct 2013 13:22:23 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FbOd9P09XnwK for ; Mon, 14 Oct 2013 13:22:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by whitealder.osuosl.org (Postfix) with ESMTPS id C994A8C140 for ; Mon, 14 Oct 2013 13:22:22 +0000 (UTC) Received: by mail-pa0-f42.google.com with SMTP id lj1so7534943pab.15 for ; Mon, 14 Oct 2013 06:22:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=QNYOELU86xQsXHEeF8IJnvsQMv0j8E2gikTs1M9L1y4=; b=NW+3Ah/2Tvw23xanvy5yQ/xDvvFS6ndFXsc0+9THuLAUbLTZ+nfqwRSpnfyAcSGxFI vWtCR2IDdeK2NAWXZ26pxZyudCSpt5+VyRKfejtZ32SsNlmh+2peu1olQWNshEyZOcR7 YtxXNi7zJeurnvtJavM50tvycs6j3VkWPB21yrpfDuRuRBXWY3NA35GCFCWAly50+Pv6 jMydW30uT3uwgx1wrxwwGUEO00YqrnszUFBIZ4RlPKqdAMdaDLHHYZEe88UJ9xGHyess KorsU1S/2oJu1RQrhhxJIaMWbxqicI4Q4PACIXsEEfX2v0RcjHVkpgQZKv6drJdC/wFo sA8A== X-Gm-Message-State: ALoCoQlppT3X9a6tkYb5wP5WEoja5V6lu0nzIVd7hqD5J48Ze5jAo11zpLW6yYrBoR8LqoULTXpt X-Received: by 10.66.158.196 with SMTP id ww4mr37952003pab.57.1381756942598; Mon, 14 Oct 2013 06:22:22 -0700 (PDT) Received: from [218.164.156.193] (218-164-156-193.dynamic.hinet.net. [218.164.156.193]) by mx.google.com with ESMTPSA id fb3sm11836248pbc.29.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 14 Oct 2013 06:22:22 -0700 (PDT) Message-ID: <1381756939.15266.2.camel@phoenix> From: Axel Lin To: Peter Korsgaard Date: Mon, 14 Oct 2013 21:22:19 +0800 In-Reply-To: <1381756890.15266.1.camel@phoenix> References: <1381756890.15266.1.camel@phoenix> X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Cc: buildroot@busybox.net Subject: [Buildroot] [PATCH 2/3] sam-ba: specify ln -sf to remove existing destination file X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This fixes below build error when executing "make host-sam-ba-dirclean; make host-sam-ba-rebuild". ln -s ../../opt/sam-ba/sam-ba /opt/test/br-x86/buildroot/output/host/usr/bin/sam-ba ln: failed to create symbolic link '/opt/test/br-x86/buildroot/output/host/usr/bin/sam-ba': File exists make: *** [/opt/test/br-x86/buildroot/output/build/host-sam-ba-2.12/.stamp_host_installed] Error 1 Signed-off-by: Axel Lin --- package/sam-ba/sam-ba.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/sam-ba/sam-ba.mk b/package/sam-ba/sam-ba.mk index e425503..8e24fa6 100644 --- a/package/sam-ba/sam-ba.mk +++ b/package/sam-ba/sam-ba.mk @@ -24,7 +24,7 @@ endef define HOST_SAM_BA_INSTALL_CMDS mkdir -p $(HOST_DIR)/opt/sam-ba/ cp -a $(@D)/* $(HOST_DIR)/opt/sam-ba/ - ln -s ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba + ln -sf ../../opt/sam-ba/sam-ba $(HOST_DIR)/usr/bin/sam-ba endef $(eval $(host-generic-package))