Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Dmitry Vinokurov <d.vinokuroff@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Use '?=' instead of '=' for KERNEL_CC and KERNEL_LD
Date: Wed, 26 Aug 2009 18:39:07 +0600	[thread overview]
Message-ID: <4A952CEB.2020006@gmail.com> (raw)

Hello,

Recently I've builded kernel using foreign toolchain and thought that 
possibility to set KERNEL_CC (and maybe KERNEL_LD too) in local.conf 
will be more convenient for developers than if it will be hard-coded in 
kernel.bbclass. Setting HOST_PREFIX is another way of course, but it may 
have influence on another things. I suggest it because in my case ?= was 
more convenient and I thought that it may be good thing in general case too.

What community think about it?

diff --git a/classes/kernel.bbclass b/classes/kernel.bbclass
index c5192d5..e457bf9 100644
--- a/classes/kernel.bbclass
+++ b/classes/kernel.bbclass
@@ -54,8 +54,8 @@ HOST_CC_KERNEL_ARCH ?= "${TARGET_CC_KERNEL_ARCH}"
 TARGET_LD_KERNEL_ARCH ?= ""
 HOST_LD_KERNEL_ARCH ?= "${TARGET_LD_KERNEL_ARCH}"
 
-KERNEL_CC = "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} 
${HOST_CC_KERNEL_ARCH}"
-KERNEL_LD = "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
+KERNEL_CC ?= "${CCACHE}${HOST_PREFIX}gcc${KERNEL_CCSUFFIX} 
${HOST_CC_KERNEL_ARCH}"
+KERNEL_LD ?= "${LD}${KERNEL_LDSUFFIX} ${HOST_LD_KERNEL_ARCH}"
 
 # Where built kernel lies in the kernel tree
 KERNEL_OUTPUT ?= "arch/${ARCH}/boot/${KERNEL_IMAGETYPE}"

-- 
Best Regards, 
Dmitry Vinokurov 
<d.vinokuroff@gmail.com>




                 reply	other threads:[~2009-08-26 12:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A952CEB.2020006@gmail.com \
    --to=d.vinokuroff@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox