Print

https://github.com/gvalkov/python-evdev

mkdir -p ~/evdev
cd ~/evdev
git clone https://github.com/gvalkov/python-evdev.git
cd ~/evdev/python-evdev
mkdir -p ~/evdev/python-evdev/build/tmp
mkdir -p ~/evdev/python-evdev/build/lib
source ~/setup.sh
mips-openwrt-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -g \
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \
-I/home/sonnyyu/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/python2.7 \
-c evdev/input.c -o build/tmp/input.o -std=c99 -Wno-error=declaration-after-statement

mips-openwrt-linux-uclibc-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/tmp/input.o -o build/lib/_input.so

mips-openwrt-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -g \
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \
-I/home/sonnyyu/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/python2.7 \
-c evdev/uinput.c -o build/tmp/uinput.o -std=c99 -Wno-error=declaration-after-statement

mips-openwrt-linux-uclibc-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/tmp/uinput.o -o build/lib/_uinput.so

mips-openwrt-linux-uclibc-gcc -pthread -fno-strict-aliasing -DNDEBUG -g \
-fwrapv -O2 -Wall -Wstrict-prototypes -fPIC \
-I/home/sonnyyu/OpenWrt-SDK-ar71xx-for-linux-i486-gcc-4.6-linaro_uClibc-0.9.33.2/staging_dir/target-mips_r2_uClibc-0.9.33.2/usr/include/python2.7 \
-c evdev/ecodes.c -o build/tmp/ecodes.o -std=c99 -Wno-error=declaration-after-statement

mips-openwrt-linux-uclibc-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro build/tmp/ecodes.o -o build/lib/_ecodes.so

copy all the .so and .py file together  for Yun use.