Skip to contentSkip to conversation

RFC: I want my <asm/ucontext.h>

PATCH Robert Schuster 1 participant 2 messages Jul 31, 2008

lore
Share & tools
lore
#0 lore raw

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

#

# 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}
============================================================

linux-libc-headers/linux-libc-headers_2.6.20.bb +2 -1
@@ -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

============================================================

linux-libc-headers/linux-libc-headers_2.6.22.bb +1 -0
@@ -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

============================================================

linux-libc-headers/linux-libc-headers_2.6.23.bb +2 -1
@@ -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

============================================================

linux-libc-headers/linux-libc-headers_2.6.25.bb +2 -1
@@ -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
#1 lore raw

Hi,
forget these patches. asm/ucontext.h isnt needed so much. Newer Debian's do not have it also.

I modified the source file to include <ucontext.h> (from glibc) instead and this works without problems.

Regards
Robert

Quoted 28 lines · Robert Schuster

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

------------------------------------------------------------------------

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel