From 960ea441a18d1a543bc6f04ad49a988d13c0eafa Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 2 Dec 2018 22:36:58 -0500 Subject: config: added x86_64-nt64-midipix definitions. --- config/x86_64-nt64-midipix/config.c | 13 +++++++++ config/x86_64-nt64-midipix/config.mk | 50 +++++++++++++++++++++++++++++++++++ config/x86_64-nt64-midipix/pyconfig.h | 12 +++++++++ profiles/osapi/midipix.h | 18 +++++++++++++ 4 files changed, 93 insertions(+) create mode 100644 config/x86_64-nt64-midipix/config.c create mode 100644 config/x86_64-nt64-midipix/config.mk create mode 100644 config/x86_64-nt64-midipix/pyconfig.h create mode 100644 profiles/osapi/midipix.h diff --git a/config/x86_64-nt64-midipix/config.c b/config/x86_64-nt64-midipix/config.c new file mode 100644 index 0000000..f0fb3bf --- /dev/null +++ b/config/x86_64-nt64-midipix/config.c @@ -0,0 +1,13 @@ +#include "linkage/inittab.h" + +struct _inittab _PyImport_Inittab[] = { + + PY_IMPORT_INITTAB_BASE, + PY_IMPORT_INITTAB_COMMON, + +#ifdef PY_ALL_STATIC + PY_IMPORT_INITTAB_ANYOS_CORE, +#endif + + {0, 0} +}; diff --git a/config/x86_64-nt64-midipix/config.mk b/config/x86_64-nt64-midipix/config.mk new file mode 100644 index 0000000..6e727a5 --- /dev/null +++ b/config/x86_64-nt64-midipix/config.mk @@ -0,0 +1,50 @@ +# platform +PYTHON_PATH = +PYTHON_PLATFORM = midipix + + +# extensions: built-in +CONFIG_SRCS = $(CONFIG_DEFAULT_SRCS) + + +# extensions: dynamic loading +DYNLOAD_SRCS = \ + Python/dynload_shlib.c \ + + +# extensions: desired subsets +include $(PROJECT_DIR)/profiles/pyexts/subsets.mk + +PYEXT_SHARED = \ + $(PYEXT_SUBSET_SHARED_ANYOS_CORE) \ + +PYEXT_STATIC = \ + $(PYEXT_SUBSET_STATIC_ANYOS_CORE) \ + + +# shared extensions: dependency switches +CFLAGS_NCURSES = -I$(SYSROOT)/usr/local/include/ncurses -I$(SYSROOT)/usr/include/ncurses +LDFLAGS_NCURSES = -Wl,--as-needed -lpanelw -lncursesw -ltinfo -Wl,--no-as-needed + +CFLAGS_SQLITE = -I$(SYSROOT)/usr/local/include/sqlite3 -I$(SYSROOT)/usr/include/sqlite3 +CFLAGS_SQLITE += -DMODULE_NAME=\"sqlite3\" +CFLAGS_SQLITE += -DSQLITE_OMIT_LOAD_EXTENSION +LDFLAGS_SQLITE = -lsqlite3 + +CFLAGS_EXPAT = -DXML_DEV_URANDOM +LDFLAGS_EXPAT = -lexpat + +CFLAGS_DBM = -DHAVE_NDBM_H +LDFLAGS_DBM = -lgdbm_compat + + +# static extensions: dependency switch +LDFLAGS_PYEXT_STATIC = -lssl -lcrypto -lreadline -lbz2 -lgdbm -lffi -lintl -lz +LDFLAGS_NCURSES_STATIC = $(LDFLAGS_NCURSES) +LDFLAGS_SQLITE_STATIC = $(LDFLAGS_SQLITE) +LDFLAGS_EXPAT_STATIC = $(LDFLAGS_EXPAT) +LDFLAGS_DBM_STATIC = $(LDFLAGS_DBM) + + +# strict shared object generation +LDFLAGS_STRICT += -Wl,-no-undefined diff --git a/config/x86_64-nt64-midipix/pyconfig.h b/config/x86_64-nt64-midipix/pyconfig.h new file mode 100644 index 0000000..4fd3345 --- /dev/null +++ b/config/x86_64-nt64-midipix/pyconfig.h @@ -0,0 +1,12 @@ +#ifndef PY_PYCONFIG_H +#define PY_PYCONFIG_H + +#include "osapi/modern.h" +#include "osapi/midipix.h" +#include "toolchain/64-default.h" +#include "toolchain/64-le-ieee.h" + +/* cf. Modules/posixmodule.c */ +#define HAVE_BROKEN_NICE 1 + +#endif diff --git a/profiles/osapi/midipix.h b/profiles/osapi/midipix.h new file mode 100644 index 0000000..bf94a2b --- /dev/null +++ b/profiles/osapi/midipix.h @@ -0,0 +1,18 @@ +#ifndef PY_OSAPI_MIDIPIX_H +#define PY_OSAPI_MIDIPIX_H + +/* os-specific headers */ +#define HAVE_ALLOCA_H 1 +#define HAVE_DIRENT_H 1 +#define HAVE_NETPACKET_PACKET_H 1 + +/* os characteristics */ +#define RETSIGTYPE void +#define SHLIB_EXT ".so" + +/* framework characteristics */ +#define SYS_SELECT_WITH_SYS_TIME 1 +#define TANH_PRESERVES_ZERO_SIGN 1 +#define TIME_WITH_SYS_TIME 1 + +#endif -- cgit v1.2.3