[oe-commits] org.oe.dev linux-libc-headers: add UTS_RELEASE to version.h. Fixes uClibc builds with these headers
nail commit
openembedded-commits at lists.openembedded.org
Fri Mar 23 14:18:46 UTC 2007
linux-libc-headers: add UTS_RELEASE to version.h. Fixes uClibc builds with these headers
Author: nail at nslu2-linux.org
Branch: org.openembedded.dev
Revision: a38828c507edcbca26f56188e16cb5ab99bfd59f
ViewMTN: http://monotone.openembedded.org/revision.psp?id=a38828c507edcbca26f56188e16cb5ab99bfd59f
Files:
1
packages/linux-libc-headers/linux-libc-headers_2.6.18.bb
Diffs:
#
# mt diff -re11335447cdd49b1da98763b404e04753ebfea59 -ra38828c507edcbca26f56188e16cb5ab99bfd59f
#
#
#
# patch "packages/linux-libc-headers/linux-libc-headers_2.6.18.bb"
# from [aa21fd6708a6750cb850e5a0f3c2e92796384468]
# to [30f0fb68a585d378c56c1ea86bb12655e639feba]
#
============================================================
--- packages/linux-libc-headers/linux-libc-headers_2.6.18.bb aa21fd6708a6750cb850e5a0f3c2e92796384468
+++ packages/linux-libc-headers/linux-libc-headers_2.6.18.bb 30f0fb68a585d378c56c1ea86bb12655e639feba
@@ -67,4 +67,10 @@ do_stage () {
cp -pfLR ${STAGE_TEMP}${includedir}/linux ${CROSS_DIR}/${TARGET_SYS}/include/
cp -pfLR ${STAGE_TEMP}${includedir}/asm ${CROSS_DIR}/${TARGET_SYS}/include/
cp -pfLR ${STAGE_TEMP}${includedir}/asm-generic ${CROSS_DIR}/${TARGET_SYS}/include/
+ # Add UTS_RELEASE to version.h. UTS_RELEASE was moved from version.h to
+ # utsrelease.h in order to avoid recompiling a kernel every time a localversion
+ # changed. Since the our headers are static and we're not compiling an
+ # actual kernel, re-adding UTS_RELEASE does't hurt, and it allows uclibc to
+ # compile with kernel headers that work with EABI on ARM
+ echo '#define UTS_RELEASE "2.6.18"' >> ${CROSS_DIR}/${TARGET_SYS}/include/linux/version.h
}
More information about the Openembedded-commits
mailing list