From b410d6e4ce58c177569d42b51772f7bb239a24a3 Mon Sep 17 00:00:00 2001 From: darylm503 Date: Thu, 26 Jan 2012 22:04:41 +0000 Subject: AppPkg/Applications/Python: Get Python startup process fully working for EDK II. AppPkg.dsc: Clean up and add Socket support. Applications/Python/PythonCore.inf: Re-order source files. Applications/Python/Efi/config.c: Add all mandatory modules. Disable remaining. Applications/Python/Efi/edk2module.c: EDK II port of posixmodule.c. Applications/Python/Efi/getpath.c: Determine initial module search path. Applications/Python/Ia32/pyconfig.h: Configuration macros for Ia32. Applications/Python/Ipf/pyconfig.h: Configuration macros for Ipf. Applications/Python/PyMod-2.7.2/Include/osdefs.h: Select appropriate directory and path separators for UEFI. Applications/Python/PyMod-2.7.2/Lib/ntpath.py: Allow multi-character device names to left of colon. Applications/Python/PyMod-2.7.2/Lib/os.py: Add edk2 as a supported OS. Applications/Python/PyMod-2.7.2/Lib/site.py: UEFI-specific path and environment setup. Applications/Python/PyMod-2.7.2/Modules/errnomodule.c: Sync with errno.h. Applications/Python/PyMod-2.7.2/Modules/selectmodule.c: Add UEFI support. Applications/Python/PyMod-2.7.2/Modules/socketmodule.h: Add UEFI support. Applications/Python/PyMod-2.7.2/Modules/zlib/zutil.h: Add UEFI support. Applications/Python/PyMod-2.7.2/Python/getcopyright.c: Add Intel copyright. Applications/Python/X64/pyconfig.h: Configuration macros for X64. Signed-off-by: darylm503 Reviewed-by: geekboy15a Reviewed-by: jljusten Reviewed-by: lpleahy Reviewed-by: leegrosenbaum git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12957 6f19259b-4bc3-4df7-8a09-765794883524 --- AppPkg/Applications/Python/Ia32/pyconfig.h | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'AppPkg/Applications/Python/Ia32') diff --git a/AppPkg/Applications/Python/Ia32/pyconfig.h b/AppPkg/Applications/Python/Ia32/pyconfig.h index 866c0f0b13..6b05e4e161 100644 --- a/AppPkg/Applications/Python/Ia32/pyconfig.h +++ b/AppPkg/Applications/Python/Ia32/pyconfig.h @@ -10,16 +10,15 @@ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. **/ - - #ifndef Py_PYCONFIG_H #define Py_PYCONFIG_H -#define PLATFORM "UEFI 2.3 Ia32" +#include + +/* Define to indicate that code is being built to run in the UEFI Environment. */ +#define UEFI_ENV EFI_SYSTEM_TABLE_REVISION -//#ifndef PYTHONPATH -//# define PYTHONPATH "/Efi/StdLib/lib/python.27;/Efi/StdLib/lib/python.27/lib-dynload" -//#endif +#define PLATFORM "UEFI" /* Define if building universal (internal helper macro) */ #undef AC_APPLE_UNIVERSAL_BUILD @@ -185,7 +184,7 @@ /* Define to 1 if you have the header file, and it defines `DIR'. */ -#undef HAVE_DIRENT_H +#define HAVE_DIRENT_H 1 /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H @@ -328,7 +327,7 @@ #undef HAVE_GETPAGESIZE /* Define to 1 if you have the `getpeername' function. */ -#undef HAVE_GETPEERNAME +#define HAVE_GETPEERNAME 1 /* Define to 1 if you have the `getpgid' function. */ #undef HAVE_GETPGID @@ -514,10 +513,10 @@ #undef HAVE_PLOCK /* Define to 1 if you have the `poll' function. */ -#undef HAVE_POLL +#define HAVE_POLL 1 /* Define to 1 if you have the header file. */ -#define HAVE_POLL_H 1 +#undef HAVE_POLL_H /* Define to 1 if you have the header file. */ #undef HAVE_PROCESS_H @@ -550,7 +549,7 @@ #undef HAVE_READLINK /* Define to 1 if you have the `realpath' function. */ -#undef HAVE_REALPATH +#define HAVE_REALPATH 1 /* Define if you have readline 2.1 */ #undef HAVE_RL_CALLBACK @@ -577,7 +576,7 @@ #undef HAVE_ROUND /* Define to 1 if you have the `select' function. */ -#undef HAVE_SELECT +#define HAVE_SELECT 1 /* Define to 1 if you have the `sem_getvalue' function. */ #undef HAVE_SEM_GETVALUE @@ -824,7 +823,7 @@ #define HAVE_TEMPNAM 1 /* Define to 1 if you have the header file. */ -#define HAVE_TERMIOS_H 1 +#undef HAVE_TERMIOS_H /* Define to 1 if you have the header file. */ #undef HAVE_TERM_H @@ -888,7 +887,7 @@ #undef HAVE_UTIMES /* Define to 1 if you have the header file. */ -#undef HAVE_UTIME_H +#define HAVE_UTIME_H 1 /* Define to 1 if you have the `wait3' function. */ #undef HAVE_WAIT3 -- cgit v1.2.3