summaryrefslogtreecommitdiff
path: root/AppPkg/Applications/Python/Ia32
diff options
context:
space:
mode:
authordarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-26 22:04:41 +0000
committerdarylm503 <darylm503@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-26 22:04:41 +0000
commitb410d6e4ce58c177569d42b51772f7bb239a24a3 (patch)
tree479b6367165e6d14a64d3b9d78deed74aad18485 /AppPkg/Applications/Python/Ia32
parent87bd924782405a4ab605679f47aaefe3b34c7510 (diff)
downloadedk2-platforms-b410d6e4ce58c177569d42b51772f7bb239a24a3.tar.xz
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
Diffstat (limited to 'AppPkg/Applications/Python/Ia32')
-rw-r--r--AppPkg/Applications/Python/Ia32/pyconfig.h27
1 files changed, 13 insertions, 14 deletions
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 <Uefi.h>
+
+/* 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 <dirent.h> header file, and it defines `DIR'.
*/
-#undef HAVE_DIRENT_H
+#define HAVE_DIRENT_H 1
/* Define to 1 if you have the <dlfcn.h> 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 <poll.h> header file. */
-#define HAVE_POLL_H 1
+#undef HAVE_POLL_H
/* Define to 1 if you have the <process.h> 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 <termios.h> header file. */
-#define HAVE_TERMIOS_H 1
+#undef HAVE_TERMIOS_H
/* Define to 1 if you have the <term.h> header file. */
#undef HAVE_TERM_H
@@ -888,7 +887,7 @@
#undef HAVE_UTIMES
/* Define to 1 if you have the <utime.h> header file. */
-#undef HAVE_UTIME_H
+#define HAVE_UTIME_H 1
/* Define to 1 if you have the `wait3' function. */
#undef HAVE_WAIT3