From patchwork Tue Aug 14 12:28:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaro Koskinen X-Patchwork-Id: 177241 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 4C3712C010A for ; Tue, 14 Aug 2012 22:28:27 +1000 (EST) Received: from filtteri1.pp.htv.fi (filtteri1.pp.htv.fi [213.243.153.184]) by ozlabs.org (Postfix) with ESMTP id 1201B2C00A3 for ; Tue, 14 Aug 2012 22:28:24 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by filtteri1.pp.htv.fi (Postfix) with ESMTP id 1C90721B61C for ; Tue, 14 Aug 2012 15:28:22 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp4.welho.com ([213.243.153.38]) by localhost (filtteri1.pp.htv.fi [213.243.153.184]) (amavisd-new, port 10024) with ESMTP id RKnO+9Oi+P4F for ; Tue, 14 Aug 2012 15:28:21 +0300 (EEST) Received: from blackmetal.bb.dnainternet.fi (212-149-209-232.bb.dnainternet.fi [212.149.209.232]) by smtp4.welho.com (Postfix) with ESMTP id BC8095BC015 for ; Tue, 14 Aug 2012 15:28:21 +0300 (EEST) From: Aaro Koskinen To: yaboot-devel@lists.ozlabs.org Subject: [PATCH] make: use STRIP Date: Tue, 14 Aug 2012 15:28:13 +0300 Message-Id: <1344947293-12840-1-git-send-email-aaro.koskinen@iki.fi> X-Mailer: git-send-email 1.7.2.5 X-BeenThere: yaboot-devel@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Technical and development discussion regarding yaboot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: yaboot-devel-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Yaboot-devel" Add STRIP for overriding the default "strip" command name. This is useful when cross-compiling. Signed-off-by: Aaro Koskinen --- Makefile | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index f3b46a5..29b1301 100644 --- a/Makefile +++ b/Makefile @@ -31,6 +31,7 @@ CC := $(CROSS)gcc LD := $(CROSS)ld AS := $(CROSS)as OBJCOPY := $(CROSS)objcopy +STRIP := $(CROSS)strip # The flags for the yaboot binary. # @@ -176,10 +177,10 @@ maintclean: clean cleandocs release: docs bindist clean strip: all - strip second/yaboot - strip --remove-section=.comment second/yaboot - strip util/addnote - strip --remove-section=.comment --remove-section=.note util/addnote + $(STRIP) second/yaboot + $(STRIP) --remove-section=.comment second/yaboot + $(STRIP) util/addnote + $(STRIP) --remove-section=.comment --remove-section=.note util/addnote install: all strip install -d -o root -g root -m 0755 ${ROOT}/etc/