Remove Python2

Fixes #3751
This commit is contained in:
Norman Feske 2020-05-08 16:09:35 +02:00
parent 48b2456845
commit 07502ce6bb
31 changed files with 0 additions and 2509 deletions

View File

@ -696,7 +696,6 @@ set default_test_pkgs {
test-part_block_mbr
test-pipe
test-pthread
test-python
test-ram_fs_chunk
test-read_only_rom
test-reconstructible
@ -762,7 +761,6 @@ set skip_test(test-fault_detection) [expr [have_spec pistachio] || [have_spec fi
set skip_test(test-fs_packet) [expr ![interactive] && [have_include "power_on/qemu"]]
set skip_test(test-libc) [expr [have_spec sel4] || [have_spec rpi] || [expr [have_spec pbxa9] && [have_spec foc]] || [expr [have_spec imx53] && [have_spec trustzone]]]
set skip_test(test-lx_block) [expr ![have_spec linux]]
set skip_test(test-python) [expr ![have_spec x86]]
set skip_test(test-rm_fault) [expr [have_spec linux] || ![non_executable_supported]]
set skip_test(test-rm_fault_no_nox) [expr [have_spec linux] || ![skip_test test-rm_fault]]
set skip_test(test-rm_nested) [expr [have_spec linux]]

View File

@ -1,3 +0,0 @@
/*
* Note: This is just a dummy, since Python thinks we're running on FreeBSD.
*/

File diff suppressed because it is too large Load Diff

View File

@ -1,20 +0,0 @@
/*
* \brief Data type size definitions (32 Bit)
* \author Sebastian Sumpf
* \date 2010-02-17
*/
/*
* Copyright (C) 2010-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _PYTHON__GENODE_DEFS_H_
#define _PYTHON__GENODE_DEFS_H_
#define GENODE_SIZEOF_LONG 4
#define GENODE_SIZEOF_INT 4
#endif /* _PYTHON__GENODE_DEFS_H_ */

View File

@ -1,20 +0,0 @@
/*
* \brief Data type size definitions (32 Bit)
* \author Sebastian Sumpf
* \date 2010-02-17
*/
/*
* Copyright (C) 2010-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _PYTHON__GENODE_DEFS_H_
#define _PYTHON__GENODE_DEFS_H_
#define GENODE_SIZEOF_LONG 8
#define GENODE_SIZEOF_INT 4
#endif /* _PYTHON__GENODE_DEFS_H_ */

View File

@ -1,14 +0,0 @@
PYTHON = python-2.6.4
REP_INC_DIR += include/python
INC_DIR += $(call select_from_ports,python)/include
ifeq ($(filter-out $(SPECS),x86),)
ifeq ($(filter-out $(SPECS),32bit),)
REP_INC_DIR += include/python/spec/x86_32
endif # 32bit
ifeq ($(filter-out $(SPECS),64bit),)
REP_INC_DIR += include/python/spec/x86_64
endif # 64bit
endif # x86

View File

@ -1,140 +0,0 @@
PYTHON_PORT_DIR := $(call select_from_ports,python)
PYTHON_DIR := $(PYTHON_PORT_DIR)/src/lib/python
LIBS += libc libm
SHARED_LIB = yes
# use our custom 'pyconfig.h' file
INC_DIR += $(REP_DIR)/include/python
# Python headres
INC_DIR += $(PYTHON_DIR)/Include
D_OPTS = Py_BUILD_CORE NDBEUG PREFIX='""' EXEC_PREFIX='"lib"' VERSION='"2.6"'
F_OPTS = no-strict-aliasing wrapv
D_OPTS := $(addprefix -D,$(D_OPTS))
F_OPTS := $(addprefix -f,$(F_OPTS))
CC_DEF += $(F_OPTS) $(D_OPTS)
# python.c
#
SRC_C = \
dynload_shlib.c \
dup.c \
getbuildinfo.c \
acceler.c \
grammar1.c \
listnode.c \
node.c \
parser.c \
parsetok.c \
bitset.c \
metagrammar.c \
firstsets.c \
grammar.c \
pgen.c \
myreadline.c \
tokenizer.c \
abstract.c \
boolobject.c \
bufferobject.c \
bytes_methods.c \
bytearrayobject.c \
cellobject.c \
classobject.c \
cobject.c \
codeobject.c \
complexobject.c \
descrobject.c \
enumobject.c \
exceptions.c \
genobject.c \
fileobject.c \
floatobject.c \
frameobject.c \
funcobject.c \
intobject.c \
iterobject.c \
listobject.c \
longobject.c \
dictobject.c \
methodobject.c \
moduleobject.c \
object.c \
obmalloc.c \
rangeobject.c \
setobject.c \
sliceobject.c \
stringobject.c \
structseq.c \
tupleobject.c \
typeobject.c \
weakrefobject.c \
unicodeobject.c \
unicodectype.c \
_warnings.c \
Python-ast.c \
asdl.c \
ast.c \
bltinmodule.c \
ceval.c \
compile.c \
codecs.c \
errors.c \
frozen.c \
frozenmain.c \
future.c \
getargs.c \
getcompiler.c \
getcopyright.c \
getmtime.c \
getplatform.c \
getversion.c \
graminit.c \
import.c \
importdl.c \
marshal.c \
modsupport.c \
mystrtoul.c \
mysnprintf.c \
peephole.c \
pyarena.c \
pyfpe.c \
pymath.c \
pystate.c \
pythonrun.c \
structmember.c \
symtable.c \
sysmodule.c \
traceback.c \
getopt.c \
pystrcmp.c \
pystrtod.c \
formatter_unicode.c \
formatter_string.c \
config.c \
getpath.c \
main.c \
gcmodule.c \
signalmodule.c \
posixmodule.c \
errnomodule.c \
pwdmodule.c \
_sre.c \
_codecsmodule.c \
zipimport.c \
symtablemodule.c \
xxsubtype.c
CC_C_OPT = -Wno-implicit-function-declaration \
-Wno-int-to-pointer-cast \
-Wno-unused-but-set-variable \
-Wno-unused-function \
-Wno-unused-variable
vpath %.c $(PYTHON_DIR)/Modules
vpath %.c $(PYTHON_DIR)/Objects
vpath %.c $(PYTHON_DIR)/Parser
vpath %.c $(PYTHON_DIR)/Python
vpath %.c $(REP_DIR)/src/lib/python
vpath %.cc $(REP_DIR)/src/lib/python

View File

@ -1,5 +0,0 @@
include $(REP_DIR)/lib/mk/python.inc
INC_DIR += $(REP_DIR)/include/python/spec/x86_32
CC_CXX_WARN_STRICT =

View File

@ -1,5 +0,0 @@
include $(REP_DIR)/lib/mk/python.inc
INC_DIR += $(REP_DIR)/include/python/spec/x86_64
CC_CXX_WARN_STRICT =

View File

@ -1,843 +0,0 @@
PyAST_Check T
PyAST_Compile T
PyAST_FromNode T
PyAST_mod2obj T
PyAST_obj2mod T
PyArena_AddPyObject T
PyArena_Free T
PyArena_Malloc T
PyArena_New T
PyArg_Parse T
PyArg_ParseTuple T
PyArg_ParseTupleAndKeywords T
PyArg_UnpackTuple T
PyArg_VaParse T
PyArg_VaParseTupleAndKeywords T
PyBaseObject_Type D 392
PyBaseString_Type D 392
PyBool_FromLong T
PyBool_Type D 392
PyBuffer_FillContiguousStrides T
PyBuffer_FillInfo T
PyBuffer_FromContiguous T
PyBuffer_FromMemory T
PyBuffer_FromObject T
PyBuffer_FromReadWriteMemory T
PyBuffer_FromReadWriteObject T
PyBuffer_GetPointer T
PyBuffer_IsContiguous T
PyBuffer_New T
PyBuffer_Release T
PyBuffer_ToContiguous T
PyBuffer_Type D 392
PyByteArrayIter_Type D 392
PyByteArray_AsString T
PyByteArray_Concat T
PyByteArray_Fini T
PyByteArray_FromObject T
PyByteArray_FromStringAndSize T
PyByteArray_Init T
PyByteArray_Resize T
PyByteArray_Size T
PyByteArray_Type D 392
PyCFunction_Call T
PyCFunction_ClearFreeList T
PyCFunction_Fini T
PyCFunction_GetFlags T
PyCFunction_GetFunction T
PyCFunction_GetSelf T
PyCFunction_New T
PyCFunction_NewEx T
PyCFunction_Type D 392
PyCObject_AsVoidPtr T
PyCObject_FromVoidPtr T
PyCObject_FromVoidPtrAndDesc T
PyCObject_GetDesc T
PyCObject_Import T
PyCObject_SetVoidPtr T
PyCObject_Type D 392
PyCallIter_New T
PyCallIter_Type D 392
PyCallable_Check T
PyCell_Get T
PyCell_New T
PyCell_Set T
PyCell_Type D 392
PyClassMethod_New T
PyClassMethod_Type D 392
PyClass_IsSubclass T
PyClass_New T
PyClass_Type D 392
PyCode_Addr2Line T
PyCode_CheckLineNumber T
PyCode_New T
PyCode_Optimize T
PyCode_Type D 392
PyCodec_BackslashReplaceErrors T
PyCodec_Decode T
PyCodec_Decoder T
PyCodec_Encode T
PyCodec_Encoder T
PyCodec_IgnoreErrors T
PyCodec_IncrementalDecoder T
PyCodec_IncrementalEncoder T
PyCodec_LookupError T
PyCodec_Register T
PyCodec_RegisterError T
PyCodec_ReplaceErrors T
PyCodec_StreamReader T
PyCodec_StreamWriter T
PyCodec_StrictErrors T
PyCodec_XMLCharRefReplaceErrors T
PyComplex_AsCComplex T
PyComplex_FromCComplex T
PyComplex_FromDoubles T
PyComplex_ImagAsDouble T
PyComplex_RealAsDouble T
PyComplex_Type D 392
PyDescr_NewClassMethod T
PyDescr_NewGetSet T
PyDescr_NewMember T
PyDescr_NewMethod T
PyDescr_NewWrapper T
PyDictIterItem_Type D 392
PyDictIterKey_Type D 392
PyDictIterValue_Type D 392
PyDictProxy_New T
PyDictProxy_Type D 392
PyDict_Clear T
PyDict_Contains T
PyDict_Copy T
PyDict_DelItem T
PyDict_DelItemString T
PyDict_Fini T
PyDict_GetItem T
PyDict_GetItemString T
PyDict_Items T
PyDict_Keys T
PyDict_Merge T
PyDict_MergeFromSeq2 T
PyDict_New T
PyDict_Next T
PyDict_SetItem T
PyDict_SetItemString T
PyDict_Size T
PyDict_Type D 392
PyDict_Update T
PyDict_Values T
PyEllipsis_Type D 392
PyEnum_Type D 392
PyErr_BadArgument T
PyErr_BadInternalCall T
PyErr_CheckSignals T
PyErr_Clear T
PyErr_Display T
PyErr_ExceptionMatches T
PyErr_Fetch T
PyErr_Format T
PyErr_GivenExceptionMatches T
PyErr_NewException T
PyErr_NoMemory T
PyErr_NormalizeException T
PyErr_Occurred T
PyErr_Print T
PyErr_PrintEx T
PyErr_ProgramText T
PyErr_Restore T
PyErr_SetFromErrno T
PyErr_SetFromErrnoWithFilename T
PyErr_SetFromErrnoWithFilenameObject T
PyErr_SetInterrupt T
PyErr_SetNone T
PyErr_SetObject T
PyErr_SetString T
PyErr_SyntaxLocation T
PyErr_Warn T
PyErr_WarnEx T
PyErr_WarnExplicit T
PyErr_WriteUnraisable T
PyEval_CallFunction T
PyEval_CallMethod T
PyEval_CallObject T
PyEval_CallObjectWithKeywords T
PyEval_EvalCode T
PyEval_EvalCodeEx T
PyEval_EvalFrame T
PyEval_EvalFrameEx T
PyEval_GetBuiltins T
PyEval_GetCallStats T
PyEval_GetFrame T
PyEval_GetFuncDesc T
PyEval_GetFuncName T
PyEval_GetGlobals T
PyEval_GetLocals T
PyEval_GetRestricted T
PyEval_MergeCompilerFlags T
PyEval_RestoreThread T
PyEval_SaveThread T
PyEval_SetProfile T
PyEval_SetTrace T
PyExc_ArithmeticError D 8
PyExc_AssertionError D 8
PyExc_AttributeError D 8
PyExc_BaseException D 8
PyExc_BufferError D 8
PyExc_BytesWarning D 8
PyExc_DeprecationWarning D 8
PyExc_EOFError D 8
PyExc_EnvironmentError D 8
PyExc_Exception D 8
PyExc_FloatingPointError D 8
PyExc_FutureWarning D 8
PyExc_GeneratorExit D 8
PyExc_IOError D 8
PyExc_ImportError D 8
PyExc_ImportWarning D 8
PyExc_IndentationError D 8
PyExc_IndexError D 8
PyExc_KeyError D 8
PyExc_KeyboardInterrupt D 8
PyExc_LookupError D 8
PyExc_MemoryError D 8
PyExc_MemoryErrorInst B 8
PyExc_NameError D 8
PyExc_NotImplementedError D 8
PyExc_OSError D 8
PyExc_OverflowError D 8
PyExc_PendingDeprecationWarning D 8
PyExc_RecursionErrorInst B 8
PyExc_ReferenceError D 8
PyExc_RuntimeError D 8
PyExc_RuntimeWarning D 8
PyExc_StandardError D 8
PyExc_StopIteration D 8
PyExc_SyntaxError D 8
PyExc_SyntaxWarning D 8
PyExc_SystemError D 8
PyExc_SystemExit D 8
PyExc_TabError D 8
PyExc_TypeError D 8
PyExc_UnboundLocalError D 8
PyExc_UnicodeDecodeError D 8
PyExc_UnicodeEncodeError D 8
PyExc_UnicodeError D 8
PyExc_UnicodeTranslateError D 8
PyExc_UnicodeWarning D 8
PyExc_UserWarning D 8
PyExc_ValueError D 8
PyExc_Warning D 8
PyExc_ZeroDivisionError D 8
PyFPE_dummy T
PyFile_AsFile T
PyFile_DecUseCount T
PyFile_FromFile T
PyFile_FromString T
PyFile_GetLine T
PyFile_IncUseCount T
PyFile_Name T
PyFile_SetBufSize T
PyFile_SetEncoding T
PyFile_SetEncodingAndErrors T
PyFile_SoftSpace T
PyFile_Type D 392
PyFile_WriteObject T
PyFile_WriteString T
PyFloat_AsDouble T
PyFloat_AsReprString T
PyFloat_AsString T
PyFloat_AsStringEx T
PyFloat_ClearFreeList T
PyFloat_Fini T
PyFloat_FromDouble T
PyFloat_FromString T
PyFloat_GetInfo T
PyFloat_GetMax T
PyFloat_GetMin T
PyFloat_Type D 392
PyFrame_BlockPop T
PyFrame_BlockSetup T
PyFrame_ClearFreeList T
PyFrame_FastToLocals T
PyFrame_Fini T
PyFrame_LocalsToFast T
PyFrame_New T
PyFrame_Type D 392
PyFrozenSet_New T
PyFrozenSet_Type D 392
PyFunction_GetClosure T
PyFunction_GetCode T
PyFunction_GetDefaults T
PyFunction_GetGlobals T
PyFunction_GetModule T
PyFunction_New T
PyFunction_SetClosure T
PyFunction_SetDefaults T
PyFunction_Type D 392
PyFuture_FromAST T
PyGC_Collect T
PyGen_NeedsFinalizing T
PyGen_New T
PyGen_Type D 392
PyGetSetDescr_Type D 392
PyGrammar_AddAccelerators T
PyGrammar_FindDFA T
PyGrammar_LabelRepr T
PyGrammar_RemoveAccelerators T
PyImport_AddModule T
PyImport_AppendInittab T
PyImport_Cleanup T
PyImport_ExecCodeModule T
PyImport_ExecCodeModuleEx T
PyImport_ExtendInittab T
PyImport_FrozenModules D 8
PyImport_GetImporter T
PyImport_GetMagicNumber T
PyImport_GetModuleDict T
PyImport_Import T
PyImport_ImportFrozenModule T
PyImport_ImportModule T
PyImport_ImportModuleLevel T
PyImport_ImportModuleNoBlock T
PyImport_Inittab D 8
PyImport_ReloadModule T
PyInstance_New T
PyInstance_NewRaw T
PyInstance_Type D 392
PyInt_AsLong T
PyInt_AsSsize_t T
PyInt_AsUnsignedLongLongMask T
PyInt_AsUnsignedLongMask T
PyInt_ClearFreeList T
PyInt_Fini T
PyInt_FromLong T
PyInt_FromSize_t T
PyInt_FromSsize_t T
PyInt_FromString T
PyInt_FromUnicode T
PyInt_GetMax T
PyInt_Type D 392
PyInterpreterState_Clear T
PyInterpreterState_Delete T
PyInterpreterState_Head T
PyInterpreterState_New T
PyInterpreterState_Next T
PyInterpreterState_ThreadHead T
PyIter_Next T
PyListIter_Type D 392
PyListRevIter_Type D 392
PyList_Append T
PyList_AsTuple T
PyList_Fini T
PyList_GetItem T
PyList_GetSlice T
PyList_Insert T
PyList_New T
PyList_Reverse T
PyList_SetItem T
PyList_SetSlice T
PyList_Size T
PyList_Sort T
PyList_Type D 392
PyLong_AsDouble T
PyLong_AsLong T
PyLong_AsLongLong T
PyLong_AsSsize_t T
PyLong_AsUnsignedLong T
PyLong_AsUnsignedLongLong T
PyLong_AsUnsignedLongLongMask T
PyLong_AsUnsignedLongMask T
PyLong_AsVoidPtr T
PyLong_FromDouble T
PyLong_FromLong T
PyLong_FromLongLong T
PyLong_FromSize_t T
PyLong_FromSsize_t T
PyLong_FromString T
PyLong_FromUnicode T
PyLong_FromUnsignedLong T
PyLong_FromUnsignedLongLong T
PyLong_FromVoidPtr T
PyLong_Type D 392
PyMapping_Check T
PyMapping_GetItemString T
PyMapping_HasKey T
PyMapping_HasKeyString T
PyMapping_Length T
PyMapping_SetItemString T
PyMapping_Size T
PyMarshal_Init T
PyMarshal_ReadLastObjectFromFile T
PyMarshal_ReadLongFromFile T
PyMarshal_ReadObjectFromFile T
PyMarshal_ReadObjectFromString T
PyMarshal_ReadShortFromFile T
PyMarshal_WriteLongToFile T
PyMarshal_WriteObjectToFile T
PyMarshal_WriteObjectToString T
PyMem_Free T
PyMem_Malloc T
PyMem_Realloc T
PyMemberDescr_Type D 392
PyMember_Get T
PyMember_GetOne T
PyMember_Set T
PyMember_SetOne T
PyMethod_Class T
PyMethod_ClearFreeList T
PyMethod_Fini T
PyMethod_Function T
PyMethod_New T
PyMethod_Self T
PyMethod_Type D 392
PyModule_AddIntConstant T
PyModule_AddObject T
PyModule_AddStringConstant T
PyModule_GetDict T
PyModule_GetFilename T
PyModule_GetName T
PyModule_GetWarningsModule T
PyModule_New T
PyModule_Type D 392
PyNode_AddChild T
PyNode_Compile T
PyNode_Free T
PyNode_ListTree T
PyNode_New T
PyNullImporter_Type D 392
PyNumber_Absolute T
PyNumber_Add T
PyNumber_And T
PyNumber_AsSsize_t T
PyNumber_Check T
PyNumber_Coerce T
PyNumber_CoerceEx T
PyNumber_Divide T
PyNumber_Divmod T
PyNumber_Float T
PyNumber_FloorDivide T
PyNumber_InPlaceAdd T
PyNumber_InPlaceAnd T
PyNumber_InPlaceDivide T
PyNumber_InPlaceFloorDivide T
PyNumber_InPlaceLshift T
PyNumber_InPlaceMultiply T
PyNumber_InPlaceOr T
PyNumber_InPlacePower T
PyNumber_InPlaceRemainder T
PyNumber_InPlaceRshift T
PyNumber_InPlaceSubtract T
PyNumber_InPlaceTrueDivide T
PyNumber_InPlaceXor T
PyNumber_Index T
PyNumber_Int T
PyNumber_Invert T
PyNumber_Long T
PyNumber_Lshift T
PyNumber_Multiply T
PyNumber_Negative T
PyNumber_Or T
PyNumber_Positive T
PyNumber_Power T
PyNumber_Remainder T
PyNumber_Rshift T
PyNumber_Subtract T
PyNumber_ToBase T
PyNumber_TrueDivide T
PyNumber_Xor T
PyOS_AfterFork T
PyOS_FiniInterrupts T
PyOS_GetLastModificationTime T
PyOS_InitInterrupts T
PyOS_InputHook B 8
PyOS_InterruptOccurred T
PyOS_Readline T
PyOS_ReadlineFunctionPointer B 8
PyOS_StdioReadline T
PyOS_ascii_atof T
PyOS_ascii_formatd T
PyOS_ascii_strtod T
PyOS_getsig T
PyOS_mystricmp T
PyOS_mystrnicmp T
PyOS_setsig T
PyOS_snprintf T
PyOS_strtol T
PyOS_strtoul T
PyOS_vsnprintf T
PyObject_AsCharBuffer T
PyObject_AsFileDescriptor T
PyObject_AsReadBuffer T
PyObject_AsWriteBuffer T
PyObject_Call T
PyObject_CallFunction T
PyObject_CallFunctionObjArgs T
PyObject_CallMethod T
PyObject_CallMethodObjArgs T
PyObject_CallObject T
PyObject_CheckReadBuffer T
PyObject_ClearWeakRefs T
PyObject_Cmp T
PyObject_Compare T
PyObject_CopyData T
PyObject_DelItem T
PyObject_DelItemString T
PyObject_Dir T
PyObject_Format T
PyObject_Free T
PyObject_GC_Del T
PyObject_GC_Track T
PyObject_GC_UnTrack T
PyObject_GenericGetAttr T
PyObject_GenericSetAttr T
PyObject_GetAttr T
PyObject_GetAttrString T
PyObject_GetBuffer T
PyObject_GetItem T
PyObject_GetIter T
PyObject_HasAttr T
PyObject_HasAttrString T
PyObject_Hash T
PyObject_HashNotImplemented T
PyObject_Init T
PyObject_InitVar T
PyObject_IsInstance T
PyObject_IsSubclass T
PyObject_IsTrue T
PyObject_Length T
PyObject_Malloc T
PyObject_Not T
PyObject_Print T
PyObject_Realloc T
PyObject_Repr T
PyObject_RichCompare T
PyObject_RichCompareBool T
PyObject_SelfIter T
PyObject_SetAttr T
PyObject_SetAttrString T
PyObject_SetItem T
PyObject_Size T
PyObject_Str T
PyObject_Type T
PyObject_Unicode T
PyParser_ASTFromFile T
PyParser_ASTFromString T
PyParser_AddToken T
PyParser_Delete T
PyParser_New T
PyParser_ParseFile T
PyParser_ParseFileFlags T
PyParser_ParseFileFlagsEx T
PyParser_ParseString T
PyParser_ParseStringFlags T
PyParser_ParseStringFlagsFilename T
PyParser_ParseStringFlagsFilenameEx T
PyParser_SetError T
PyParser_SimpleParseFile T
PyParser_SimpleParseFileFlags T
PyParser_SimpleParseString T
PyParser_SimpleParseStringFilename T
PyParser_SimpleParseStringFlags T
PyParser_SimpleParseStringFlagsFilename T
PyProperty_Type D 392
PyRange_Type D 392
PyReversed_Type D 392
PyRun_AnyFile T
PyRun_AnyFileEx T
PyRun_AnyFileExFlags T
PyRun_AnyFileFlags T
PyRun_File T
PyRun_FileEx T
PyRun_FileExFlags T
PyRun_FileFlags T
PyRun_InteractiveLoop T
PyRun_InteractiveLoopFlags T
PyRun_InteractiveOne T
PyRun_InteractiveOneFlags T
PyRun_SimpleFile T
PyRun_SimpleFileEx T
PyRun_SimpleFileExFlags T
PyRun_SimpleString T
PyRun_SimpleStringFlags T
PyRun_String T
PyRun_StringFlags T
PySTEntry_Type D 392
PyST_GetScope T
PySeqIter_New T
PySeqIter_Type D 392
PySequence_Check T
PySequence_Concat T
PySequence_Contains T
PySequence_Count T
PySequence_DelItem T
PySequence_DelSlice T
PySequence_Fast T
PySequence_GetItem T
PySequence_GetSlice T
PySequence_In T
PySequence_InPlaceConcat T
PySequence_InPlaceRepeat T
PySequence_Index T
PySequence_Length T
PySequence_List T
PySequence_Repeat T
PySequence_SetItem T
PySequence_SetSlice T
PySequence_Size T
PySequence_Tuple T
PySet_Add T
PySet_Clear T
PySet_Contains T
PySet_Discard T
PySet_Fini T
PySet_New T
PySet_Pop T
PySet_Size T
PySet_Type D 392
PySignal_SetWakeupFd T
PySlice_GetIndices T
PySlice_GetIndicesEx T
PySlice_New T
PySlice_Type D 392
PyStaticMethod_New T
PyStaticMethod_Type D 392
PyString_AsDecodedObject T
PyString_AsDecodedString T
PyString_AsEncodedObject T
PyString_AsEncodedString T
PyString_AsString T
PyString_AsStringAndSize T
PyString_Concat T
PyString_ConcatAndDel T
PyString_Decode T
PyString_DecodeEscape T
PyString_Encode T
PyString_Fini T
PyString_Format T
PyString_FromFormat T
PyString_FromFormatV T
PyString_FromString T
PyString_FromStringAndSize T
PyString_InternFromString T
PyString_InternImmortal T
PyString_InternInPlace T
PyString_Repr T
PyString_Size T
PyString_Type D 392
PyStructSequence_InitType T
PyStructSequence_New T
PyStructSequence_UnnamedField D 8
PySuper_Type D 392
PySymtable_Build T
PySymtable_Free T
PySymtable_Lookup T
PySys_AddWarnOption T
PySys_GetFile T
PySys_GetObject T
PySys_HasWarnOptions T
PySys_ResetWarnOptions T
PySys_SetArgv T
PySys_SetObject T
PySys_SetPath T
PySys_WriteStderr T
PySys_WriteStdout T
PyThreadState_Clear T
PyThreadState_Delete T
PyThreadState_Get T
PyThreadState_GetDict T
PyThreadState_New T
PyThreadState_Next T
PyThreadState_SetAsyncExc T
PyThreadState_Swap T
PyToken_OneChar T
PyToken_ThreeChars T
PyToken_TwoChars T
PyTokenizer_Free T
PyTokenizer_FromFile T
PyTokenizer_FromString T
PyTokenizer_Get T
PyTokenizer_RestoreEncoding T
PyTraceBack_Here T
PyTraceBack_Print T
PyTraceBack_Type D 392
PyTupleIter_Type D 392
PyTuple_ClearFreeList T
PyTuple_Fini T
PyTuple_GetItem T
PyTuple_GetSlice T
PyTuple_New T
PyTuple_Pack T
PyTuple_SetItem T
PyTuple_Size T
PyTuple_Type D 392
PyType_ClearCache T
PyType_GenericAlloc T
PyType_GenericNew T
PyType_IsSubtype T
PyType_Modified T
PyType_Ready T
PyType_Type D 392
PyUnicodeDecodeError_Create T
PyUnicodeDecodeError_GetEncoding T
PyUnicodeDecodeError_GetEnd T
PyUnicodeDecodeError_GetObject T
PyUnicodeDecodeError_GetReason T
PyUnicodeDecodeError_GetStart T
PyUnicodeDecodeError_SetEnd T
PyUnicodeDecodeError_SetReason T
PyUnicodeDecodeError_SetStart T
PyUnicodeEncodeError_Create T
PyUnicodeEncodeError_GetEncoding T
PyUnicodeEncodeError_GetEnd T
PyUnicodeEncodeError_GetObject T
PyUnicodeEncodeError_GetReason T
PyUnicodeEncodeError_GetStart T
PyUnicodeEncodeError_SetEnd T
PyUnicodeEncodeError_SetReason T
PyUnicodeEncodeError_SetStart T
PyUnicodeTranslateError_Create T
PyUnicodeTranslateError_GetEnd T
PyUnicodeTranslateError_GetObject T
PyUnicodeTranslateError_GetReason T
PyUnicodeTranslateError_GetStart T
PyUnicodeTranslateError_SetEnd T
PyUnicodeTranslateError_SetReason T
PyUnicodeTranslateError_SetStart T
PyUnicodeUCS2_AsASCIIString T
PyUnicodeUCS2_AsCharmapString T
PyUnicodeUCS2_AsEncodedObject T
PyUnicodeUCS2_AsEncodedString T
PyUnicodeUCS2_AsLatin1String T
PyUnicodeUCS2_AsRawUnicodeEscapeString T
PyUnicodeUCS2_AsUTF16String T
PyUnicodeUCS2_AsUTF32String T
PyUnicodeUCS2_AsUTF8String T
PyUnicodeUCS2_AsUnicode T
PyUnicodeUCS2_AsUnicodeEscapeString T
PyUnicodeUCS2_ClearFreelist T
PyUnicodeUCS2_Compare T
PyUnicodeUCS2_Concat T
PyUnicodeUCS2_Contains T
PyUnicodeUCS2_Count T
PyUnicodeUCS2_Decode T
PyUnicodeUCS2_DecodeASCII T
PyUnicodeUCS2_DecodeCharmap T
PyUnicodeUCS2_DecodeLatin1 T
PyUnicodeUCS2_DecodeRawUnicodeEscape T
PyUnicodeUCS2_DecodeUTF16 T
PyUnicodeUCS2_DecodeUTF16Stateful T
PyUnicodeUCS2_DecodeUTF32 T
PyUnicodeUCS2_DecodeUTF32Stateful T
PyUnicodeUCS2_DecodeUTF8 T
PyUnicodeUCS2_DecodeUTF8Stateful T
PyUnicodeUCS2_DecodeUnicodeEscape T
PyUnicodeUCS2_Encode T
PyUnicodeUCS2_EncodeASCII T
PyUnicodeUCS2_EncodeCharmap T
PyUnicodeUCS2_EncodeDecimal T
PyUnicodeUCS2_EncodeLatin1 T
PyUnicodeUCS2_EncodeRawUnicodeEscape T
PyUnicodeUCS2_EncodeUTF16 T
PyUnicodeUCS2_EncodeUTF32 T
PyUnicodeUCS2_EncodeUTF8 T
PyUnicodeUCS2_EncodeUnicodeEscape T
PyUnicodeUCS2_Find T
PyUnicodeUCS2_Format T
PyUnicodeUCS2_FromEncodedObject T
PyUnicodeUCS2_FromObject T
PyUnicodeUCS2_FromOrdinal T
PyUnicodeUCS2_FromString T
PyUnicodeUCS2_FromStringAndSize T
PyUnicodeUCS2_FromUnicode T
PyUnicodeUCS2_GetDefaultEncoding T
PyUnicodeUCS2_GetMax T
PyUnicodeUCS2_GetSize T
PyUnicodeUCS2_Join T
PyUnicodeUCS2_Partition T
PyUnicodeUCS2_RPartition T
PyUnicodeUCS2_RSplit T
PyUnicodeUCS2_Replace T
PyUnicodeUCS2_Resize T
PyUnicodeUCS2_RichCompare T
PyUnicodeUCS2_SetDefaultEncoding T
PyUnicodeUCS2_Split T
PyUnicodeUCS2_Splitlines T
PyUnicodeUCS2_Tailmatch T
PyUnicodeUCS2_Translate T
PyUnicodeUCS2_TranslateCharmap T
PyUnicode_AsDecodedObject T
PyUnicode_BuildEncodingMap T
PyUnicode_DecodeUTF7 T
PyUnicode_DecodeUTF7Stateful T
PyUnicode_EncodeUTF7 T
PyUnicode_Type D 392
PyWeakref_GetObject T
PyWeakref_NewProxy T
PyWeakref_NewRef T
PyWrapperDescr_Type D 392
PyWrapper_New T
Py_AddPendingCall T
Py_AtExit T
Py_BuildValue T
Py_BytesWarningFlag B 4
Py_CompileString T
Py_CompileStringFlags T
Py_DebugFlag B 4
Py_DecRef T
Py_DivisionWarningFlag B 4
Py_DontWriteBytecodeFlag B 4
Py_EndInterpreter T
Py_Exit T
Py_FatalError T
Py_FdIsInteractive T
Py_FileSystemDefaultEncoding B 8
Py_Finalize T
Py_FindMethod T
Py_FindMethodInChain T
Py_FlushLine T
Py_FrozenFlag B 4
Py_FrozenMain T
Py_GetArgcArgv T
Py_GetBuildInfo T
Py_GetCompiler T
Py_GetCopyright T
Py_GetExecPrefix T
Py_GetPath T
Py_GetPlatform T
Py_GetPrefix T
Py_GetProgramFullPath T
Py_GetProgramName T
Py_GetPythonHome T
Py_GetRecursionLimit T
Py_GetVersion T
Py_IgnoreEnvironmentFlag B 4
Py_IncRef T
Py_InitModule4_64 T
Py_Initialize T
Py_InitializeEx T
Py_InspectFlag B 4
Py_InteractiveFlag B 4
Py_IsInitialized T
Py_Main T
Py_MakePendingCalls T
Py_NewInterpreter T
Py_NoSiteFlag B 4
Py_NoUserSiteDirectory B 4
Py_OptimizeFlag B 4
Py_Py3kWarningFlag B 4
Py_ReprEnter T
Py_ReprLeave T
Py_SetProgramName T
Py_SetPythonHome T
Py_SetRecursionLimit T
Py_SubversionRevision T
Py_SubversionShortBranch T
Py_SymtableString T
Py_TabcheckFlag B 4
Py_UnicodeFlag B 4
Py_UniversalNewlineFgets T
Py_UniversalNewlineFread T
Py_UseClassExceptionsFlag D 4
Py_VaBuildValue T
Py_VerboseFlag B 4
Py_meta_grammar T
Py_pgen T

View File

@ -1 +0,0 @@
e1531c716e0e5e25ecc46bbd69400a076768a66d

View File

@ -1,14 +0,0 @@
LICENSE := Python
VERSION := 2.6.4
DOWNLOADS := python.archive
URL(python) := http://www.python.org/ftp/python/2.6.4/Python-$(VERSION).tgz
SHA(python) := 1a25a47506e4165704cfe2b07c0a064b0b5762a2d18b8fbdad5af688aeacd252
SIG(python) := ${URL(python)}.asc
PYTHON_KEY := 12EF3DC38047DA382D18A5B999CDEA9DA4135B38
DIR(python) := src/lib/python
PATCHES := src/lib/python/posixmodule.patch
DIRS := include/python2.6
DIR_CONTENT(include/python2.6) := src/lib/python/Include/*.h

View File

@ -1,22 +0,0 @@
PORT_DIR := $(call port_dir,$(GENODE_DIR)/repos/libports/ports/python)
MIRROR_FROM_REP_DIR := \
lib/import/import-python.mk \
lib/symbols/python
content: $(MIRROR_FROM_REP_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
content: LICENSE
LICENSE:
cp $(PORT_DIR)/src/lib/python/LICENSE $@
content: include/python
include/python:
mkdir -p $@
cp -r $(REP_DIR)/$@/* $@/
cp -r $(PORT_DIR)/include/* include/

View File

@ -1 +0,0 @@
2019-02-25 8a969b5594787ff6251c3fa216b52a1ec7c6947d

View File

@ -1 +0,0 @@
Test for using Python on Genode.

View File

@ -1,6 +0,0 @@
_/src/init
_/src/test-python
_/src/libc
_/src/vfs
_/src/posix
_/src/python

View File

@ -1 +0,0 @@
2020-04-23 30fdb3089c051096b4f0bb2bec08478fd04246b3

View File

@ -1,69 +0,0 @@
<runtime ram="32M" caps="1000" binary="init">
<events>
<timeout meaning="failed" sec="20" />
<log meaning="succeeded">
[init -> test-python] *
[init -> test-python] *
[init -> test-python] -============================-*
[init -> test-python] || ||*
[init -> test-python] || Python Core 2.6.4 ||*
[init -> test-python] || ||*
[init -> test-python] || Genode 11.11 ||*
[init -> test-python] || ||*
[init -> test-python] -============================-*
[init -> test-python] *
[init -> test-python] 2011 by Genode Labs www.genode-labs.com*
[init -> test-python] *
[init -> test-python] *
[init] child "test-python" exited with exit value 0
</log>
</events>
<content>
<rom label="ld.lib.so"/>
<rom label="python.lib.so"/>
<rom label="libc.lib.so"/>
<rom label="libm.lib.so"/>
<rom label="posix.lib.so"/>
<rom label="vfs.lib.so"/>
<rom label="test-python"/>
</content>
<config verbose="yes">
<parent-provides>
<service name="ROM"/>
<service name="PD"/>
<service name="RM"/>
<service name="CPU"/>
<service name="LOG"/>
</parent-provides>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>
<default caps="100"/>
<start name="test-python">
<resource name="RAM" quantum="4M"/>
<config>
<vfs>
<dir name="dev"> <log/> </dir>
<inline name="hello.py">
print " \r\n\r";
print " -============================-";
print " || ||";
print " || Python Core 2.6.4 ||";
print " || ||";
print " || Genode 11.11 ||";
print " || ||";
print " -============================-";
print " \r";
print " 2011 by Genode Labs www.genode-labs.com";
print " \r\n\r";
</inline>
</vfs>
<libc stdout="/dev/log" stderr="/dev/log"/>
<arg value="hello.py"/>
</config>
</start>
</config>
</runtime>

View File

@ -1 +0,0 @@
python

View File

@ -1,32 +0,0 @@
PORT_DIR = $(call port_dir,$(GENODE_DIR)/repos/libports/ports/python)
content: include/python
include/python:
mkdir -p $@
cp -r $(REP_DIR)/$@/* $@/
cp -r $(PORT_DIR)/include/* include/
content: src/lib/python
src/lib/python:
mkdir -p $@
cp -r $(PORT_DIR)/$@/* $@/
cp -r $(REP_DIR)/$@/* $@/
echo "LIBS = python" > $@/target.mk
MIRROR_FROM_REP_DIR := \
lib/import/import-python.mk \
lib/mk/python.inc \
lib/mk/spec/x86_32/python.mk \
lib/mk/spec/x86_64/python.mk \
content: $(MIRROR_FROM_REP_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
content: LICENSE
LICENSE:
cp $(PORT_DIR)/src/lib/python/LICENSE $@

View File

@ -1 +0,0 @@
2020-04-23 d462b896e7acc6dfa2754347862a8d674eb61fdb

View File

@ -1,3 +0,0 @@
base
so
libc

View File

@ -1,3 +0,0 @@
SRC_DIR = src/test/python
include $(GENODE_DIR)/repos/base/recipes/src/content.inc

View File

@ -1 +0,0 @@
2020-04-23 996cfde7bea43acff5a02981fb93e9738cb45a5e

View File

@ -1,4 +0,0 @@
base
posix
libc
python

View File

@ -1,87 +0,0 @@
/* Generated automatically from ./Modules/config.c.in by makesetup. */
/* -*- C -*- ***********************************************
Copyright (c) 2000, BeOpen.com.
Copyright (c) 1995-2000, Corporation for National Research Initiatives.
Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
All rights reserved.
See the file "Misc/COPYRIGHT" for information on usage and
redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
******************************************************************/
/* Module configuration */
/* !!! !!! !!! This file is edited by the makesetup script !!! !!! !!! */
/* This file contains the table of built-in modules.
See init_builtin() in import.c. */
#include "Python.h"
#ifdef __cplusplus
extern "C" {
#endif
extern void initsignal(void);
extern void initposix(void);
extern void initerrno(void);
extern void initpwd(void);
extern void init_sre(void);
extern void init_codecs(void);
extern void initzipimport(void);
extern void init_symtable(void);
extern void initxxsubtype(void);
/* -- ADDMODULE MARKER 1 -- */
extern void PyMarshal_Init(void);
extern void initimp(void);
extern void initgc(void);
extern void init_ast(void);
extern void _PyWarnings_Init(void);
struct _inittab _PyImport_Inittab[] = {
{"signal", initsignal},
{"posix", initposix},
{"errno", initerrno},
{"pwd", initpwd},
{"_sre", init_sre},
{"_codecs", init_codecs},
{"zipimport", initzipimport},
{"_symtable", init_symtable},
{"xxsubtype", initxxsubtype},
/* -- ADDMODULE MARKER 2 -- */
/* This module lives in marshal.c */
{"marshal", PyMarshal_Init},
/* This lives in import.c */
{"imp", initimp},
/* This lives in Python/Python-ast.c */
{"_ast", init_ast},
/* These entries are here for sys.builtin_module_names */
{"__main__", NULL},
{"__builtin__", NULL},
{"sys", NULL},
{"exceptions", NULL},
/* This lives in gcmodule.c */
{"gc", initgc},
/* This lives in _warnings.c */
{"_warnings", _PyWarnings_Init},
/* Sentinel */
{0, 0}
};
#ifdef __cplusplus
}
#endif

View File

@ -1,20 +0,0 @@
/*
* \brief Libc dummies required by Python
* \author Sebastian Sumpf
* \date 2010-02-17
*/
/*
* Copyright (C) 2010-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#include <unistd.h>
int dup(int oldfd)
{
return oldfd;
}

View File

@ -1,21 +0,0 @@
+++ src/lib/python/Modules/posixmodule.c
@@ -135,16 +135,16 @@
/* Everything needed is defined in PC/os2emx/pyconfig.h or vms/pyconfig.h */
#else /* all other compilers */
/* Unix functions that the configure script doesn't check for */
-#define HAVE_EXECV 1
+//#define HAVE_EXECV 1
#define HAVE_FORK 1
#if defined(__USLC__) && defined(__SCO_VERSION__) /* SCO UDK Compiler */
#define HAVE_FORK1 1
#endif
#define HAVE_GETCWD 1
-#define HAVE_GETEGID 1
+//#define HAVE_GETEGID 0
#define HAVE_GETEUID 1
#define HAVE_GETGID 1
-#define HAVE_GETPPID 1
+//#define HAVE_GETPPID 1
#define HAVE_GETUID 1
#define HAVE_KILL 1
#define HAVE_OPENDIR 1

View File

@ -1,21 +0,0 @@
This directory contains a sample python interpreter called 'test-python'.
When building this test program, a shared library 'python.lib.so' will be
generated. This library is based on the original code of Python-2.6.4 available
from the Python website.
:Python website: [http://www.python.org]
Usage
-----
Call './tool/ports/prepare_port libc python' from within Genode's toplevel
directory. Add 'libports' to your build.conf file. A sample Genode configuration
is provided with the 'python.run' script located at 'libports/run/'. It starts a
Python script can be found within this directory. If you are not using Linux as
a Genode base platform, do not forget to add 'python.lib.so' to your boot module
list.
Limitations
-----------
Currently, this Python port does not feature any standard modules or the import
of any modules from a Python script.

View File

@ -1,50 +0,0 @@
/*
* \brief Test for using Python on Genode
* \author Sebastian Sumpf
* \date 2010-02-17
*/
/*
* Copyright (C) 2010-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
/* Python includes */
#include <python2.6/Python.h>
/* Genode includes */
#include <base/log.h>
/* libc includes */
#include <fcntl.h>
extern "C" int __sread(void *, char *, int);
int main(int argc, char const ** args)
{
using namespace Genode;
if (argc < 1) {
Genode::error("Need <scriptname>.py as argument!");
return -1;
}
char * name = const_cast<char*>(args[0]);
FILE * fp = fopen(name, "r");
//fp._flags = __SRD;
Py_SetProgramName(name);
//don't need the 'site' module
Py_NoSiteFlag = 1;
//don't support interactive mode, yet
Py_InteractiveFlag = 0;
Py_Initialize();
Genode::log("Starting python ...");
PyRun_SimpleFile(fp, name);
return 0;
}

View File

@ -1,6 +0,0 @@
TARGET = test-python
LIBS = base python posix
REQUIRES = x86
SRC_CC = main.cc
CC_CXX_WARN_STRICT =