Make core-image-minimal core-image-sato buildable with uclibc
cover Make core-image-minimal core-image-sato buildable with uclibc
This patch is V3 of the recents posts I have been doing from kraj/uclibc-oecore branch. With this patchset now core-image-minimal is buildable and bootable for all arches in oe-core. Core-image-sato is buildable but I have not tried to boot it first attemp hung but then I have been trying to build eglibc based core-image-sato and make sure that that boots.
The following changes since commit 3d2c1ca9096790e4c6922b65b83ea1dffb90c362:
util-linux: Replace sigsetmask with posix compliant functions (2011-07-15 18:52:49 -0700)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib kraj/uclibc-oecore
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/uclibc-oecore
Khem Raj (16):
bitbake.conf: Change TERM default fallback to XTERM instead of
GNOME_TERM
oe-buildenv-internal: Replace POKYMODE POKYLIBC with TCMODE and
TCLIBC
default-distrovars: Add largefile and argp to DISTRO_FEATURES acl,attr: Fix build failures when NLS is disabled on uclibc classes/gettext: Do not disable nls for non target recipes libxdamage,libxft,libxrandr: Add missing dependency on virtual/libx11 tzcode,tzdata: Update tzdata to 2011h
task-core-x11-sato: Add empty NETWORK_MANAGER for uclibc uclibc_0.9.32: Implement sync_file_range2.
oprofile: Fix build when query_module is not there
powertop: Add lintl to linker commandline on uclibc pimlico/dates: Fix build on uclibc
binutils: Fix build when compiling target binutils recipe with gcc
4.6
clutter-box2d: Replace use of finite macro with C99 compliant
isfinite()
sysprof: Define NT_GNU_BUILD_ID if undefined
mesa-xlib: Dont use locales with uclibc
meta/classes/gettext.bbclass | 2 +-
meta/conf/bitbake.conf | 4 +-
meta/conf/distro/include/default-distrovars.inc | 3 +-
.../uclibc/uclibc-0.9.32/sync_file_range2.patch | 15 ++++
meta/recipes-core/uclibc/uclibc_0.9.32.bb | 3 +-
.../binutils/binutils/clone-shadow.patch | 79 ++++++++++++++++++++
meta/recipes-devtools/binutils/binutils_2.21.1.bb | 3 +-
.../recipes-extended/tzcode/tzcode-native_2011g.bb | 7 +-
.../tzdata/{tzdata_2011g.bb => tzdata_2011h.bb} | 8 +-
.../clutter/clutter-box2d/isfinite.patch | 19 +++++
meta/recipes-graphics/clutter/clutter-box2d_git.bb | 6 +-
.../mesa/mesa-xlib/uclibc_locale.patch | 18 +++++
meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb | 3 +-
meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb | 4 +-
meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb | 4 +-
meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb | 4 +-
.../oprofile/oprofile-no-query-modules.patch | 29 +++++++
meta/recipes-kernel/oprofile/oprofile_0.9.6.bb | 3 +-
meta/recipes-kernel/powertop/powertop_1.13.bb | 11 ++-
.../sysprof/files/define-NT_GNU_BUILD_ID.patch | 22 ++++++
meta/recipes-kernel/sysprof/sysprof_git.bb | 5 +-
meta/recipes-sato/pimlico/dates.inc | 2 +-
.../uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch | 37 +++++++++
meta/recipes-sato/pimlico/dates_git.bb | 6 +-
meta/recipes-sato/tasks/task-core-x11-sato.bb | 2 +
meta/recipes-support/attr/acl_2.2.51.bb | 2 +-
meta/recipes-support/attr/attr.inc | 4 -
meta/recipes-support/attr/attr_2.4.46.bb | 2 +-
meta/recipes-support/attr/ea-acl.inc | 3 +
scripts/oe-buildenv-internal | 2 +-
30 files changed, 271 insertions(+), 41 deletions(-)
create mode 100644 meta/recipes-core/uclibc/uclibc-0.9.32/sync_file_range2.patch
create mode 100644 meta/recipes-devtools/binutils/binutils/clone-shadow.patch
rename meta/recipes-extended/tzdata/{tzdata_2011g.bb => tzdata_2011h.bb} (96%)
create mode 100644 meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch
create mode 100644 meta/recipes-graphics/mesa/mesa-xlib/uclibc_locale.patch
create mode 100644 meta/recipes-kernel/oprofile/oprofile/oprofile-no-query-modules.patch
create mode 100644 meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch
create mode 100644 meta/recipes-sato/pimlico/dates/uclibc-NL_TIME_FIRST_WEEKDAY-absent.patchSignature · 1 line
1.7.4.1
PATCH 1/16 bitbake.conf: Change TERM default fallback to XTERM instead of GNOME_TERM
Its better to use xterm since some folks may not be using gnome or KDE. Chances of having xterm on build machines are lot more than having gnome-terminal.
--- meta/conf/bitbake.conf | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
meta/conf/bitbake.conf +2 -2
@@ -571,8 +571,8 @@ KONSOLE_TERMCMD = 'konsole -T "$TERMWINDOWTITLE"' KONSOLE_TERMCMDRUN = '${KONSOLE_TERMCMD} -e $SHELLCMDS' # Set a default -TERMCMD ?= "${GNOME_TERMCMD}" -TERMCMDRUN ?= "${GNOME_TERMCMDRUN}" +TERMCMD ?= "${XTERM_TERMCMD}" +TERMCMDRUN ?= "${XTERM_TERMCMDRUN}" ################################################################## # Miscellaneous utilities.
Signature · 1 line
1.7.4.1
PATCH 2/16 oe-buildenv-internal: Replace POKYMODE POKYLIBC with TCMODE and TCLIBC
These are new variable names in oe-core
--- scripts/oe-buildenv-internal | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/oe-buildenv-internal +1 -1
@@ -55,4 +55,4 @@ unset BITBAKEDIR export BUILDDIR export PATH -export BB_ENV_EXTRAWHITE="MACHINE DISTRO POKYMODE POKYLIBC http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS PARALLEL_MAKE GIT_PROXY_COMMAND" +export BB_ENV_EXTRAWHITE="MACHINE DISTRO TCMODE TCLIBC http_proxy ftp_proxy https_proxy all_proxy ALL_PROXY no_proxy SSH_AGENT_PID SSH_AUTH_SOCK BB_SRCREV_POLICY SDKMACHINE BB_NUMBER_THREADS PARALLEL_MAKE GIT_PROXY_COMMAND"
Signature · 1 line
1.7.4.1
PATCH 3/16 default-distrovars: Add largefile and argp to DISTRO_FEATURES
In reply to Khem RajThis is needed for packages that go into core-image-minimal and core-image-sato highlighted by uclibc
--- meta/conf/distro/include/default-distrovars.inc | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
meta/conf/distro/include/default-distrovars.inc +1 -2
@@ -16,8 +16,7 @@ DISTRO_FEATURES_LIBC ?= "ipv4 ipv6 libc-backtrace libc-big-macros libc-bsd libc- libc-memusage libc-nis libc-nsswitch libc-rcmd libc-rtld-debug libc-spawn libc-streams libc-sunrpc \ libc-utmp libc-utmpx libc-wordexp libc-posix-clang-wchar libc-posix-regexp libc-posix-regexp-glibc \ libc-posix-wchar-io" - -DISTRO_FEATURES ?= "alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci 3g ${DISTRO_FEATURES_LIBC}" +DISTRO_FEATURES ?= "alsa argp bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g ${DISTRO_FEATURES_LIBC}" IMAGE_FEATURES ?= ""
Signature · 1 line
1.7.4.1
PATCH 4/16 acl, attr: Fix build failures when NLS is disabled on uclibc
In reply to Khem RajDisable gettext support when NLS is not enabled
--- meta/recipes-support/attr/acl_2.2.51.bb | 2 +- meta/recipes-support/attr/attr.inc | 4 ---- meta/recipes-support/attr/attr_2.4.46.bb | 2 +- meta/recipes-support/attr/ea-acl.inc | 3 +++ 4 files changed, 5 insertions(+), 6 deletions(-)
meta/recipes-support/attr/acl_2.2.51.bb +1 -1
@@ -1,6 +1,6 @@ require acl.inc -PR = "r0" +PR = "r1" SRC_URI[md5sum] = "3fc0ce99dc5253bdcce4c9cd437bc267" SRC_URI[sha256sum] = "06854521cf5d396801af7e54b9636680edf8064355e51c07657ec7442a185225"
meta/recipes-support/attr/attr.inc +0 -4
@@ -20,7 +20,3 @@ do_install_append() { sed -i ${D}${libdir}/libattr.la -e \ s,^libdir=\'${base_libdir}\'$,libdir=\'${libdir}\', } - -# Only append ldflags for target recipe -LDFLAGS_libc-uclibc += "${@['', '-lintl']['${PN}' == '${BPN}']}" -
meta/recipes-support/attr/attr_2.4.46.bb +1 -1
@@ -1,6 +1,6 @@ require attr.inc -PR = "r0" +PR = "r1" SRC_URI[md5sum] = "db557c17fdfa4f785333ecda08654010" SRC_URI[sha256sum] = "dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f"
meta/recipes-support/attr/ea-acl.inc +3 -0
@@ -32,3 +32,6 @@ FILES_lib${PN}-doc = "${mandir}/man2 \ ${mandir}/man3" BBCLASSEXTEND = "native" +# Only append ldflags for target recipe and if USE_NLS is enabled +LDFLAGS_append_libc-uclibc = "${@['', ' -lintl '][(bb.data.getVar('PN', d, True) == bb.data.getVar('BPN', d , True)) and (bb.data.getVar('USE_NLS', d, True) == 'yes')]}" +EXTRA_OECONF_append_libc-uclibc = "${@['', ' --disable-gettext '][(bb.data.getVar('PN', d, True) == bb.data.getVar('BPN', d , True)) and (bb.data.getVar('USE_NLS', d, True) == 'no')]}"
Signature · 1 line
1.7.4.1
PATCH 5/16 classes/gettext: Do not disable nls for non target recipes
In reply to Khem Rajnls disabling is target specific but USE_NLS=no will disable nls even for other kind of recipes. We should let them build with nls
--- meta/classes/gettext.bbclass | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/gettext.bbclass +1 -1
@@ -7,7 +7,7 @@ def gettext_dependencies(d): def gettext_oeconf(d): # Remove the NLS bits if USE_NLS is no. - if d.getVar('USE_NLS', True) == 'no': + if d.getVar('USE_NLS', True) == 'no' and not oe.utils.inherits(d, 'native', 'nativesdk', 'cross', 'cross-canadian'): return '--disable-nls' return "--enable-nls"
Signature · 1 line
1.7.4.1
PATCH 6/16 libxdamage, libxft, libxrandr: Add missing dependency on virtual/libx11
In reply to Khem Raj--- meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb | 4 ++-- meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb | 4 ++-- meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb +2 -2
@@ -16,10 +16,10 @@ require xorg-lib-common.inc LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=9fe101f30dd24134cf43146863241868" -DEPENDS += "damageproto libxfixes" +DEPENDS += "virtual/libx11 damageproto libxfixes" PROVIDES = "xdamage" -PR = "r0" +PR = "r1" PE = "1" XORG_PN = "libXdamage"
meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb +2 -2
@@ -15,10 +15,10 @@ require xorg-lib-common.inc LICENSE = "MIT" LIC_FILES_CHKSUM = "file://COPYING;md5=90b90b60eb30f65fc9c2673d7cf59e24" -DEPENDS += "libxrender freetype fontconfig" +DEPENDS += "virtual/libx11 libxrender freetype fontconfig" PROVIDES = "xft" -PR = "r0" +PR = "r1" PE = "1" XORG_PN = "libXft"
meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb +2 -2
@@ -11,9 +11,9 @@ require xorg-lib-common.inc LICENSE = "MIT-style" LIC_FILES_CHKSUM = "file://COPYING;md5=4c5c132d3690478179d78ec3bf064584" -DEPENDS += "randrproto libxrender libxext" +DEPENDS += "virtual/libx11 randrproto libxrender libxext" -PR = "r0" +PR = "r1" PE = "1" XORG_PN = "libXrandr"
Signature · 1 line
1.7.4.1
PATCH 7/16 tzcode,tzdata: Update tzdata to 2011h
In reply to Khem Raj---
.../recipes-extended/tzcode/tzcode-native_2011g.bb | 7 +++----
.../tzdata/{tzdata_2011g.bb => tzdata_2011h.bb} | 8 ++++----
2 files changed, 7 insertions(+), 8 deletions(-)
rename meta/recipes-extended/tzdata/{tzdata_2011g.bb => tzdata_2011h.bb} (96%)meta/recipes-extended/tzcode/tzcode-native_2011g.bb +3 -4
@@ -5,13 +5,12 @@ PR = "r0" LIC_FILES_CHKSUM = "file://${WORKDIR}/README;md5=3ae8198f82258417ce29066d3b034035" SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzcode${PV}.tar.gz;name=tzcode \ - ftp://elsie.nci.nih.gov/pub/tzdata2011g.tar.gz;name=tzdata" + ftp://elsie.nci.nih.gov/pub/tzdata2011h.tar.gz;name=tzdata" SRC_URI[tzcode.md5sum] = "ecb564279b28c5b184421c525d997d6c" SRC_URI[tzcode.sha256sum] = "636c735d8df1276cc8ab88bc31bb36a21f91ed34e26d181303ecd8fe48021bc2" -SRC_URI[tzdata.md5sum] = "a068c27e7e426fdb12ab0c88506df20d" -SRC_URI[tzdata.sha256sum] = "01a2a189eeda63baacc5e68e6c13afffc7edce182102fffc53acbf35e8703d3c" - +SRC_URI[tzdata.md5sum] = "546d27b6c1e5e1097bd512651815017f" +SRC_URI[tzdata.sha256sum] = "c098786d053736dd18d4f1fbebdf41554c6fd702a36f75c18f1c66712d2abc24" S = "${WORKDIR}"
meta/recipes-extended/tzdata/tzdata_2011h.bb renamed from meta/recipes-extended/tzdata/tzdata_2011g.bb +4 -4
@@ -5,17 +5,17 @@ LICENSE = "PD" LIC_FILES_CHKSUM = "file://asia;beginline=2;endline=3;md5=06468c0e84ef4d4c97045a4a29b08234" DEPENDS = "tzcode-native" -PR = "r1" +PR = "r0" RCONFLICTS= "timezones timezone-africa timezone-america timezone-antarctica \ timezone-arctic timezone-asia timezone-atlantic \ timezone-australia timezone-europe timezone-indian \ timezone-iso3166.tab timezone-pacific timezone-zone.tab" -SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz" +SRC_URI = "ftp://elsie.nci.nih.gov/pub/tzdata${PV}.tar.gz;name=tzdata" -SRC_URI[md5sum] = "a068c27e7e426fdb12ab0c88506df20d" -SRC_URI[sha256sum] = "01a2a189eeda63baacc5e68e6c13afffc7edce182102fffc53acbf35e8703d3c" +SRC_URI[tzdata.md5sum] = "546d27b6c1e5e1097bd512651815017f" +SRC_URI[tzdata.sha256sum] = "c098786d053736dd18d4f1fbebdf41554c6fd702a36f75c18f1c66712d2abc24" S = "${WORKDIR}"
Signature · 1 line
1.7.4.1
PATCH 8/16 task-core-x11-sato: Add empty NETWORK_MANAGER for uclibc
In reply to Khem Rajconman needs some features from libresolv e.g. ns_initparse which are missing in uclibc.
--- meta/recipes-sato/tasks/task-core-x11-sato.bb | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
meta/recipes-sato/tasks/task-core-x11-sato.bb +2 -0
@@ -19,6 +19,8 @@ PACKAGE_ARCH = "${MACHINE_ARCH}" ALLOW_EMPTY = "1" NETWORK_MANAGER ?= "connman-gnome" +NETWORK_MANAGER_libc-uclibc = "" + RDEPENDS_task-core-x11-sato = "\ matchbox-desktop \ matchbox-session-sato \
Signature · 1 line
1.7.4.1
PATCH 9/16 uclibc_0.9.32: Implement sync_file_range2.
In reply to Khem RajOn some arches e.g. arm, ppc sync_file_range2 is used instead of sync_file_range so we should consider that
--- .../uclibc/uclibc-0.9.32/sync_file_range2.patch | 15 +++++++++++++++ meta/recipes-core/uclibc/uclibc_0.9.32.bb | 3 ++- 2 files changed, 17 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-core/uclibc/uclibc-0.9.32/sync_file_range2.patch
meta/recipes-core/uclibc/uclibc-0.9.32/sync_file_range2.patch new file +15 -0
@@ -0,0 +1,15 @@ +Index: git/libc/sysdeps/linux/common/sync_file_range.c +=================================================================== +--- git.orig/libc/sysdeps/linux/common/sync_file_range.c 2011-07-16 19:19:40.000000000 -0700 ++++ git/libc/sysdeps/linux/common/sync_file_range.c 2011-07-17 22:21:48.893808544 -0700 +@@ -10,7 +10,9 @@ + #include <sys/syscall.h> + #if defined __USE_GNU + #include <fcntl.h> +- ++#if defined __NR_sync_file_range2 ++#define __NR_sync_file_range __NR_sync_file_range2 ++#endif + #if defined __NR_sync_file_range && defined __UCLIBC_HAS_LFS__ + #define __NR___syscall_sync_file_range __NR_sync_file_range + static __inline__ _syscall6(int, __syscall_sync_file_range, int, fd,
meta/recipes-core/uclibc/uclibc_0.9.32.bb +2 -1
@@ -1,7 +1,7 @@ SRCREV="9152c4d67c763fde5712e2d181d92c0d7e1e2ab9" require uclibc.inc -PR = "${INC_PR}.1" +PR = "${INC_PR}.2" PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc" SRC_URI = "git://uclibc.org/uClibc.git;branch=${PV};protocol=git \
@@ -28,5 +28,6 @@ SRC_URI = "git://uclibc.org/uClibc.git;branch=${PV};protocol=git \ file://0001-mips-signalfd.h-SFD_NONBLOCK-for-mips-is-0200-unlike.patch \ file://uclibc-execvpe.patch \ file://uclibc_scheduler_update.patch \ + file://sync_file_range2.patch \ " S = "${WORKDIR}/git"
Signature · 1 line
1.7.4.1
Re: [PATCH 09/16] uclibc_0.9.32: Implement sync_file_range2.
Quoted 3 lines · Khem Raj
++#if defined
__NR_sync_file_range2++#define__NR_sync_file_range__NR_sync_file_range2++#endif
Does that really work? If I remember right, the argument lists for those two syscalls are not the same. It isn't entirely obvious to me that it makes sense to just define one as an alias for the other.
p.
Re: [PATCH 09/16] uclibc_0.9.32: Implement sync_file_range2.
Quoted 9 lines · Phil Blundell
Quoted 3 lines · Khem Raj
++#if defined
__NR_sync_file_range2++#define__NR_sync_file_range__NR_sync_file_range2++#endifDoes that really work? If I remember right, the argument lists for those two syscalls are not the same. It isn't entirely obvious to me that it makes sense to just define one as an alias for the other.
It wont work.
sent a wrong patch. I have a better one.
Quoted 9 lines
p.
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Re: [PATCH 09/16] uclibc_0.9.32: Implement sync_file_range2.
Quoted 6 lines · Khem Raj
Quoted 5 lines · Phil Blundell
Quoted 3 lines · Khem Raj
++#if defined
__NR_sync_file_range2++#define__NR_sync_file_range__NR_sync_file_range2++#endif
Quoted 6 lines
Quoted 4 lines
Does that really work? If I remember right, the argument lists for those two syscalls are not the same. It isn't entirely obvious to me that it makes sense to just define one as an alias for the other.
It wont work.
sent a wrong patch. I have a better one.
I have updated this patch in the pull request tree.
Quoted 11 lines
Quoted 10 lines
p.
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
PATCH 10/16 oprofile: Fix build when query_module is not there
In reply to Khem Rajon 2.6 kernels we do not have query_module so warn about it
--- .../oprofile/oprofile-no-query-modules.patch | 29 ++++++++++++++++++++ meta/recipes-kernel/oprofile/oprofile_0.9.6.bb | 3 +- 2 files changed, 31 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-kernel/oprofile/oprofile/oprofile-no-query-modules.patch
meta/recipes-kernel/oprofile/oprofile/oprofile-no-query-modules.patch new file +29 -0
@@ -0,0 +1,29 @@ +disable portions which use query_module on 2.6 kernel this is not available +in OE we dont support 2.4 anyway + + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> + +Index: oprofile-0.9.6/daemon/liblegacy/opd_kernel.c +=================================================================== +--- oprofile-0.9.6.orig/daemon/liblegacy/opd_kernel.c 2009-11-24 07:25:17.000000000 -0800 ++++ oprofile-0.9.6/daemon/liblegacy/opd_kernel.c 2011-07-18 10:08:39.863798825 -0700 +@@ -270,6 +270,9 @@ + */ + static void opd_drop_module_sample(unsigned long eip) + { ++ verbprintf(vmodule, "query_module not available on linux-2.6: %s\n", strerror(EPERM)); ++ ++#if 0 + char * module_names; + char * name; + size_t size = 1024; +@@ -307,6 +310,7 @@ + + if (module_names) + free(module_names); ++#endif + } + +
meta/recipes-kernel/oprofile/oprofile_0.9.6.bb +2 -1
@@ -19,10 +19,11 @@ FILES_${PN} = "${bindir} ${libdir}/${BPN}/lib*.so.* ${datadir}/${BPN}" FILES_${PN}-dev += "${libdir}/${BPN}/lib*.so ${libdir}/${BPN}/lib*.la" FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a" -PR = "r1" +PR = "r2" SRC_URI = "${SOURCEFORGE_MIRROR}/oprofile/oprofile-${PV}.tar.gz \ file://opstart.patch \ + file://oprofile-no-query-modules.patch \ file://acinclude.m4" SRC_URI[md5sum] = "4e407093ac06200185d5a5e6437d7242"
Signature · 1 line
1.7.4.1
PATCH 11/16 powertop: Add lintl to linker commandline on uclibc
In reply to Khem Rajintl support is not inbuilt into libc like glibc
so we have to link it explicitly
--- meta/recipes-kernel/powertop/powertop_1.13.bb | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-)
meta/recipes-kernel/powertop/powertop_1.13.bb +7 -4
@@ -11,16 +11,19 @@ DEPENDS = "virtual/libintl ncurses" # powertop 1.13 needs lspci RDEPENDS_${PN} = "pciutils" -PR = "r1" +PR = "r2" SRC_URI = "http://www.lesswatts.org/projects/powertop/download/powertop-${PV}.tar.gz \ - file://stub_out_the_ncurses_calls_in_dump_mode.patch" + file://stub_out_the_ncurses_calls_in_dump_mode.patch \ + " SRC_URI[md5sum] = "78aa17c8f55178004223bf236654298e" SRC_URI[sha256sum] = "2bc866089496877dd26d2d316ad5763ab8ecb5e28aefba44bc5d355dcdc58d98" CFLAGS += "${LDFLAGS}" -EXTRA_OEMAKE = "VERSION=\"${PV}\"" +EXTRA_OEMAKE = "VERSION=\"${PV}\" EXTRA_LIBS=${EXTRA_LIBS}" + +EXTRA_LIBS_libc-uclibc = "-lintl" inherit update-alternatives ALTERNATIVE_NAME = "powertop"
@@ -30,7 +33,7 @@ ALTERNATIVE_PRIORITY = "100" do_configure() { # We do not build ncurses with wide char support - sed -i -e "s/lncursesw/lncurses/" ${S}/Makefile + sed -i -e 's:lncursesw:lncurses ${EXTRA_LIBS}:g' ${S}/Makefile } do_install() {
Signature · 1 line
1.7.4.1
PATCH 12/16 pimlico/dates: Fix build on uclibc
In reply to Khem Rajuclibc does not have NL_TIME_FIRST_WEEKDAY
--- meta/recipes-sato/pimlico/dates.inc | 2 +- .../uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch | 37 ++++++++++++++++++++ meta/recipes-sato/pimlico/dates_git.bb | 6 ++- 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-sato/pimlico/dates/uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch
meta/recipes-sato/pimlico/dates.inc +1 -1
@@ -8,7 +8,7 @@ SECTION = "x11" DEPENDS = "glib-2.0 gtk+ libglade eds-dbus" RDEPENDS_${PN} = "libedata-cal" -inherit autotools pkgconfig gtk-icon-cache +inherit autotools gettext pkgconfig gtk-icon-cache # Poky/Sato specific enhancements OWL = "--disable-owl"
meta/recipes-sato/pimlico/dates/uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch new file +37 -0
@@ -0,0 +1,37 @@ +uclibc has langinfo.h but it does not define _NL_TIME_FIRST_WEEKDAY +therefore we introduce a check in configure for the this define +and then we make sure that we use it when it really exists + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending + +Index: git/configure.ac +=================================================================== +--- git.orig/configure.ac 2011-07-18 10:34:15.000000000 -0700 ++++ git/configure.ac 2011-07-18 10:54:26.403798188 -0700 +@@ -98,6 +98,8 @@ + src/libgtkdatesview.pc + ]) + ++AC_CHECK_DECLS([_NL_TIME_FIRST_WEEKDAY],[],[],[[#include <langinfo.h>]]) ++ + AC_OUTPUT + + echo " " +Index: git/src/dates_view.c +=================================================================== +--- git.orig/src/dates_view.c 2011-07-18 10:34:15.000000000 -0700 ++++ git/src/dates_view.c 2011-07-18 10:58:46.093798136 -0700 +@@ -1505,7 +1505,11 @@ + priv->days = 1; + priv->months = 0; + priv->months_in_row = 4; ++#if HAVE_DECL__NL_TIME_FIRST_WEEKDAY + priv->week_start = *nl_langinfo (_NL_TIME_FIRST_WEEKDAY) - 1; ++#else ++ priv->week_start = 0; ++#endif + priv->dragbox = TRUE; + priv->single_click = TRUE; + priv->double_click = FALSE;
meta/recipes-sato/pimlico/dates_git.bb +4 -2
@@ -7,10 +7,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ SRCREV = "514185dc1f6588085fda41eb59898b93d0487dd4" PV = "0.4.11+git${SRCPV}" -PR = "r3" +PR = "r4" S = "${WORKDIR}/git" SRC_URI = "git://git.gnome.org/${BPN};protocol=git \ file://make-382.patch \ - file://dso_linking_change_build_fix.patch" + file://dso_linking_change_build_fix.patch \ + file://uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch \ + "
Signature · 1 line
1.7.4.1
PATCH 13/16 binutils: Fix build when compiling target binutils recipe with gcc 4.6
In reply to Khem Raj--- .../binutils/binutils/clone-shadow.patch | 79 ++++++++++++++++++++ meta/recipes-devtools/binutils/binutils_2.21.1.bb | 3 +- 2 files changed, 81 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-devtools/binutils/binutils/clone-shadow.patch
meta/recipes-devtools/binutils/binutils/clone-shadow.patch new file +79 -0
@@ -0,0 +1,79 @@ +This fixes a global shadow warning. The warning is treated as error hence breaks the build of target +binutils. + + /b/openembedded-core/build/tmp-uclibc/work/armv5te-oe-linux-uclibceabi/binutils-2.21.1-r1/binutils-2.21.1/gas/config/obj-elf.c: In function 'obj_elf_parse_section_letters': +| /b/openembedded-core/build/tmp-uclibc/work/armv5te-oe-linux-uclibceabi/binutils-2.21.1-r1/binutils-2.21.1/gas/config/obj-elf.c:744:68: error: declaration of 'clone' shadows a global declaration [-Werror=shadow] +| /b/openembedded-core/build/tmp-uclibc/work/armv5te-oe-linux-uclibceabi/binutils-2.21.1-r1/binutils-2.21.1/gas/config/obj-elf.c: In function 'obj_elf_section': +| /b/openembedded-core/build/tmp-uclibc/work/armv5te-oe-linux-uclibceabi/binutils-2.21.1-r1/binutils-2.21.1/gas/config/obj-elf.c:981:16: error: declaration of 'clone' shadows a global declaration [-Werror=shadow] +| cc1: all warnings being treated as errors +| + +Upstream-Status: Pending + +Signed-off-by: Khem Raj <[email protected]> +Index: binutils-2.21.1/gas/config/obj-elf.c +=================================================================== +--- binutils-2.21.1.orig/gas/config/obj-elf.c 2011-03-23 07:14:03.000000000 -0700 ++++ binutils-2.21.1/gas/config/obj-elf.c 2011-07-16 19:05:57.003831035 -0700 +@@ -741,10 +741,10 @@ + } + + static bfd_vma +-obj_elf_parse_section_letters (char *str, size_t len, bfd_boolean *clone) ++obj_elf_parse_section_letters (char *str, size_t len, bfd_boolean *cloneit) + { + bfd_vma attr = 0; +- *clone = FALSE; ++ *cloneit = FALSE; + + while (len > 0) + { +@@ -775,7 +775,7 @@ + attr |= SHF_TLS; + break; + case '?': +- *clone = TRUE; ++ *cloneit = TRUE; + break; + /* Compatibility. */ + case 'm': +@@ -978,7 +978,7 @@ + + if (*input_line_pointer == '"') + { +- bfd_boolean clone; ++ bfd_boolean cloneit; + + beg = demand_copy_C_string (&dummy); + if (beg == NULL) +@@ -986,7 +986,7 @@ + ignore_rest_of_line (); + return; + } +- attr |= obj_elf_parse_section_letters (beg, strlen (beg), &clone); ++ attr |= obj_elf_parse_section_letters (beg, strlen (beg), &cloneit); + + SKIP_WHITESPACE (); + if (*input_line_pointer == ',') +@@ -1038,10 +1038,10 @@ + attr &= ~SHF_MERGE; + } + +- if ((attr & SHF_GROUP) != 0 && clone) ++ if ((attr & SHF_GROUP) != 0 && cloneit) + { + as_warn (_("? section flag ignored with G present")); +- clone = FALSE; ++ cloneit = FALSE; + } + if ((attr & SHF_GROUP) != 0 && *input_line_pointer == ',') + { +@@ -1063,7 +1063,7 @@ + attr &= ~SHF_GROUP; + } + +- if (clone) ++ if (cloneit) + { + const char *now_group = elf_group_name (now_seg); + if (now_group != NULL)
meta/recipes-devtools/binutils/binutils_2.21.1.bb +2 -1
@@ -1,6 +1,6 @@ require binutils.inc -PR = "r1" +PR = "r2" LIC_FILES_CHKSUM="\ file://src-release;endline=17;md5=4830a9ef968f3b18dd5e9f2c00db2d35\
@@ -29,6 +29,7 @@ SRC_URI = "\ file://libiberty_path_fix.patch \ file://binutils-poison.patch \ file://libtool-rpath-fix.patch \ + file://clone-shadow.patch \ " SRC_URI[md5sum] = "a22801a9cad45c85e9ff6afc10537d72"
Signature · 1 line
1.7.4.1
PATCH 14/16 clutter-box2d: Replace use of finite macro with C99 compliant isfinite()
In reply to Khem Raj--- .../clutter/clutter-box2d/isfinite.patch | 19 +++++++++++++++++++ meta/recipes-graphics/clutter/clutter-box2d_git.bb | 6 ++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch
meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch new file +19 -0
@@ -0,0 +1,19 @@ +_finite is obsoleted and C99 has isfinite instead so we should use it + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending + +Index: clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h +=================================================================== +--- clutter-box2d-0.10.0.orig/box2d/Source/Common/b2Math.h 2008-12-16 06:42:10.000000000 -0800 ++++ clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h 2011-07-17 02:10:29.833825198 -0700 +@@ -60,7 +60,7 @@ + #ifdef _MSC_VER + return _finite(x) != 0; + #else +- return finite(x) != 0; ++ return std::isfinite(x) != 0; + #endif + } +
meta/recipes-graphics/clutter/clutter-box2d_git.bb +4 -2
@@ -4,9 +4,11 @@ LIC_FILES_CHKSUM = "file://box2d/License.txt;md5=e5d39ad91f7dc4692dcdb1d85139ec6 SRCREV = "4799ac10ae8cb7da936a2b999aba58fe62eb1ee3" PV = "0.10.1+git${SRCPV}" -PR = "r0" +PR = "r1" -SRC_URI = "git://git.gnome.org/clutter-box2d.git" +SRC_URI = "git://git.gnome.org/clutter-box2d.git \ + file://isfinite.patch \ + " S = "${WORKDIR}/git"
Signature · 1 line
1.7.4.1
Re: [PATCH 14/16] clutter-box2d: Replace use of finite macro with C99 compliant isfinite()
Quoted 40 lines · Khem Raj
Signed-off-by Khem Raj<[email protected]>--- .../clutter/clutter-box2d/isfinite.patch | 19 +++++++++++++++++++ meta/recipes-graphics/clutter/clutter-box2d_git.bb | 6 ++++-- 2 files changed, 23 insertions(+), 2 deletions(-)create mode 100644
meta/recipes-graphics/clutter/clutter-box2d/isfinite.patchmeta/recipes-graphics/clutter/clutter-box2d/isfinite.patch new file +19
-0@@ -0,0 +1,19 @@ +_finite is obsoleted and C99 has isfinite instead so we should use it + +Signed-off-by: Khem Raj<[email protected]> + +Upstream-Status: Pending + +Index: clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h +=================================================================== +--- clutter-box2d-0.10.0.orig/box2d/Source/Common/b2Math.h 2008-12-16 06:42:10.000000000 -0800 ++++ clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h 2011-07-17 02:10:29.833825198 -0700 +@@ -60,7 +60,7 @@ + #ifdef _MSC_VER + return _finite(x) != 0; + #else +- return finite(x) != 0; ++ return std::isfinite(x) != 0; + #endif + } +meta/recipes-graphics/clutter/clutter-box2d_git.bb +0
-0@@ -4,9 +4,11 @@ LIC_FILES_CHKSUM = "file://box2d/License.txt;md5=e5d39ad91f7dc4692dcdb1d85139ec6 SRCREV = "4799ac10ae8cb7da936a2b999aba58fe62eb1ee3" PV = "0.10.1+git${SRCPV}"
meta/recipes-graphics/clutter/clutter-box2d_git.bb LIC_FILES_CHKSUM = "file://box2d/License.txt;md5=e5d39ad91f7dc4692dcdb1d85139ec6 · line 14
Quoted 10 lines
meta/recipes-graphics/clutter/clutter-box2d_git.bb +4
-2-PR = "r0" +PR = "r1" -SRC_URI = "git://git.gnome.org/clutter-box2d.git" +SRC_URI = "git://git.gnome.org/clutter-box2d.git \ + file://isfinite.patch \ + " S = "${WORKDIR}/git"
Khem,
This patch seems to have patched clutter-box2d-1.6_0.10.0.bb also, with the isfinite patch. This fails to apply. Was this intentional were you planning on updating the 1.6 version?
Sau!
Re: [PATCH 14/16] clutter-box2d: Replace use of finite macro with C99 compliant isfinite()
Quoted 57 lines · Saul Wold
Quoted 56 lines · Khem Raj
Signed-off-by Khem Raj<[email protected]>---
.../clutter/clutter-box2d/isfinite.patch | 19
+++++++++++++++++++
meta/recipes-graphics/clutter/clutter-box2d_git.bb | 6 ++++--2 files changed, 23 insertions(+), 2 deletions(-)create mode 100644
meta/recipes-graphics/clutter/clutter-box2d/isfinite.patchmeta/recipes-graphics/clutter/clutter-box2d/isfinite.patch new file +9
-0@@ -0,0 +1,19 @@ +_finite is obsoleted and C99 has isfinite instead so we should use it + +Signed-off-by: Khem Raj<[email protected]> + +Upstream-Status: Pending + +Index: clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h +=================================================================== +--- clutter-box2d-0.10.0.orig/box2d/Source/Common/b2Math.h 2008-12-1606:42:10.000000000 -0800
++++clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h2011-07-17 02:10:29.833825198 -0700
+@@ -60,7 +60,7 @@
+ #ifdef_MSC_VER
+ return_finite(x)!= 0;
+ #else
+- return finite(x) != 0;
++ returnstd::isfinite(x)!= 0;
+ #endif
+ }meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch new file +1
-0+meta/recipes-graphics/clutter/clutter-box2d_git.bb +0
-0@@ -4,9 +4,11 @@ LIC_FILES_CHKSUM ="file://box2d/License.txt;md5=e5d39ad91f7dc4692dcdb1d85139ec6
SRCREV = "
4799ac10ae8cb7da936a2b999aba58fe62eb1ee3" PV = "0.10.1+git${SRCPV}"meta/recipes-graphics/clutter/clutter-box2d_git.bb +4
-2-PR = "r0" +PR = "r1" -SRC_URI = "git://git.gnome.org/clutter-box2d.git" +SRC_URI = "git://git.gnome.org/clutter-box2d.git \ + file://isfinite.patch \ + "
Quoted 8 lines
Quoted 2 lines
S = "${WORKDIR}/git"
Khem,
This patch seems to have patched clutter-box2d-1.6_0.10.0.bb also, with the isfinite patch. This fails to apply. Was this intentional were you planning on updating the 1.6 version?
yes the patch should be applied to both recipes since x86 uses clutter-box2d-1.6_0.10.0.bb
and arm uses the git version. It applied well for arm and x86 here. Let me check once more
Quoted 3 lines
Sau!
Re: [PATCH 14/16] clutter-box2d: Replace use of finite macro with C99 compliant isfinite()
Quoted 63 lines · Khem Raj
Quoted 62 lines · Saul Wold
Quoted 56 lines · Khem Raj
Signed-off-by Khem Raj<[email protected]>---
.../clutter/clutter-box2d/isfinite.patch | 19
+++++++++++++++++++
meta/recipes-graphics/clutter/clutter-box2d_git.bb | 6 ++++--2 files changed, 23 insertions(+), 2 deletions(-)create mode 100644
meta/recipes-graphics/clutter/clutter-box2d/isfinite.patchmeta/recipes-graphics/clutter/clutter-box2d/isfinite.patch new file +9
-0@@ -0,0 +1,19 @@ +_finite is obsoleted and C99 has isfinite instead so we should use it + +Signed-off-by: Khem Raj<[email protected]> + +Upstream-Status: Pending + +Index: clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h +=================================================================== +--- clutter-box2d-0.10.0.orig/box2d/Source/Common/b2Math.h 2008-12-1606:42:10.000000000 -0800
++++clutter-box2d-0.10.0/box2d/Source/Common/b2Math.h2011-07-17 02:10:29.833825198 -0700
+@@ -60,7 +60,7 @@
+ #ifdef_MSC_VER
+ return_finite(x)!= 0;
+ #else
+- return finite(x) != 0;
++ returnstd::isfinite(x)!= 0;
+ #endif
+ }meta/recipes-graphics/clutter/clutter-box2d/isfinite.patch new file +1
-0+meta/recipes-graphics/clutter/clutter-box2d_git.bb +0
-0@@ -4,9 +4,11 @@ LIC_FILES_CHKSUM ="file://box2d/License.txt;md5=e5d39ad91f7dc4692dcdb1d85139ec6
SRCREV = "
4799ac10ae8cb7da936a2b999aba58fe62eb1ee3" PV = "0.10.1+git${SRCPV}"meta/recipes-graphics/clutter/clutter-box2d_git.bb +4
-2-PR = "r0" +PR = "r1" -SRC_URI = "git://git.gnome.org/clutter-box2d.git" +SRC_URI = "git://git.gnome.org/clutter-box2d.git \ + file://isfinite.patch \ + "Quoted 2 lines
S = "${WORKDIR}/git"
Khem,
Quoted 8 lines
Quoted 3 lines
This patch seems to have patched clutter-box2d-1.6_0.10.0.bb also, with the isfinite patch. This fails to apply. Was this intentional were you planning on updating the 1.6 version?
yes the patch should be applied to both recipes since x86 uses clutter-box2d-1.6_0.10.0.bb
and arm uses the git version. It applied well for arm and x86 here. Let me check once more
MACHINE=qemux86 TCLIBC=uclibc bitbake -ccleanall clutter-box2d-1.6; MACHINE=qemux86 TCLIBC=uclibc bitbake clutter-box2d-1.6
worked fine and I checked that it applied the isfinite.patch cleanly.
Although one thing I observed is that the file this patch is modifying has DOS eols
therefore the patch also has DOS eols in it
I wonder if thats somehow problematic on your machine
Quoted 5 lines
Quoted 4 lines
Sau!
PATCH 15/16 sysprof: Define NT_GNU_BUILD_ID if undefined
In reply to Khem RajThis is needed on uclibc which does not have all GNU extentions
--- .../sysprof/files/define-NT_GNU_BUILD_ID.patch | 22 ++++++++++++++++++++ meta/recipes-kernel/sysprof/sysprof_git.bb | 5 ++- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch
meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patch new file +22 -0
@@ -0,0 +1,22 @@ +On uclibc elf.h does not have GNU extentions but we need this define +so we define it locally if its not getting it from elf.h + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Pending + +Index: git/elfparser.h +=================================================================== +--- git.orig/elfparser.h 2011-07-16 18:57:41.000000000 -0700 ++++ git/elfparser.h 2011-07-16 20:28:54.733829895 -0700 +@@ -17,6 +17,10 @@ + */ + #include <glib.h> + ++#ifndef NT_GNU_BUILD_ID ++#define NT_GNU_BUILD_ID 3 ++#endif ++ + typedef struct ElfSym ElfSym; + typedef struct ElfParser ElfParser; +
meta/recipes-kernel/sysprof/sysprof_git.bb +3 -2
@@ -5,11 +5,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" DEPENDS = "gtk+ libglade" SRCREV = "38a6af1f0a45e528fd2842983da71e0f23c70d6a" -PR = r0 +PR = r1 PV = "1.1.6+git${SRCPV}" SRC_URI = "git://git.gnome.org/sysprof;protocol=git \ - " + file://define-NT_GNU_BUILD_ID.patch \ + " SRC_URI_append_arm = " file://rmb-arm.patch" SRC_URI_append_mips = " file://rmb-mips.patch"
Signature · 1 line
1.7.4.1
PATCH 16/16 mesa-xlib: Dont use locales with uclibc
In reply to Khem Raj--- .../mesa/mesa-xlib/uclibc_locale.patch | 18 ++++++++++++++++++ meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb | 3 ++- 2 files changed, 20 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-graphics/mesa/mesa-xlib/uclibc_locale.patch
meta/recipes-graphics/mesa/mesa-xlib/uclibc_locale.patch new file +18 -0
@@ -0,0 +1,18 @@ +We disable locale on uclibc in OE therefore we do not use it if building for uclibc + +Signed-off-by: Khem Raj <[email protected]> +Upstream-Status: Inappropriate <OE config related> + +Index: Mesa-7.10.2/src/glsl/strtod.c +=================================================================== +--- Mesa-7.10.2.orig/src/glsl/strtod.c 2011-01-03 16:45:51.000000000 -0800 ++++ Mesa-7.10.2/src/glsl/strtod.c 2011-07-16 18:18:15.693831691 -0700 +@@ -44,7 +44,7 @@ + double + glsl_strtod(const char *s, char **end) + { +-#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) ++#if defined(_GNU_SOURCE) && !defined(__CYGWIN__) && !defined(__FreeBSD__) && !defined(__UCLIBC__) + static locale_t loc = NULL; + if (!loc) { + loc = newlocale(LC_CTYPE_MASK, "C", NULL);
meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb +2 -1
@@ -1,6 +1,7 @@ include mesa-common.inc SRC_URI = "ftp://ftp.freedesktop.org/pub/mesa/${PV}/MesaLib-${PV}.tar.bz2 \ + file://uclibc_locale.patch \ " SRC_URI[md5sum] = "f5de82852f1243f42cc004039e10b771"
@@ -14,6 +15,6 @@ LIB_DEPS = "virtual/libx11 libxext libxxf86vm libxdamage libxfixes libxml2-nativ DEPENDS = "${PROTO_DEPS} ${LIB_DEPS} makedepend-native" PE = "1" -PR = "r0" +PR = "r1" EXTRA_OECONF += "--with-driver=xlib"
Signature · 1 line
1.7.4.1
Quoted 5 lines · Khem Raj
This patch is V3 of the recents posts I have been doing from kraj/uclibc-oecore branch. With this patchset now core-image-minimal is buildable and bootable for all arches in oe-core. Core-image-sato is buildable but I have not tried to boot it first attemp hung but then I have been trying to build eglibc based core-image-sato and make sure that that boots.
OK. I have updated the patchset in the pull tree to incorporate comments and further fix to get core-image-sato building and booting on
x86.
Quoted 75 lines
The following changes since commit
3d2c1ca9096790e4c6922b65b83ea1dffb90c362:util-linux: Replace sigsetmask with posix compliant functions (2011-07-15 18:52:49 -0700)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib kraj/uclibc-oecore
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/uclibc-oecoreKhem Raj (16):
bitbake.conf: Change TERM default fallback to XTERM instead ofGNOME_TERM
oe-buildenv-internal: Replace POKYMODE POKYLIBC with TCMODE and TCLIBC
default-distrovars: Add largefile and argp toDISTRO_FEATURESacl,attr: Fix build failures when NLS is disabled on uclibc classes/gettext: Do not disable nls for non target recipes libxdamage,libxft,libxrandr: Add missing dependency on virtual/libx11 tzcode,tzdata: Update tzdata to 2011h
task-core-x11-sato: Add emptyNETWORK_MANAGERfor uclibc uclibc_0.9.32: Implementsync_file_range2.
oprofile: Fix build whenquery_moduleis not there
powertop: Add lintl to linker commandline on uclibc pimlico/dates: Fix build on uclibc
binutils: Fix build when compiling target binutils recipe with gcc 4.6
clutter-box2d: Replace use of finite macro with C99 compliantisfinite()
sysprof: DefineNT_GNU_BUILD_IDif undefined
mesa-xlib: Dont use locales with uclibcmeta/classes/gettext.bbclass | 2 +-
meta/conf/bitbake.conf| 4 +- meta/conf/distro/include/default-distrovars.inc | 3 +-.../uclibc/uclibc-0.9.32/sync_file_range2.patch| 15 ++++ meta/recipes-core/uclibc/uclibc_0.9.32.bb | 3 +-.../binutils/binutils/clone-shadow.patch| 79 ++++++++++++++++++++ meta/recipes-devtools/binutils/binutils_2.21.1.bb | 3 +- .../recipes-extended/tzcode/tzcode-native_2011g.bb | 7 +- .../tzdata/{tzdata_2011g.bb => tzdata_2011h.bb} | 8 +-.../clutter/clutter-box2d/isfinite.patch| 19 +++++ meta/recipes-graphics/clutter/clutter-box2d_git.bb | 6 +-.../mesa/mesa-xlib/uclibc_locale.patch| 18 +++++ meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb | 3 +- meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb | 4 +- meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb | 4 +- meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb | 4 +-.../oprofile/oprofile-no-query-modules.patch| 29 +++++++ meta/recipes-kernel/oprofile/oprofile_0.9.6.bb | 3 +- meta/recipes-kernel/powertop/powertop_1.13.bb | 11 ++-.../sysprof/files/define-NT_GNU_BUILD_ID.patch| 22 ++++++ meta/recipes-kernel/sysprof/sysprof_git.bb | 5 +- meta/recipes-sato/pimlico/dates.inc | 2 +-.../uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch| 37 +++++++++ meta/recipes-sato/pimlico/dates_git.bb | 6 +- meta/recipes-sato/tasks/task-core-x11-sato.bb | 2 + meta/recipes-support/attr/acl_2.2.51.bb | 2 +- meta/recipes-support/attr/attr.inc | 4 - meta/recipes-support/attr/attr_2.4.46.bb | 2 +- meta/recipes-support/attr/ea-acl.inc | 3 +scripts/oe-buildenv-internal| 2 +-30 files changed, 271 insertions(+), 41 deletions(-)create mode 100644
meta/recipes-core/uclibc/uclibc-0.9.32/sync_file_range2.patchcreate mode 100644meta/recipes-devtools/binutils/binutils/clone-shadow.patchrename meta/recipes-extended/tzdata/{tzdata_2011g.bb => tzdata_2011h.bb} (96%) create mode 100644meta/recipes-graphics/clutter/clutter-box2d/isfinite.patchcreate mode 100644meta/recipes-graphics/mesa/mesa-xlib/uclibc_locale.patchcreate mode 100644meta/recipes-kernel/oprofile/oprofile/oprofile-no-query-modules.patchcreate mode 100644meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patchcreate mode 100644meta/recipes-sato/pimlico/dates/uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch--
1.7.4.1
Quoted 14 lines · Khem Raj
This patch is V3 of the recents posts I have been doing from kraj/uclibc-oecore branch. With this patchset now core-image-minimal is buildable and bootable for all arches in oe-core. Core-image-sato is buildable but I have not tried to boot it first attemp hung but then I have been trying to build eglibc based core-image-sato and make sure that that boots.
The following changes since commit
3d2c1ca9096790e4c6922b65b83ea1dffb90c362:util-linux: Replace sigsetmask with posix compliant functions (2011-07-15 18:52:49 -0700)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contribkraj/uclibc-oecore
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/uclibc-oecore
Quoted 12 lines
Khem Raj (16):
bitbake.conf: Change TERM default fallback to XTERM instead of
GNOME_TERM
oe-buildenv-internal: Replace POKYMODE POKYLIBC with TCMODE and
TCLIBC
default-distrovars: Add largefile and argp toDISTRO_FEATURESacl,attr: Fix build failures when NLS is disabled on uclibc classes/gettext: Do not disable nls for non target recipes libxdamage,libxft,libxrandr: Add missing dependency on virtual/libx11 tzcode,tzdata: Update tzdata to 2011h
task-core-x11-sato: Add emptyNETWORK_MANAGERfor uclibc uclibc_0.9.32: Implementsync_file_range2.
This got merged, but need the patch to have a Comment, Upstream-Status and Signed-off-by added to it.
Quoted 9 lines
oprofile: Fix build when
query_moduleis not there
powertop: Add lintl to linker commandline on uclibc pimlico/dates: Fix build on uclibc
binutils: Fix build when compiling target binutils recipe with gcc4.6clutter-box2d: Replace use of finite macro with C99 compliant
isfinite()
sysprof: DefineNT_GNU_BUILD_IDif undefined
mesa-xlib: Dont use locales with uclibc
There are comments about this one on the list.
15/16 got merged, but please submit an update to uclibc_0.9.32 patch.
Thanks
Sau!
Quoted 41 lines
meta/classes/gettext.bbclass | 2 +- meta/conf/bitbake.conf | 4 +- meta/conf/distro/include/default-distrovars.inc | 3 +- .../uclibc/uclibc-0.9.32/sync_file_range2.patch | 15 ++++ meta/recipes-core/uclibc/uclibc_0.9.32.bb | 3 +- .../binutils/binutils/clone-shadow.patch | 79 ++++++++++++++++++++ meta/recipes-devtools/binutils/binutils_2.21.1.bb | 3 +- .../recipes-extended/tzcode/tzcode-native_2011g.bb | 7 +- .../tzdata/{tzdata_2011g.bb => tzdata_2011h.bb} | 8 +- .../clutter/clutter-box2d/isfinite.patch | 19 +++++ meta/recipes-graphics/clutter/clutter-box2d_git.bb | 6 +- .../mesa/mesa-xlib/uclibc_locale.patch | 18 +++++ meta/recipes-graphics/mesa/mesa-xlib_7.10.2.bb | 3 +- meta/recipes-graphics/xorg-lib/libxdamage_1.1.3.bb | 4 +- meta/recipes-graphics/xorg-lib/libxft_2.2.0.bb | 4 +- meta/recipes-graphics/xorg-lib/libxrandr_1.3.1.bb | 4 +- .../oprofile/oprofile-no-query-modules.patch | 29 +++++++ meta/recipes-kernel/oprofile/oprofile_0.9.6.bb | 3 +- meta/recipes-kernel/powertop/powertop_1.13.bb | 11 ++- .../sysprof/files/define-NT_GNU_BUILD_ID.patch | 22 ++++++ meta/recipes-kernel/sysprof/sysprof_git.bb | 5 +- meta/recipes-sato/pimlico/dates.inc | 2 +- .../uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch | 37 +++++++++ meta/recipes-sato/pimlico/dates_git.bb | 6 +- meta/recipes-sato/tasks/task-core-x11-sato.bb | 2 + meta/recipes-support/attr/acl_2.2.51.bb | 2 +- meta/recipes-support/attr/attr.inc | 4 - meta/recipes-support/attr/attr_2.4.46.bb | 2 +- meta/recipes-support/attr/ea-acl.inc | 3 + scripts/oe-buildenv-internal | 2 +- 30 files changed, 271 insertions(+), 41 deletions(-)create mode 100644
meta/recipes-core/uclibc/uclibc-0.9.32/sync_file_range2.patchcreate mode 100644meta/recipes-devtools/binutils/binutils/clone-shadow.patchrename meta/recipes-extended/tzdata/{tzdata_2011g.bb => tzdata_2011h.bb} (96%) create mode 100644meta/recipes-graphics/clutter/clutter-box2d/isfinite.patchcreate mode 100644meta/recipes-graphics/mesa/mesa-xlib/uclibc_locale.patchcreate mode 100644meta/recipes-kernel/oprofile/oprofile/oprofile-no-query-modules.patchcreate mode 100644meta/recipes-kernel/sysprof/files/define-NT_GNU_BUILD_ID.patchcreate mode 100644meta/recipes-sato/pimlico/dates/uclibc-NL_TIME_FIRST_WEEKDAY-absent.patch