From: John Kacur <jkacur@redhat.com>
To: Yuanbin Zhou <hduffddybz@gmail.com>
Cc: williams@redhat.com, jkacur@redhat.com, linux-rt-users@vger.kernel.org
Subject: Re: [PATCH] Makefile:add cross_compiler for Makefile
Date: Mon, 28 Sep 2015 14:22:44 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.20.1509281419510.8775@riemann.fritz.box> (raw)
In-Reply-To: <20150928061205.GA6382@debian.debian>
On Sun, 27 Sep 2015, Yuanbin Zhou wrote:
> In this site(https://rt.wiki.kernel.org/index.php/Cyclictest), It has been shown that you can use "make CROSS_COPILE=<your-compiler-prefix>" to build software ran in other platform like arm & mips, but in fact it does not work, this patch is used to solve this problem.
>
> Signed-off-by: Yuanbin Zhou <hduffddybz@gmail.com>
> ---
> Makefile | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index a48e759..9b31ce4 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -11,6 +11,17 @@ sources += signaltest.c ptsematest.c sigwaittest.c svsematest.c sendme.c \
>
> TARGETS = $(sources:.c=)
>
> +CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)
> +AS = $(CROSS_COMPILE)as
> +LD = $(CROSS_COMPILE)ld
> +CC = $(CROSS_COMPILE)gcc
> +CPP = $(CC) -E
> +AR = $(CROSS_COMPILE)ar
> +NM = $(CROSS_COMPILE)nm
> +STRIP = $(CROSS_COMPILE)strip
> +OBJCOPY = $(CROSS_COMPILE)objcopy
> +OBJDUMP = $(CROSS_COMPILE)objdump
> +
> LIBS = -lrt -lpthread
> RTTESTLIB = -lrttest -L.
> EXTRA_LIBS ?= -ldl # for get_cpu
> --
> 2.1.4
Thank you for your patch, it looks sane. I'm not sure what version it
applies against though, when I tried to apply it, it failed.
I did accept the first cross-compile patch, that wasn't suffiencient for
your purposes, so you need to apply your patch on top of that.
Can you respin it against the following branch please? (and resend it of
course)
repo: git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
branch: devel/v0.95-devel
Thanks
John
prev parent reply other threads:[~2015-09-28 12:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-28 6:12 [PATCH] Makefile:add cross_compiler for Makefile Yuanbin Zhou
2015-09-28 12:22 ` John Kacur [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=alpine.LFD.2.20.1509281419510.8775@riemann.fritz.box \
--to=jkacur@redhat.com \
--cc=hduffddybz@gmail.com \
--cc=linux-rt-users@vger.kernel.org \
--cc=williams@redhat.com \
/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;
as well as URLs for NNTP newsgroup(s).