From patchwork Wed Aug 22 12:48:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Asias He X-Patchwork-Id: 1361161 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 1792E40B05 for ; Wed, 22 Aug 2012 12:48:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932429Ab2HVMsr (ORCPT ); Wed, 22 Aug 2012 08:48:47 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:46868 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932335Ab2HVMsn (ORCPT ); Wed, 22 Aug 2012 08:48:43 -0400 Received: by dady13 with SMTP id y13so750909dad.19 for ; Wed, 22 Aug 2012 05:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=s9iehMd1zby43/kbeILom6YviVRF+PCBlLViDmketxE=; b=TzMKPab8gP1VLVrHP5LA8nsCD34bLBxeO8mR9X7kl1HpqRGUww0b3XMcoem1M9U+gS zJoF1qG6Iz7uzoGO14CoJx5TFq3Zyv5A9QJ2ueiu3UZWzCSuzMdrJewV0FnYtQSy7olG bJ4PxjcEe2GQUsM0NzK2OV0bafpChqspj/yGUqbB5+X9aWH2CUYoWbmS6UZ01a0D2YKk QDFLdqtTnk8iMrETTCmXxohn/yVg4GzbT8Czm2uC/c+VrMA+0gcFCS68S5UJ1b7e3BW8 vmqkN4uIfglApiHIyAy314lsOOZQwmYJuFEOF9EwYkS9fJSfIekOMDvXijvuynBIHXX2 z97w== Received: by 10.66.89.234 with SMTP id br10mr45833976pab.25.1345639716324; Wed, 22 Aug 2012 05:48:36 -0700 (PDT) Received: from hj.localdomain ([58.194.229.103]) by mx.google.com with ESMTPS id ou6sm3684076pbc.9.2012.08.22.05.48.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Aug 2012 05:48:35 -0700 (PDT) From: Asias He To: Pekka Enberg Cc: Sasha Levin , Ingo Molnar , Cyrill Gorcunov , kvm@vger.kernel.org Subject: [PATCH 2/4] kvm tools: Use LD instead using 'ld' directly Date: Wed, 22 Aug 2012 20:48:15 +0800 Message-Id: <1345639697-22680-2-git-send-email-asias.hejun@gmail.com> X-Mailer: git-send-email 1.7.11.4 In-Reply-To: <1345639697-22680-1-git-send-email-asias.hejun@gmail.com> References: <1345639697-22680-1-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Asias He --- tools/kvm/Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index 1099b76..2bb5713 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -20,6 +20,7 @@ include config/utilities.mak include config/feature-tests.mak CC := $(CROSS_COMPILE)$(CC) +LD := $(CROSS_COMPILE)$(LD) FIND := find CSCOPE := cscope @@ -303,12 +304,12 @@ $(PROGRAM_ALIAS): $(PROGRAM) $(GUEST_INIT): guest/init.c $(E) " LINK " $@ $(Q) $(CC) -static guest/init.c -o $@ - $(Q) ld -r -b binary -o guest/guest_init.o $(GUEST_INIT) + $(Q) $(LD) -r -b binary -o guest/guest_init.o $(GUEST_INIT) $(GUEST_INIT_S2): guest/init_stage2.c $(E) " LINK " $@ $(Q) $(CC) -static guest/init_stage2.c -o $@ - $(Q) ld -r -b binary -o guest/guest_init_stage2.o $(GUEST_INIT_S2) + $(Q) $(LD) -r -b binary -o guest/guest_init_stage2.o $(GUEST_INIT_S2) $(DEPS): @@ -372,7 +373,7 @@ x86/bios/bios.bin.elf: x86/bios/entry.S x86/bios/e820.c x86/bios/int10.c x86/bio $(E) " CC x86/bios/entry.o" $(Q) $(CC) $(CFLAGS) $(BIOS_CFLAGS) -c -s x86/bios/entry.S -o x86/bios/entry.o $(E) " LD " $@ - $(Q) ld -T x86/bios/rom.ld.S -o x86/bios/bios.bin.elf x86/bios/memcpy.o x86/bios/entry.o x86/bios/e820.o x86/bios/int10.o x86/bios/int15.o + $(Q) $(LD) -T x86/bios/rom.ld.S -o x86/bios/bios.bin.elf x86/bios/memcpy.o x86/bios/entry.o x86/bios/e820.o x86/bios/int10.o x86/bios/int15.o x86/bios/bios.bin: x86/bios/bios.bin.elf $(E) " OBJCOPY " $@