mirror of
https://github.com/linux-msm/rmtfs.git
synced 2025-02-15 17:08:01 +00:00
The EFS data can either be in a partition or a filesystem path. The rmtfs allows both, but there is only a systemd service to use the former. Add another systemd service that does the latter. By default, the EFS path is /var/lib/rmtfs (which is the directory used by msm-cros-efs-loader.sh and other tools that extract the EFS data) but this can be changed during build by setting the RMTFS_EFS_PATH environment variable. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
32 lines
806 B
Makefile
32 lines
806 B
Makefile
OUT := rmtfs
|
|
|
|
CFLAGS += -Wall -g -O2
|
|
LDFLAGS += -lqrtr -ludev -lpthread
|
|
prefix = /usr/local
|
|
bindir := $(prefix)/bin
|
|
servicedir := $(prefix)/lib/systemd/system
|
|
|
|
RMTFS_EFS_PATH ?= /var/lib/rmtfs
|
|
|
|
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 < $<
|
|
|
|
%.service: %.service.in
|
|
@sed -e 's+RMTFS_PATH+$(bindir)+g' -e 's+RMTFS_EFS_PATH+$(RMTFS_EFS_PATH)+g' $< > $@
|
|
|
|
install: $(OUT) rmtfs.service rmtfs-dir.service
|
|
@install -D -m 755 $(OUT) $(DESTDIR)$(prefix)/bin/$(OUT)
|
|
@install -D -m 644 rmtfs.service $(DESTDIR)$(servicedir)/rmtfs.service
|
|
@install -D -m 644 rmtfs-dir.service $(DESTDIR)$(servicedir)/rmtfs-dir.service
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJS) rmtfs.service
|
|
rm -f $(OUT) $(OBJS) rmtfs-dir.service
|
|
|