forked from funkey/recept
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (24 loc) · 617 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
default: compile
compile:
! mkdir precompiled
. /usr/local/oecore-x86_64/environment-setup-cortexa9hf-neon-oe-linux-gnueabi; \
for rs in `seq 2 32`; \
do \
arm-oe-linux-gnueabi-g++ \
-DRING_SIZE=$$rs \
-march=armv7-a \
-mfpu=neon \
-mfloat-abi=hard \
-mcpu=cortex-a9 \
--sysroot=/usr/local/oecore-x86_64/sysroots/cortexa9hf-neon-oe-linux-gnueabi \
-Wall \
-shared \
-ldl \
-fPIC \
-O3 \
recept.cpp \
-o precompiled/librecept_rs$$rs.so; \
done
test:
scp precompiled/librecept_rs16.so root@remarkable:librecept.so
ssh remarkable "LD_PRELOAD=/home/root/librecept.so ls"