mirror of
https://github.com/linux-msm/rmtfs.git
synced 2025-12-24 05:56:39 +01:00
Add sigterm/sigint handlers to enable graceful rmtfs server bringdown on first instance of SIGINT/SIGTERM. Start/Stop the remoteproc instance on RMTFS service up and SIGINT/SIGTERM respectively. Force quit on second instance of SIGINT/SIGTERM. Signed-off-by: Sibi Sankar <sibis@codeaurora.org> [bjorn: Pipe for event loop signaling, reworked /sys traversal] Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
22 lines
347 B
Makefile
22 lines
347 B
Makefile
OUT := rmtfs
|
|
|
|
CFLAGS += -Wall -g -O2
|
|
LDFLAGS += -lqrtr -ludev -lpthread
|
|
prefix = /usr/local
|
|
|
|
SRCS := qmi_rmtfs.c rmtfs.c rproc.c sharedmem.c storage.c util.c
|
|
OBJS := $(SRCS:.c=.o)
|
|
|
|
$(OUT): $(OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
%.c: %.qmi
|
|
qmic -k < $<
|
|
|
|
install: $(OUT)
|
|
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJS)
|
|
|