* [PATCH 1/2] rt-tests: replace dependency on eglibc with virtual/libc
@ 2012-03-22 2:46 Denys Dmytriyenko
2012-03-22 2:46 ` [PATCH 2/2] rt-tests: add patch to support passing CFLAGS/LDFLAGS Denys Dmytriyenko
2012-03-22 17:35 ` [PATCH 1/2] rt-tests: replace dependency on eglibc with virtual/libc Saul Wold
0 siblings, 2 replies; 3+ messages in thread
From: Denys Dmytriyenko @ 2012-03-22 2:46 UTC (permalink / raw)
To: openembedded-core; +Cc: Denys Dmytriyenko
From: Denys Dmytriyenko <denys@ti.com>
That is to support alternative providers of libc, such as glibc, uclibc
or even an external binary toolchain.
No PR bump is necessary here.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
meta/recipes-rt/rt-tests/rt-tests_0.83.bb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.83.bb b/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
index 6425027..1a91e86 100644
--- a/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
+++ b/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Real-Time preemption testcases"
HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest"
SECTION = "tests"
-DEPENDS = "linux-libc-headers eglibc"
+DEPENDS = "linux-libc-headers virtual/libc"
LICENSE = "GPLv2 & GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
file://src/cyclictest/cyclictest.c;beginline=7;endline=9;md5=ce162fe491d19d2ec67dff6dbc938d50 \
--
1.7.8.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] rt-tests: add patch to support passing CFLAGS/LDFLAGS
2012-03-22 2:46 [PATCH 1/2] rt-tests: replace dependency on eglibc with virtual/libc Denys Dmytriyenko
@ 2012-03-22 2:46 ` Denys Dmytriyenko
2012-03-22 17:35 ` [PATCH 1/2] rt-tests: replace dependency on eglibc with virtual/libc Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Denys Dmytriyenko @ 2012-03-22 2:46 UTC (permalink / raw)
To: openembedded-core; +Cc: Denys Dmytriyenko
From: Denys Dmytriyenko <denys@ti.com>
Enable passing OE and Distro-specific CFLAGS/LDFLAGS to the Makefile.
Signed-off-by: Denys Dmytriyenko <denys@ti.com>
---
Feel free to drop this, if the patch gets accepted upstream soon enough.
.../makefile-support-user-cflags-ldflags.patch | 89 ++++++++++++++++++++
meta/recipes-rt/rt-tests/rt-tests_0.83.bb | 8 +-
2 files changed, 94 insertions(+), 3 deletions(-)
create mode 100644 meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch
diff --git a/meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch b/meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch
new file mode 100644
index 0000000..09a5d7b
--- /dev/null
+++ b/meta/recipes-rt/rt-tests/rt-tests-0.83/makefile-support-user-cflags-ldflags.patch
@@ -0,0 +1,89 @@
+From: Darren Hart <dvhart@linux.intel.com>
+Subject: [PATCH rt-tests RFC 4/6] Makefile: Support user supplied CFLAGS and LDFLAGS
+Date: Thu, 22 Mar 2012 02:14:04 +0100
+
+Accept user supplied CFLAGS and LDFLAGS, overwriting the
+Makefile supplied versions. This can cause the build to
+fail if the user does not provide at least what the Makefile
+defines, but so be it.
+
+Upstream-Status: Submitted [linux-rt-users@vger.kernel.org]
+
+Signed-off-by: Darren Hart <dvhart@linux.intel.com>
+CC: Clark Williams <williams@redhat.com>
+CC: John Kacur <jkacur@redhat.com>
+CC: Denys Dmytriyenko <denis@denix.org>
+Signed-off-by: John Kacur <jkacur@redhat.com>
+---
+ Makefile | 25 +++++++++++++------------
+ 1 files changed, 13 insertions(+), 12 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 4038dcc..e1edf6c 100644
+--- a/Makefile
++++ b/Makefile
+@@ -20,7 +20,8 @@ ifneq ($(filter x86_64 i386 ia64 mips powerpc,$(machinetype)),)
+ NUMA := 1
+ endif
+
+-CFLAGS = -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include
++CFLAGS ?= -D_GNU_SOURCE -Wall -Wno-nonnull -Isrc/include
++LDFLAGS ?=
+
+ PYLIB := $(shell python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib()')
+
+@@ -61,41 +62,41 @@ all: $(TARGETS) hwlatdetect
+ -include $(sources:.c=.d)
+
+ cyclictest: cyclictest.o rt-utils.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(NUMA_LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(NUMA_LIBS)
+
+ signaltest: signaltest.o rt-utils.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ pi_stress: pi_stress.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ hwlatdetect: src/hwlatdetect/hwlatdetect.py
+ chmod +x src/hwlatdetect/hwlatdetect.py
+ ln -s src/hwlatdetect/hwlatdetect.py hwlatdetect
+
+ rt-migrate-test: rt-migrate-test.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ ptsematest: ptsematest.o rt-utils.o rt-get_cpu.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
+
+ sigwaittest: sigwaittest.o rt-utils.o rt-get_cpu.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
+
+ svsematest: svsematest.o rt-utils.o rt-get_cpu.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
+
+ pmqtest: pmqtest.o rt-utils.o rt-get_cpu.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
+
+ sendme: sendme.o rt-utils.o rt-get_cpu.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
+
+ pip_stress: pip_stress.o error.o rt-utils.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ hackbench: hackbench.o
+- $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+ CLEANUP = $(TARGETS) *.o .depend *.*~ *.orig *.rej rt-tests.spec *.d
+ CLEANUP += $(if $(wildcard .git), ChangeLog)
+--
+1.7.7.6
diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.83.bb b/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
index 1a91e86..6c4931e 100644
--- a/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
+++ b/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
@@ -11,13 +11,15 @@ SRCREV = "5f1e84f8b015df3ff950056494134eca3f640d70"
# git -> 0.83 needs a PE bump
PE = "1"
-PR = "r1"
+PR = "r2"
-SRC_URI = "git://github.com/clrkwllms/rt-tests.git"
+SRC_URI = "git://github.com/clrkwllms/rt-tests.git \
+ file://makefile-support-user-cflags-ldflags.patch"
S = "${WORKDIR}/git"
-CFLAGS += "-I${S}/src/include -D_GNU_SOURCE -Wall -Wno-nonnulli ${LDFLAGS}"
+# need to append rt-tests' default CFLAGS to ours
+CFLAGS += "-I${S}/src/include -D_GNU_SOURCE -Wall -Wno-nonnulli"
# calling 'uname -m' is broken on crossbuilds
EXTRA_OEMAKE = "NUMA=0"
--
1.7.8.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] rt-tests: replace dependency on eglibc with virtual/libc
2012-03-22 2:46 [PATCH 1/2] rt-tests: replace dependency on eglibc with virtual/libc Denys Dmytriyenko
2012-03-22 2:46 ` [PATCH 2/2] rt-tests: add patch to support passing CFLAGS/LDFLAGS Denys Dmytriyenko
@ 2012-03-22 17:35 ` Saul Wold
1 sibling, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-03-22 17:35 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: Denys Dmytriyenko
On 03/21/2012 07:46 PM, Denys Dmytriyenko wrote:
> From: Denys Dmytriyenko<denys@ti.com>
>
> That is to support alternative providers of libc, such as glibc, uclibc
> or even an external binary toolchain.
> No PR bump is necessary here.
>
> Signed-off-by: Denys Dmytriyenko<denys@ti.com>
> ---
> meta/recipes-rt/rt-tests/rt-tests_0.83.bb | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/meta/recipes-rt/rt-tests/rt-tests_0.83.bb b/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
> index 6425027..1a91e86 100644
> --- a/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
> +++ b/meta/recipes-rt/rt-tests/rt-tests_0.83.bb
> @@ -1,7 +1,7 @@
> DESCRIPTION = "Real-Time preemption testcases"
> HOMEPAGE = "https://rt.wiki.kernel.org/index.php/Cyclictest"
> SECTION = "tests"
> -DEPENDS = "linux-libc-headers eglibc"
> +DEPENDS = "linux-libc-headers virtual/libc"
> LICENSE = "GPLv2& GPLv2+"
> LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \
> file://src/cyclictest/cyclictest.c;beginline=7;endline=9;md5=ce162fe491d19d2ec67dff6dbc938d50 \
Merged this pair into OE-Core
Thanks
Sau!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-22 17:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22 2:46 [PATCH 1/2] rt-tests: replace dependency on eglibc with virtual/libc Denys Dmytriyenko
2012-03-22 2:46 ` [PATCH 2/2] rt-tests: add patch to support passing CFLAGS/LDFLAGS Denys Dmytriyenko
2012-03-22 17:35 ` [PATCH 1/2] rt-tests: replace dependency on eglibc with virtual/libc Saul Wold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox