From patchwork Sun Oct 21 15:27:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yann Diorcet X-Patchwork-Id: 193016 X-Patchwork-Delegate: esben@haabendal.dk Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hugin.dotsrc.org (hugin.dotsrc.org [130.225.254.102]) by ozlabs.org (Postfix) with ESMTP id DF2712C00EC for ; Mon, 22 Oct 2012 02:28:05 +1100 (EST) Received: from hugin.dotsrc.org (localhost [127.0.0.1]) by hugin.dotsrc.org (Postfix) with ESMTP id AD9DF3FD2E for ; Sun, 21 Oct 2012 17:28:04 +0200 (CEST) X-Original-To: dev@oe-lite.org Delivered-To: dev@oe-lite.org Received: from mail-we0-f179.google.com (mail-we0-f179.google.com [74.125.82.179]) by hugin.dotsrc.org (Postfix) with ESMTPS id 500F03FBAE for ; Sun, 21 Oct 2012 17:28:02 +0200 (CEST) Received: by mail-we0-f179.google.com with SMTP id z49so956617wey.10 for ; Sun, 21 Oct 2012 08:28:02 -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=NIkRb1DYga74Ln4p1DryYxgm/NxKxUVwYexE8F9M6r4=; b=LD+2xh6Ani7EFQztp8+EPtPbcoV1ml+JH2H/O5rE8AJebS9neVwpUSnuI9RbgeLzN0 VLSz8xPipO3x9gu3zTQSRxeS1phKRSwW08Gv3YzRaH4VyTBmHagtMbSRgaCy69YOM7ld yslz3KgDVe4p4PfOPlzX1WM3KWq+zYmmBFwzsnWd0Fhi5BYBDCPuzxODFwQVLoSzcE/j TZeZLjMPrHgtHhkg7vq56kAZj+cqLs135hGn8j/Ttvy/wU8inibgkHYUSuaPJTmqWSS2 VuP3m8zon4pgKzlgimSVuqMgStqtIq45sJPmvv5NVF/2MRNffMKlMc3w7ha6ThhIayaZ nBYg== Received: by 10.180.106.2 with SMTP id gq2mr15318209wib.18.1350833282201; Sun, 21 Oct 2012 08:28:02 -0700 (PDT) Received: from localhost.localdomain (dom38-1-82-236-154-183.fbx.proxad.net. [82.236.154.183]) by mx.google.com with ESMTPS id gg4sm16470282wib.6.2012.10.21.08.28.00 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 21 Oct 2012 08:28:01 -0700 (PDT) From: Yann Diorcet To: dev@oe-lite.org Subject: [PATCH 11/18] Add BUILD_CFLAGS/CPPFLAGS/LDFLAGS as HOST_CFLAGS/CPPFLAGS/LDFLAGS when compiling a kernel Date: Sun, 21 Oct 2012 17:27:34 +0200 Message-Id: <1350833261-8401-11-git-send-email-diorcet.yann@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1350833261-8401-1-git-send-email-diorcet.yann@gmail.com> References: <1350833261-8401-1-git-send-email-diorcet.yann@gmail.com> Cc: Yann Diorcet X-BeenThere: dev@oe-lite.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: OE-lite development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dev-bounces@oe-lite.org Errors-To: dev-bounces@oe-lite.org From: Yann Diorcet Use BUILD flags for compiling kernel build machine tools --- classes/kernel.oeclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/kernel.oeclass b/classes/kernel.oeclass index a9572b6..26a15cc 100644 --- a/classes/kernel.oeclass +++ b/classes/kernel.oeclass @@ -53,10 +53,10 @@ do_compile_kernel () { fi oe_runmake include/linux/version.h - oe_runmake ${USE_kernel_imagetype} + oe_runmake ${USE_kernel_imagetype} HOSTCFLAGS="${BUILD_CFLAGS}" HOSTCPPFLAGS="${BUILD_CPPFLAGS}" HOSTLDFLAGS="${BUILD_LDFLAGS}" if (grep -q -i -e '^CONFIG_MODULES=y$' .config); then - oe_runmake modules + oe_runmake modules HOSTCFLAGS="${BUILD_CFLAGS}" HOSTCPPFLAGS="${BUILD_CPPFLAGS}" HOSTLDFLAGS="${BUILD_LDFLAGS}" else oenote "no modules to compile" fi @@ -74,6 +74,7 @@ do_compile () { } CLASS_DEPENDS += "${KERNEL_UIMAGE_DEPENDS}" +CLASS_DEPENDS:>BUILD_OS_darwin = " native:libelf" KERNEL_UIMAGE_DEPENDS = "${@['', 'native:u-boot-tools-mkimage']['${USE_kernel_imagetype}' == 'uImage']}" CLASS_FLAGS += "kernel_uimage \