Commit 93c50d48 authored by Filippos Giannakos's avatar Filippos Giannakos

Fix auto generation of pyton bindings

parent 037769e7
......@@ -55,7 +55,7 @@ SHELL=/bin/bash
default: all
all: libxseg.a libxseg.so
make -C python
make -C python MAJOR=$(MAJOR) MINOR=$(MINOR)
make -C xq all
make -C xpool all
make -C xhash all
......
......@@ -61,7 +61,12 @@ xprotocol.xml:
$(H2XML) -c $(INC) -o $@ $(BASE)/xseg/protocol.h
xseg/xseg_api.py: xseg.xml
$(XML2PY) -d -k defst -l $(BASE)/lib/user/libxseg.so -c $< -o $@
$(XML2PY) -d -k defst -l $(BASE)/lib/user/libxseg.so.$(MAJOR) -c $< -o $@
sed -i -e 's/xseg_get_data_nonstatic.restype = STRING/xseg_get_data_nonstatic.restype = POINTER(c_char)/g' xseg/xseg_api.py
sed -i -e 's/xseg_get_target_nonstatic.restype = STRING/xseg_get_target_nonstatic.restype = POINTER(c_char)/g' xseg/xseg_api.py
sed -i -e 's/STRING = 1//g' xseg/xseg_api.py
sed -i -e 's,$(BASE)/lib/user/libxseg.so.$(MAJOR),libxseg.so.$(MAJOR),g' xseg/xseg_api.py
xseg/xprotocol.py: xprotocol.xml
$(XML2PY) -d -k defst -c $< -o $@
......
......@@ -59,7 +59,8 @@
struct xlock {
unsigned long owner;
} __attribute__ ((aligned (16))); /* support up to 128bit longs */
};
//} __attribute__ ((aligned (16))); /* support up to 128bit longs */
static inline unsigned long xlock_acquire(struct xlock *lock, unsigned long who)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment