adding the embedded Python init/terminate code
This commit is contained in:
14
src/Makefile
14
src/Makefile
@@ -1,17 +1,21 @@
|
||||
OBJS=main.o sysinput.o fbinit.o fbprimitive.o log.o gpio.o msg_queue.o time_func.o config.o splash.o
|
||||
LIBS=-lbcm2835 -lpthread
|
||||
CFLAGS=-g -O -DDEBUG_ASSERT
|
||||
OBJS=main.o sysinput.o ep_init.o ep_util.o fbinit.o fbprimitive.o log.o gpio.o msg_queue.o \
|
||||
time_func.o config.o splash.o
|
||||
LIBS=-lpython3.7m -lcrypt -lbcm2835 -lpthread -ldl -lutil -lm
|
||||
CFLAGS=-I/usr/include/python3.7m -Wall -fstack-protector -fwrapv -fno-PIE -g -O3 -DDEBUG_ASSERT
|
||||
LDFLAGS=-L/usr/lib/python3.7/config-3.7m-arm-linux-gnueabihf -Xlinker -export-dynamic -Wl,-O1 \
|
||||
-Wl,-Bsymbolic-functions
|
||||
|
||||
all: upiwin
|
||||
|
||||
upiwin: $(OBJS)
|
||||
gcc -o upiwin $(OBJS) $(LIBS)
|
||||
gcc -o upiwin $(LDFLAGS) $(OBJS) $(LIBS)
|
||||
|
||||
.c.o:
|
||||
gcc -c $(CFLAGS) $<
|
||||
|
||||
splash.o: splash.bin
|
||||
objcopy -I binary -O elf32-littlearm -B arm --rename-section .data=.rodata,alloc,load,readonly,data,contents splash.bin splash.o
|
||||
objcopy -I binary -O elf32-littlearm -B arm --rename-section \
|
||||
.data=.rodata,alloc,load,readonly,data,contents splash.bin splash.o
|
||||
|
||||
splash.bin: splash.png ../buildutils/mksplash
|
||||
../buildutils/mksplash splash.png splash.bin
|
||||
|
||||
Reference in New Issue
Block a user