All of lore.kernel.org
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH v2] cpufrequtils: Use CC, LD etc. that comes frmo OE.
Date: Wed, 25 Jul 2012 10:30:55 +0200	[thread overview]
Message-ID: <juoaru$dge$1@dough.gmane.org> (raw)
In-Reply-To: <1343204827-12239-1-git-send-email-mertsas@cisco.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 25-07-12 10:27, Martin Ertsaas schreef:
> Problem with just setting CROSS, is that it will unset all the flags
> that OE sets in CC, like float-abi=hard.
> 

You're patch is missing the [meta-oe] tag, please read the README in the
meta-oe layer

> Signed-off-by: Martin Ertsaas <mertsas@cisco.com> --- 
> .../0001-Use-CC-LD-etc-that-comes-from-OE.patch    |   65
> ++++++++++++++++++++ .../cpufrequtils/0001-dont-unset-cflags.patch      |
> 30 +++++++++ .../cpufrequtils/cpufrequtils_008.bb               |    1 + 
> 3 files changed, 96 insertions(+), 0 deletions(-) create mode 100644
> meta-oe/recipes-support/cpufrequtils/0001-Use-CC-LD-etc-that-comes-from-OE.patch
>
> 
create mode 100644
meta-oe/recipes-support/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch
> 
> diff --git
> a/meta-oe/recipes-support/cpufrequtils/0001-Use-CC-LD-etc-that-comes-from-OE.patch
> b/meta-oe/recipes-support/cpufrequtils/0001-Use-CC-LD-etc-that-comes-from-OE.patch
>
> 
new file mode 100644
> index 0000000..52b7c7e --- /dev/null +++
> b/meta-oe/recipes-support/cpufrequtils/0001-Use-CC-LD-etc-that-comes-from-OE.patch
>
> 
@@ -0,0 +1,65 @@
> +From 214157f76d144fe77fe878f4f8ccb2fab116af1d Mon Sep 17 00:00:00 2001 
> +From: Martin Ertsaas <mertsas@cisco.com> +Date: Wed, 25 Jul 2012
> 09:35:24 +0200 +Subject: [PATCH] Use CC, LD etc that comes from OE. + 
> +Problem with just setting CROSS, is that it will unset all the flags
> that OE sets in CC, like float-abi=hard. + +Signed-off-by: Martin Ertsaas
> <mertsas@cisco.com> +--- + .../cpufrequtils/0001-dont-unset-cflags.patch
> |   30 ++++++++++++++++++++ + .../cpufrequtils/cpufrequtils_008.bb
> |    1 + + 2 files changed, 31 insertions(+), 0 deletions(-) + create
> mode 100644
> meta-oe/recipes-support/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch
>
> 
+
> +diff --git
> a/meta-oe/recipes-support/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch
> b/meta-oe/recipes-support/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch
>
> 
+new file mode 100644
> +index 0000000..fb2f07f +--- /dev/null ++++
> b/meta-oe/recipes-support/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch
>
> 
+@@ -0,0 +1,30 @@
> ++--- git.old/Makefile	2012-04-17 13:29:46.280435340 +0200 +++++
> git/Makefile	2012-04-17 13:31:13.664433470 +0200 ++@@ -77,17 +77,7 @@
> INSTALL_PROGRAM = ${INSTALL} ++ INSTALL_DATA  = ${INSTALL} -m 644 ++
> INSTALL_SCRIPT = ${INSTALL_PROGRAM} ++ ++-# If you are running a cross
> compiler, you may want to set this ++-# to something more interesting,
> like "arm-linux-".  If you want ++-# to compile vs uClibc, that can be
> done here as well. ++-CROSS =
> #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- ++-CC = $(CROSS)gcc ++-LD =
> $(CROSS)gcc ++-AR = $(CROSS)ar ++-STRIP = $(CROSS)strip ++-RANLIB =
> $(CROSS)ranlib ++-HOSTCC = gcc ++- +++HOSTCC = $(BUILD_CC) ++ ++ # Now we
> set up the build system ++ # ++@@ -95,7 +85,7 @@ HOSTCC = gcc ++ # set up
> PWD so that older versions of make will work with our build. ++ PWD =
> $(shell pwd) ++ ++-export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS
> LIB_OBJS +++export CFLAGS LDFLAGS LIB_OBJS ++ ++ # check if compiler
> option is supported ++ cc-supports = ${shell if $(CC) ${1} -S -o
> /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; fi;} +diff
> --git a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb
> b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb +index
> 0cc3725..a7a48a8 100644 +---
> a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb ++++
> b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb +@@ -9,6 +9,7
> @@ SRCREV = "a2f0c39d5f21596bb9f5223e895c0ff210b265d0" + # SRC_URI =
> "git://git.kernel.org/pub/scm/utils/kernel/cpufreq/cpufrequtils.git \ + +
> SRC_URI = "git://github.com/emagii/cpufrequtils.git \ ++
> file://0001-dont-unset-cflags.patch \ +           " + +
> CFLAGS_append_libc-uclibc = " ${@['-DNLS', '-UNLS']['${USE_NLS}' ==
> 'no']} " +-- +1.7.8.6 + diff --git
> a/meta-oe/recipes-support/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch
> b/meta-oe/recipes-support/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch
>
> 
new file mode 100644
> index 0000000..fb2f07f --- /dev/null +++
> b/meta-oe/recipes-support/cpufrequtils/cpufrequtils/0001-dont-unset-cflags.patch
>
> 
@@ -0,0 +1,30 @@
> +--- git.old/Makefile	2012-04-17 13:29:46.280435340 +0200 ++++
> git/Makefile	2012-04-17 13:31:13.664433470 +0200 +@@ -77,17 +77,7 @@
> INSTALL_PROGRAM = ${INSTALL} + INSTALL_DATA  = ${INSTALL} -m 644 +
> INSTALL_SCRIPT = ${INSTALL_PROGRAM} + +-# If you are running a cross
> compiler, you may want to set this +-# to something more interesting,
> like "arm-linux-".  If you want +-# to compile vs uClibc, that can be
> done here as well. +-CROSS =
> #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- +-CC = $(CROSS)gcc +-LD =
> $(CROSS)gcc +-AR = $(CROSS)ar +-STRIP = $(CROSS)strip +-RANLIB =
> $(CROSS)ranlib +-HOSTCC = gcc +- ++HOSTCC = $(BUILD_CC) + + # Now we set
> up the build system + # +@@ -95,7 +85,7 @@ HOSTCC = gcc + # set up PWD so
> that older versions of make will work with our build. + PWD = $(shell
> pwd) + +-export CROSS CC AR STRIP RANLIB CFLAGS LDFLAGS LIB_OBJS ++export
> CFLAGS LDFLAGS LIB_OBJS + + # check if compiler option is supported +
> cc-supports = ${shell if $(CC) ${1} -S -o /dev/null -xc /dev/null >
> /dev/null 2>&1; then echo "$(1)"; fi;} diff --git
> a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb
> b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb index
> 0cc3725..a7a48a8 100644 ---
> a/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb +++
> b/meta-oe/recipes-support/cpufrequtils/cpufrequtils_008.bb @@ -9,6 +9,7
> @@ SRCREV = "a2f0c39d5f21596bb9f5223e895c0ff210b265d0" # SRC_URI =
> "git://git.kernel.org/pub/scm/utils/kernel/cpufreq/cpufrequtils.git \
> 
> SRC_URI = "git://github.com/emagii/cpufrequtils.git \ +
> file://0001-dont-unset-cflags.patch \ "
> 
> CFLAGS_append_libc-uclibc = " ${@['-DNLS', '-UNLS']['${USE_NLS}' ==
> 'no']} "
> 


MIssing PR bump

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFQD66/MkyGM64RGpERAmmWAKCCokCeztDwerBWw24b3ACWQTI9aQCfcIEc
vWZLl3e6LgiOhMFx19vYqwg=
=g8tF
-----END PGP SIGNATURE-----




      reply	other threads:[~2012-07-25  8:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-25  8:27 [PATCH v2] cpufrequtils: Use CC, LD etc. that comes frmo OE Martin Ertsaas
2012-07-25  8:30 ` Koen Kooi [this message]

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='juoaru$dge$1@dough.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.