summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2009-08-29 19:36:17 -0700
committerKhem Raj <raj.khem@gmail.com>2009-08-31 15:47:38 -0700
commit3c1aac7f71956dfb5acd9a76e9d5210ff5e2b189 (patch)
treef3451085b79b3220f381234fe401884521086829 /recipes
parent6cf6b423d98d76488b07992223e177ab0e79449d (diff)
uclibc: Pass ARCH=<TARGET_ARCH>" on make commandline.
Like linux kernel Git version of uclibc mandates that ARCH is passed down from make instead of being computed magically. This will be there in next release 0.9.31 of uclibc. Defining it on make invocation for older releases is no harm. Also move uclibc to use INC_PR Signed-off-by: Khem Raj <raj.khem@gmail.com> Acked-by: Henning Heinold <heinold@inf.fu-berlin.de>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/uclibc/bfin-uclibc_svn.bb3
-rw-r--r--recipes/uclibc/uclibc.inc4
-rw-r--r--recipes/uclibc/uclibc_0.9.28.bb3
-rw-r--r--recipes/uclibc/uclibc_0.9.29.bb2
-rw-r--r--recipes/uclibc/uclibc_0.9.30.1.bb2
-rw-r--r--recipes/uclibc/uclibc_0.9.30.bb2
-rw-r--r--recipes/uclibc/uclibc_git.bb3
-rw-r--r--recipes/uclibc/uclibc_nptl.bb2
8 files changed, 10 insertions, 11 deletions
diff --git a/recipes/uclibc/bfin-uclibc_svn.bb b/recipes/uclibc/bfin-uclibc_svn.bb
index 93052452c5..e5123ad56e 100644
--- a/recipes/uclibc/bfin-uclibc_svn.bb
+++ b/recipes/uclibc/bfin-uclibc_svn.bb
@@ -7,11 +7,10 @@
# on whether the base patches apply to the selected (SRCDATE) svn release.
#
UCLIBC_BASE ?= "0.9.29"
-PR = "r5"
PV = "${UCLIBC_BASE}+svnr${SRCREV}"
require uclibc.inc
-
+PR = "${INC_PR}.0"
PROVIDES_append_bfin = " virtual/${TARGET_PREFIX}libc-for-gcc "
#recent versions uclibc require real kernel headers
diff --git a/recipes/uclibc/uclibc.inc b/recipes/uclibc/uclibc.inc
index 3c723664d3..2ed7d82378 100644
--- a/recipes/uclibc/uclibc.inc
+++ b/recipes/uclibc/uclibc.inc
@@ -2,6 +2,7 @@ DESCRIPTION = "C library for embedded systems"
LICENSE = "LGPL"
SECTION = "libs"
PRIORITY = "required"
+INC_PR = "r32"
#
# For now, we will skip building of a gcc package if it is a uclibc one
# and our build is not a uclibc one, and we skip a glibc one if our build
@@ -79,7 +80,8 @@ UCLIBC_STAGE_PREFIX = "${STAGING_DIR_HOST}${layout_prefix}"
OEMAKE_NO_CC = "'STRIPTOOL=true' 'LD=${LD}' \
'LOCALE_DATA_FILENAME=${UCLIBC_LOCALE_FILE}'"
EXTRA_OEMAKE = "${OEMAKE_NO_CC} 'CC=${CC}' \
- 'HOSTCFLAGS=-I${STAGING_INCDIR_NATIVE}'"
+ 'HOSTCFLAGS=-I${STAGING_INCDIR_NATIVE}' \
+ ARCH=`grep TARGET_ARCH ${S}/.config|sed -e 's/TARGET_ARCH=//g'`"
EXTRA_OEMAKE_task_do_package = "${OEMAKE_NO_CC}"
KERNEL_SOURCE = "${STAGING_INCDIR}"
diff --git a/recipes/uclibc/uclibc_0.9.28.bb b/recipes/uclibc/uclibc_0.9.28.bb
index aef0cd8028..2e909399d3 100644
--- a/recipes/uclibc/uclibc_0.9.28.bb
+++ b/recipes/uclibc/uclibc_0.9.28.bb
@@ -1,6 +1,5 @@
-PR = "r18"
-
require uclibc.inc
+PR = "${INC_PR}.0"
# This is the correct KERNEL_SOURCE location, if the uClibc
# fix_includes.sh script is run (see nokernelheader.patch below)
diff --git a/recipes/uclibc/uclibc_0.9.29.bb b/recipes/uclibc/uclibc_0.9.29.bb
index de98a637c9..1679ada8b7 100644
--- a/recipes/uclibc/uclibc_0.9.29.bb
+++ b/recipes/uclibc/uclibc_0.9.29.bb
@@ -7,9 +7,9 @@
# on whether the base patches apply to the selected (SRCDATE) svn release.
#
UCLIBC_BASE ?= "0.9.29"
-PR = "r31"
require uclibc.inc
+PR = "${INC_PR}.0"
PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc"
diff --git a/recipes/uclibc/uclibc_0.9.30.1.bb b/recipes/uclibc/uclibc_0.9.30.1.bb
index 972b9576bd..821e06e8bb 100644
--- a/recipes/uclibc/uclibc_0.9.30.1.bb
+++ b/recipes/uclibc/uclibc_0.9.30.1.bb
@@ -7,9 +7,9 @@
# on whether the base patches apply to the selected (SRCDATE) svn release.
#
UCLIBC_BASE ?= "0.9.30.1"
-PR = "r4"
require uclibc.inc
+PR = "${INC_PR}.0"
PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc"
diff --git a/recipes/uclibc/uclibc_0.9.30.bb b/recipes/uclibc/uclibc_0.9.30.bb
index 4d58b8904e..2e18ab9fa5 100644
--- a/recipes/uclibc/uclibc_0.9.30.bb
+++ b/recipes/uclibc/uclibc_0.9.30.bb
@@ -7,9 +7,9 @@
# on whether the base patches apply to the selected (SRCDATE) svn release.
#
UCLIBC_BASE ?= "0.9.30"
-PR = "r7"
require uclibc.inc
+PR = "${INC_PR}.0"
PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc"
diff --git a/recipes/uclibc/uclibc_git.bb b/recipes/uclibc/uclibc_git.bb
index 0fac211de2..cdc5ae14f4 100644
--- a/recipes/uclibc/uclibc_git.bb
+++ b/recipes/uclibc/uclibc_git.bb
@@ -9,13 +9,12 @@
UCLIBC_BASE ?= "0.9.30"
SRCREV="6625518cd6894338937a74ca6b9187b7b8167b03"
PV = "${UCLIBC_BASE}+gitr${SRCREV}"
-PR = "r1"
DEFAULT_PREFERENCE = "-1"
#DEFAULT_PREFERENCE is 0 (empty), releases have a preference of 1 so take
# precedence.
require uclibc.inc
-
+PR = "${INC_PR}.0"
PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc"
#recent versions uclibc require real kernel headers
diff --git a/recipes/uclibc/uclibc_nptl.bb b/recipes/uclibc/uclibc_nptl.bb
index bdf7d9c49d..afb6347256 100644
--- a/recipes/uclibc/uclibc_nptl.bb
+++ b/recipes/uclibc/uclibc_nptl.bb
@@ -9,12 +9,12 @@
UCLIBC_BASE ?= "0.9.30"
SRCREV="d57e6548d253a9efed91d72498aeda092fa265d2"
PV = "${UCLIBC_BASE}+gitr${SRCREV}"
-PR = "r1"
DEFAULT_PREFERENCE = "-1"
#DEFAULT_PREFERENCE is 0 (empty), releases have a preference of 1 so take
# precedence.
require uclibc.inc
+PR = "${INC_PR}.0"
PROVIDES += "virtual/${TARGET_PREFIX}libc-for-gcc"