diff options
author | Chris Larson <clarson@kergoth.com> | 2004-08-27 23:08:02 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-08-27 23:08:02 +0000 |
commit | af8c1bc094519b35cdd485e06f7c8fae1144bb6d (patch) | |
tree | 6a867fdc45961a48e7535e8ecdd9d10fed475f7e | |
parent | 635b401681c2afbe405b8abea883f58d4b595f66 (diff) |
Merge openembedded@openembedded.bkbits.net:packages
into handhelds.org:/home/kergoth/code/packages
2004/08/27 18:00:27-05:00 handhelds.org!kergoth
Apply patch to linux-libc-headers to add some missing SuperH headers.
BKrev: 412fbed2wqSbNMvSTPqVyc8DlSJ16w
-rw-r--r-- | linux-libc-headers/linux-libc-headers-2.6.7.0/sh-missing.patch | 0 | ||||
-rw-r--r-- | linux-libc-headers/linux-libc-headers_2.6.7.0.oe | 13 |
2 files changed, 10 insertions, 3 deletions
diff --git a/linux-libc-headers/linux-libc-headers-2.6.7.0/sh-missing.patch b/linux-libc-headers/linux-libc-headers-2.6.7.0/sh-missing.patch new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/linux-libc-headers/linux-libc-headers-2.6.7.0/sh-missing.patch diff --git a/linux-libc-headers/linux-libc-headers_2.6.7.0.oe b/linux-libc-headers/linux-libc-headers_2.6.7.0.oe index 15826a5181..f4fc0141cf 100644 --- a/linux-libc-headers/linux-libc-headers_2.6.7.0.oe +++ b/linux-libc-headers/linux-libc-headers_2.6.7.0.oe @@ -6,7 +6,8 @@ PR = "r2" # NOTE: no need to package these headers, since the c library includes them. PACKAGES = "" -SRC_URI = "http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-${PV}.tar.bz2" +SRC_URI = "http://ep09.pld-linux.org/~mmazur/linux-libc-headers/linux-libc-headers-${PV}.tar.bz2 \ + file://sh-missing.patch;patch=1" S = "${WORKDIR}/linux-libc-headers-${PV}" do_configure () { @@ -32,6 +33,8 @@ do_configure () { cp -a "include/asm-$ARCH" "include/asm" if test "$ARCH" = "arm"; then cp -a include/asm/arch-ebsa285 include/asm/arch + elif test "$ARCH" = "sh"; then + cp -a include/asm/cpu-${TARGET_ARCH} include/asm/cpu || die "unable to create include/asm/cpu" fi } @@ -40,12 +43,16 @@ do_stage () { rm -rf ${STAGING_INCDIR}/linux ${STAGING_INCDIR}/asm cp -pfLR include/linux ${STAGING_INCDIR}/ cp -pfLR include/asm ${STAGING_INCDIR}/ - ln -sf ${STAGING_KERNEL_DIR}/include/linux/wireless.h ${STAGING_INCDIR}/linux/wireless.h rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/linux rm -rf ${CROSS_DIR}/${TARGET_SYS}/include/asm install -d ${CROSS_DIR}/${TARGET_SYS}/include cp -pfLR include/linux ${CROSS_DIR}/${TARGET_SYS}/include/ cp -pfLR include/asm ${CROSS_DIR}/${TARGET_SYS}/include/ - ln -sf ${STAGING_KERNEL_DIR}/include/linux/wireless.h ${CROSS_DIR}/${TARGET_SYS}/include/linux/wireless.h + if [ -e "${STAGING_KERNEL_DIR}/include/linux/wireless.h" ]; then + oenote "Warning: unable to link wireless.h to a set of valid kernel sources." + oenote "Have you built a kernel?" + ln -sf ${STAGING_KERNEL_DIR}/include/linux/wireless.h ${STAGING_INCDIR}/linux/wireless.h + ln -sf ${STAGING_KERNEL_DIR}/include/linux/wireless.h ${CROSS_DIR}/${TARGET_SYS}/include/linux/wireless.h + fi } |