diff options
| author | Khem Raj <raj.khem@gmail.com> | 2012-09-08 23:06:13 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-19 17:56:28 +0100 |
| commit | c98b7e815e001e41b5b5bb8810cc351cd4cb94c0 (patch) | |
| tree | 2467ee22dcda86986febcb3393d72f8bede76caf | |
| parent | 7999c9b1aac4fb7ca5608545eb7a8e63fd117a60 (diff) | |
| download | poky-c98b7e815e001e41b5b5bb8810cc351cd4cb94c0.tar.gz | |
eglibc: Fix fcntl.h for powerpc
This fix is needed for systemd to work on powerpc
(From OE-Core rev: 76f3a1979ea166238e26a2569fb06a4a403bd864)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/eglibc/eglibc-2.16/0001-Add-name_to_handle_at-open_by_handle-etc.-to-PowerPC.patch | 65 | ||||
| -rw-r--r-- | meta/recipes-core/eglibc/eglibc_2.16.bb | 1 |
2 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-2.16/0001-Add-name_to_handle_at-open_by_handle-etc.-to-PowerPC.patch b/meta/recipes-core/eglibc/eglibc-2.16/0001-Add-name_to_handle_at-open_by_handle-etc.-to-PowerPC.patch new file mode 100644 index 0000000000..48b3c56158 --- /dev/null +++ b/meta/recipes-core/eglibc/eglibc-2.16/0001-Add-name_to_handle_at-open_by_handle-etc.-to-PowerPC.patch | |||
| @@ -0,0 +1,65 @@ | |||
| 1 | Upstream-Status: Submitted | ||
| 2 | |||
| 3 | |||
| 4 | From 4b2716f902c117490285e39deb6ef7925fdc846e Mon Sep 17 00:00:00 2001 | ||
| 5 | From: Khem Raj <raj.khem@gmail.com> | ||
| 6 | Date: Sat, 8 Sep 2012 19:54:03 -0700 | ||
| 7 | Subject: [PATCH] Add name_to_handle_at, open_by_handle etc. to PowerPC | ||
| 8 | bits/fcntl.h. | ||
| 9 | |||
| 10 | --- | ||
| 11 | ChangeLog | 7 +++++++ | ||
| 12 | sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h | 28 +++++++++++++++++++++++++- | ||
| 13 | 2 files changed, 34 insertions(+), 1 deletion(-) | ||
| 14 | |||
| 15 | Index: libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h | ||
| 16 | =================================================================== | ||
| 17 | --- libc.orig/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h 2012-09-08 10:27:08.000000000 -0700 | ||
| 18 | +++ libc/sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h 2012-09-08 19:57:44.219191560 -0700 | ||
| 19 | @@ -1,5 +1,5 @@ | ||
| 20 | /* O_*, F_*, FD_* bit values for Linux/PowerPC. | ||
| 21 | - Copyright (C) 1995-1998, 2000, 2003, 2004, 2006, 2007, 2009, 2010, 2011 | ||
| 22 | + Copyright (C) 1995-2012 | ||
| 23 | Free Software Foundation, Inc. | ||
| 24 | This file is part of the GNU C Library. | ||
| 25 | |||
| 26 | @@ -232,6 +232,19 @@ | ||
| 27 | we splice from/to). */ | ||
| 28 | # define SPLICE_F_MORE 4 /* Expect more data. */ | ||
| 29 | # define SPLICE_F_GIFT 8 /* Pages passed in are a gift. */ | ||
| 30 | + | ||
| 31 | + | ||
| 32 | +/* File handle structure. */ | ||
| 33 | +struct file_handle | ||
| 34 | +{ | ||
| 35 | + unsigned int handle_bytes; | ||
| 36 | + int handle_type; | ||
| 37 | + /* File identifier. */ | ||
| 38 | + unsigned char f_handle[0]; | ||
| 39 | +}; | ||
| 40 | + | ||
| 41 | +/* Maximum handle size (for now). */ | ||
| 42 | +# define MAX_HANDLE_SZ 128 | ||
| 43 | #endif | ||
| 44 | |||
| 45 | __BEGIN_DECLS | ||
| 46 | @@ -278,6 +291,19 @@ | ||
| 47 | __off64_t __len); | ||
| 48 | # endif | ||
| 49 | |||
| 50 | + | ||
| 51 | +/* Map file name to file handle. */ | ||
| 52 | +extern int name_to_handle_at (int __dfd, const char *__name, | ||
| 53 | + struct file_handle *__handle, int *__mnt_id, | ||
| 54 | + int __flags) __THROW; | ||
| 55 | + | ||
| 56 | +/* Open file using the file handle. | ||
| 57 | + | ||
| 58 | + This function is a possible cancellation point and therefore not | ||
| 59 | + marked with __THROW. */ | ||
| 60 | +extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle, | ||
| 61 | + int __flags); | ||
| 62 | + | ||
| 63 | #endif | ||
| 64 | |||
| 65 | __END_DECLS | ||
diff --git a/meta/recipes-core/eglibc/eglibc_2.16.bb b/meta/recipes-core/eglibc/eglibc_2.16.bb index 78dc44a675..8f3d1594d1 100644 --- a/meta/recipes-core/eglibc/eglibc_2.16.bb +++ b/meta/recipes-core/eglibc/eglibc_2.16.bb | |||
| @@ -29,6 +29,7 @@ SRC_URI = "svn://www.eglibc.org/svn/branches/;module=${EGLIBC_BRANCH};protocol=h | |||
| 29 | file://0001-eglibc-menuconfig-support.patch \ | 29 | file://0001-eglibc-menuconfig-support.patch \ |
| 30 | file://0002-eglibc-menuconfig-hex-string-options.patch \ | 30 | file://0002-eglibc-menuconfig-hex-string-options.patch \ |
| 31 | file://0003-eglibc-menuconfig-build-instructions.patch \ | 31 | file://0003-eglibc-menuconfig-build-instructions.patch \ |
| 32 | file://0001-Add-name_to_handle_at-open_by_handle-etc.-to-PowerPC.patch \ | ||
| 32 | " | 33 | " |
| 33 | LIC_FILES_CHKSUM = "file://LICENSES;md5=98a1128c4b58120182cbea3b1752d8b9 \ | 34 | LIC_FILES_CHKSUM = "file://LICENSES;md5=98a1128c4b58120182cbea3b1752d8b9 \ |
| 34 | file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \ | 35 | file://COPYING;md5=393a5ca445f6965873eca0259a17f833 \ |
