From: Robert Schuster <theBohemian@gmx.net>
To: openembedded-devel@lists.openembedded.org
Subject: RFC: I want my <asm/ucontext.h>
Date: Thu, 31 Jul 2008 21:45:50 +0200 [thread overview]
Message-ID: <4892166E.2050206@gmx.net> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 641 bytes --]
Hi,
I am currently writing a recipe for Sun's phoneme and this wants to
#include <asm/ucontext.h>
Unfortunately this file is not part of our newer linux-libc-header
packages anymore. The problem is as follows:
In the recipes for versions earlier than 2.6.18 we copied the kernel's
include/asm-$ARCH/ files manually. In later kernels we relied upon 'make
install_headers'. Now the kernels Kbuild files do not mention ucontext.h
and as such it is not installed.
In the attached patch I added the installation of ucontext.h for all
newer linux-libc-headers recipes.
Please write if that is OK for .dev.
Regards
Robert
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: oe-linux-libc-ucontext.patch --]
[-- Type: text/x-patch; name="oe-linux-libc-ucontext.patch", Size: 5065 bytes --]
#
# old_revision [2f0d85eeec79f2264f9ab9dfd612b78206b10d58]
#
# patch "packages/linux-libc-headers/linux-libc-headers_2.6.18.bb"
# from [315b1efcbbcf61f41ebcdd6ff78e4306089eb779]
# to [e70c403e494b5c1f6aab3b22e9a1d89b0bd16c6d]
#
# patch "packages/linux-libc-headers/linux-libc-headers_2.6.20.bb"
# from [bb5b016cdec7c47517f8a6f0f98bb2bf0553754b]
# to [f50d6a513fff87005db81caba9a8ecee7a97fc34]
#
# patch "packages/linux-libc-headers/linux-libc-headers_2.6.22.bb"
# from [9848fbf9a03e26527896520878c57d533bebc91e]
# to [9c69a4a4cb2fa320f613a45ad97ebc6f07612dbc]
#
# patch "packages/linux-libc-headers/linux-libc-headers_2.6.23.bb"
# from [bf5ec08a1649841a180f829658d288158043c847]
# to [6baf88ce91a21d42fe108b1880ea7986f596a136]
#
# patch "packages/linux-libc-headers/linux-libc-headers_2.6.25.bb"
# from [db5fbde3ea8fba339863fac327c7734070be0da6]
# to [7a8cf58d50758c246f13954819dccc3fcbebb559]
#
============================================================
--- packages/linux-libc-headers/linux-libc-headers_2.6.18.bb 315b1efcbbcf61f41ebcdd6ff78e4306089eb779
+++ packages/linux-libc-headers/linux-libc-headers_2.6.18.bb e70c403e494b5c1f6aab3b22e9a1d89b0bd16c6d
@@ -2,7 +2,7 @@ DEPENDS += "unifdef-native"
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS += "unifdef-native"
-PR = "r3"
+PR = "r4"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2 \
file://arm-syscall-define.patch;patch=1"
@@ -52,7 +52,8 @@ do_stage () {
rm -rf ${STAGE_TEMP}
mkdir -p ${STAGE_TEMP}
oe_runmake headers_install INSTALL_HDR_PATH=${STAGE_TEMP}${exec_prefix} ARCH=${ARCH}
- if [ "${ARCH}" == "arm" ]; then
+ cp ${S}/include/asm-$ARCH/ucontext.h ${STAGE_TEMP}${includedir}/asm
+ if [ "$ARCH" == "arm" ]; then
cp include/asm-arm/procinfo.h ${STAGE_TEMP}${includedir}/asm
fi
install -d ${STAGING_INCDIR}
============================================================
--- packages/linux-libc-headers/linux-libc-headers_2.6.20.bb bb5b016cdec7c47517f8a6f0f98bb2bf0553754b
+++ packages/linux-libc-headers/linux-libc-headers_2.6.20.bb f50d6a513fff87005db81caba9a8ecee7a97fc34
@@ -2,7 +2,7 @@ DEPENDS += "unifdef-native"
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS += "unifdef-native"
-PR = "r9"
+PR = "r10"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
file://procinfo.h"
@@ -55,6 +55,7 @@ do_stage () {
rm -rf ${STAGE_TEMP}
mkdir -p ${STAGE_TEMP}
oe_runmake headers_install INSTALL_HDR_PATH=${STAGE_TEMP}${exec_prefix} ARCH=$ARCH
+ cp ${S}/include/asm-$ARCH/ucontext.h ${STAGE_TEMP}${includedir}/asm
if [ "$ARCH" = "arm" ]; then
cp ${WORKDIR}/procinfo.h ${STAGE_TEMP}${includedir}/asm/
fi
============================================================
--- packages/linux-libc-headers/linux-libc-headers_2.6.22.bb 9848fbf9a03e26527896520878c57d533bebc91e
+++ packages/linux-libc-headers/linux-libc-headers_2.6.22.bb 9c69a4a4cb2fa320f613a45ad97ebc6f07612dbc
@@ -55,6 +55,7 @@ do_stage () {
rm -rf ${STAGE_TEMP}
mkdir -p ${STAGE_TEMP}
oe_runmake headers_install INSTALL_HDR_PATH=${STAGE_TEMP}${exec_prefix} ARCH=$ARCH
+ cp ${S}/include/asm-$ARCH/ucontext.h ${STAGE_TEMP}${includedir}/asm
if [ "$ARCH" = "arm" ]; then
cp ${WORKDIR}/procinfo.h ${STAGE_TEMP}${includedir}/asm/
fi
============================================================
--- packages/linux-libc-headers/linux-libc-headers_2.6.23.bb bf5ec08a1649841a180f829658d288158043c847
+++ packages/linux-libc-headers/linux-libc-headers_2.6.23.bb 6baf88ce91a21d42fe108b1880ea7986f596a136
@@ -2,7 +2,7 @@ DEPENDS += "unifdef-native"
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS += "unifdef-native"
-PR = "r3"
+PR = "r4"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
file://procinfo.h"
@@ -55,6 +55,7 @@ do_stage () {
rm -rf ${STAGE_TEMP}
mkdir -p ${STAGE_TEMP}
oe_runmake headers_install INSTALL_HDR_PATH=${STAGE_TEMP}${exec_prefix} ARCH=$ARCH
+ cp ${S}/include/asm-$ARCH/ucontext.h ${STAGE_TEMP}${includedir}/asm/
if [ "$ARCH" = "arm" ]; then
cp ${WORKDIR}/procinfo.h ${STAGE_TEMP}${includedir}/asm/
fi
============================================================
--- packages/linux-libc-headers/linux-libc-headers_2.6.25.bb db5fbde3ea8fba339863fac327c7734070be0da6
+++ packages/linux-libc-headers/linux-libc-headers_2.6.25.bb 7a8cf58d50758c246f13954819dccc3fcbebb559
@@ -2,7 +2,7 @@ DEPENDS += "unifdef-native"
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS += "unifdef-native"
-PR = "r1"
+PR = "r2"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/kernel/v2.6/linux-${PV}.tar.bz2 \
file://reinstate-a.out.h.patch;patch=1 \
@@ -57,6 +57,7 @@ do_stage () {
rm -rf ${STAGE_TEMP}
mkdir -p ${STAGE_TEMP}
oe_runmake headers_install INSTALL_HDR_PATH=${STAGE_TEMP}${exec_prefix} ARCH=$ARCH
+ cp ${S}/include/asm-$ARCH/ucontext.h ${STAGE_TEMP}${includedir}/asm
if [ "$ARCH" = "arm" ]; then
cp ${WORKDIR}/procinfo.h ${STAGE_TEMP}${includedir}/asm/
fi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 268 bytes --]
next reply other threads:[~2008-07-31 19:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 19:45 Robert Schuster [this message]
2008-07-31 21:14 ` RFC: I want my <asm/ucontext.h> Robert Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4892166E.2050206@gmx.net \
--to=thebohemian@gmx.net \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.