klibc.bbclass: use klcc as CPP
PATCH 1/3 klibc.bbclass: use klcc as CPP
--- meta-initramfs/classes/klibc.bbclass | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
meta-initramfs/classes/klibc.bbclass +1 -0
@@ -2,6 +2,7 @@ DEPENDS =+ "klcc-cross" export CC = "${TARGET_PREFIX}klcc" +export CPP = "${CC} -E" # klcc uses own optimizations by default. See klcc(1) man file. export CFLAGS=""
Signature · 1 line
1.7.3.4
PATCH 2/3 klibc: upgrade to git tag c2c7f19
* include last patches of may 2012
* tracking upstream wrt forthcoming 2.0 release
* bump INC_PR
--- meta-initramfs/recipes-devtools/klibc/klibc.inc | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta-initramfs/recipes-devtools/klibc/klibc.inc +2 -2
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = "file://usr/klibc/LICENSE;md5=d75181f10e998c21eb147f6d2e43ce8 # debugsources.list: No such file or directory: INHIBIT_PACKAGE_DEBUG_SPLIT = "1" -INC_PR = "r0" +INC_PR = "r1" KLIBC_ARCH = '${TARGET_ARCH}' KLIBC_ARCH_armeb = 'arm'
@@ -21,7 +21,7 @@ KLIBC_ARCH_i586 = 'i386' KLIBC_ARCH_i686 = 'i386' KLIBC_ARCH_pentium = 'i386' -SRCREV = "f8e0ad9812f5e3fe0e7006061b1d5f9f67a80325" +SRCREV = "c2c7f19a094bba822995f7eba8ec8dfc5cbe4fdb" SRC_URI = "git://git.kernel.org/pub/scm/libs/klibc/klibc.git;protocol=git" SRC_URI_append_linux-gnueabi = " file://klibc-config-eabi.patch"
Signature · 1 line
1.7.3.4
PATCH 3/3 ubi-utils-klibc: clean ubiformat patch
In reply to Andrea Adami* fixes have been committed in klibc for stdio and the additional
* fflush is not necessary anymore (runtime tested pressing CTRL+D)
* bump PR
--- .../mtd/ubi-utils-klibc/ubiformat.c.patch | 16 +++------------- .../recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-)
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc/ubiformat.c.patch +3 -13
@@ -1,25 +1,15 @@ --- a/ubi-utils/ubiformat.c 2012-05-03 01:14:39.000000000 +0200 -+++ b/ubi-utils/ubiformat.c 2012-05-03 01:00:57.000000000 +0200 -@@ -246,7 +246,11 @@ ++++ b/ubi-utils/ubiformat.c 2012-05-20 23:11:57.000000000 +0200 +@@ -246,7 +246,7 @@ while (1) { normsg_cont("continue? (yes/no) "); - if (scanf("%3s", buf) == EOF) { -+ -+ fflush(stderr); -+ fflush(stdout); -+ + if (fgets(buf,4,stdin) == NULL) { sys_errmsg("scanf returned unexpected EOF, assume \"yes\""); return 1; } -@@ -259,10 +263,13 @@ - - static int answer_is_yes(void) - { -+ fflush(stderr); -+ fflush(stdout); -+ +@@ -262,7 +262,7 @@ char buf[4]; while (1) {
meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc_1.4.9.bb +1 -1
@@ -6,7 +6,7 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ file://include/common.h;beginline=1;endline=17;md5=ba05b07912a44ea2bf81ce409380049c" -PR = "r2" +PR = "r3" inherit klibc
Signature · 1 line
1.7.3.4
Quoted 12 lines · Andrea Adami
Signed-off-by Andrea Adami <[email protected]>---
meta-initramfs/classes/klibc.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)meta-initramfs/classes/klibc.bbclass +0
-0@@ -2,6 +2,7 @@DEPENDS =+ "klcc-cross"
Quoted 2 lines
export CC = "${TARGET_PREFIX}klcc"
+export CPP = "${CC} -E"
I think you might also need to capture CPPFLAGS as well
Quoted 11 lines
# klcc uses own optimizations by default. See klcc(1) man file. export CFLAGS="" -- 1.7.3.4_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 13 lines · Khem Raj
Quoted 12 lines · Andrea Adami
Signed-off-by Andrea Adami <[email protected]>---
meta-initramfs/classes/klibc.bbclass | 1 +1 files changed, 1 insertions(+), 0 deletions(-)meta-initramfs/classes/klibc.bbclass +0
-0@@ -2,6 +2,7 @@DEPENDS =+ "klcc-cross"
Quoted 5 lines
Quoted 2 lines
export CC = "${TARGET_PREFIX}klcc"
+export CPP = "${CC} -E"I think you might also need to capture CPPFLAGS as well
This one seems already there (see full recipe below). Anything missing?
klibc.bbclass [----] 0 L:[ 1+10 11/ 11] *(233 / 233b) <EOF>
# klcc-cross depends on klibc DEPENDS =+ "klcc-cross"
export CC = "${TARGET_PREFIX}klcc"
export CPP = "${CC} -E"
# klcc uses own optimizations by default. See klcc(1) man file. export CFLAGS="" export CPPFLAGS="" export LDFLAGS=""
Thanks for reviewing
Andrea
Quoted 16 lines
Quoted 11 lines
# klcc uses own optimizations by default. See klcc(1) man file. export CFLAGS="" -- 1.7.3.4_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Quoted 2 lines · Andrea Adami
This one seems already there (see full recipe below). Anything missing?
nice. I dont see anything else. Looks good.