Skip to contentSkip to conversation

Make oecore default images buildable with uclibc

PATCH Superseded Khem Raj 1 participant 6 messages Jul 16, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

cover Make oecore default images buildable with uclibc

These patches make sure that core-image-minimal is buildable by using *just* oe-core layer. Testing building and booting qemux86-64 core-image-minimal

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 (4):
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 to DISTRO_FEATURES acl,attr: Fix build failures when NLS is disabled on uclibc

 meta/conf/bitbake.conf                          |    4 ++--
 meta/conf/distro/include/default-distrovars.inc |    3 +--
 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            |    4 ++++
 scripts/oe-buildenv-internal                    |    2 +-
 7 files changed, 10 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.4.1
author
#1 lore raw

PATCH 1/4 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
index 463991d..128b0b6 100644
@@ -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
author
#2 lore raw

PATCH 2/4 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
index 09dbf02..c13fc40 100755
@@ -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
author
#3 lore raw

PATCH 3/4 default-distrovars: Add largefile to DISTRO_FEATURES

In reply to Khem Raj

This is needed for packages that go into core-image-minimal 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
index fe8ed22..f9d44a6 100644
@@ -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 bluetooth ext2 irda largefile pcmcia usbgadget usbhost wifi nfs zeroconf pci 3g ${DISTRO_FEATURES_LIBC}"
 
 IMAGE_FEATURES ?= ""
 
Signature · 1 line
1.7.4.1
author
#4 lore raw

PATCH 4/4 acl, attr: Fix build failures when NLS is disabled on uclibc

In reply to Khem Raj

Disable 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     |    4 ++++
 4 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-support/attr/acl_2.2.51.bb +1 -1
index 301d44a..18aac7c 100644
@@ -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
index b2ed9a1..c110340 100644
@@ -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
index 9fef41b..fe8ab79 100644
@@ -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 +4 -0
index afe2f1c..96dc0fb 100644
@@ -32,3 +32,7 @@ FILES_lib${PN}-doc = "${mandir}/man2 \
                       ${mandir}/man3"
 
 BBCLASSEXTEND = "native"
+# Only append ldflags for target recipe and if USE_NLS is enabled
+LDFLAGS_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 ', ' --enable-gettext '][(bb.data.getVar('PN', d, True) == bb.data.getVar('BPN', d , True)) and (bb.data.getVar('USE_NLS', d, True) == 'yes')]}"
+
Signature · 1 line
1.7.4.1
author
#5 lore raw

Re: [PATCH 4/4] acl, attr: Fix build failures when NLS is disabled on uclibc

Quoted 1 line · Khem Raj

Disable gettext support when NLS is not enabled

hold on to this patch there I found problems building from scratch on acl-native I am fixing it. Other patches in the series are ok.

Quoted 61 lines

---
 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     |    4 ++++

 4 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-support/attr/acl_2.2.51.bb +0 -0
index 301d44a..18aac7c 100644
@@ -1,6 +1,6 @@

 require acl.inc

meta/recipes-support/attr/acl_2.2.51.bb +1 -1
-PR = "r0"
+PR = "r1"

 SRC_URI[md5sum] = "3fc0ce99dc5253bdcce4c9cd437bc267"
 SRC_URI[sha256sum] = "06854521cf5d396801af7e54b9636680edf8064355e51c07657ec7442a185225"

meta/recipes-support/attr/attr.inc +0 -4
index b2ed9a1..c110340 100644
@@ -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 +0 -0
index 9fef41b..fe8ab79 100644
@@ -1,6 +1,6 @@

 require attr.inc

meta/recipes-support/attr/attr_2.4.46.bb +1 -1
-PR = "r0"
+PR = "r1"

 SRC_URI[md5sum] = "db557c17fdfa4f785333ecda08654010"
 SRC_URI[sha256sum] = "dcd69bdca7ff166bc45141eddbcf21967999a6b66b0544be12a1cc2fd6340e1f"

meta/recipes-support/attr/ea-acl.inc +0 -0
index afe2f1c..96dc0fb 100644
@@ -32,3 +32,7 @@ FILES_lib${PN}-doc = "${mandir}/man2 \

                      ${mandir}/man3"

 BBCLASSEXTEND = "native"

meta/recipes-support/attr/ea-acl.inc +4 -1
+# Only append ldflags for target recipe and if USE_NLS is enabled
+LDFLAGS_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 ', ' --enable-gettext '][(bb.data.getVar('PN', d, True) == bb.data.getVar('BPN', d , True)) and (bb.data.getVar('USE_NLS', d, True) == 'yes')]}"
+
--

1.7.4.1