This just lays out new files so the next commit is easier to review; nothing changes here Change-Id: I66669877d2d10632f5436c0eeb32248cd4c8b996
25 lines
546 B
Makefile
25 lines
546 B
Makefile
KDIR ?= @KDIR@
|
|
ARCH ?= @ARCH@
|
|
# POSTK_DEBUG_ARCH_DEP_105 make install DESTDIR enable.
|
|
# KMODDIR = @KMODDIR@
|
|
DESTDIR ?= @DESTDIR@
|
|
KMODDIR = $(DESTDIR)/@KMODDIR@
|
|
src = @abs_srcdir@
|
|
|
|
obj-m += mcoverlay.o
|
|
|
|
mcoverlay-y := copy_up.o dir.o inode.o readdir.o super.o export.o namei.o util.o
|
|
|
|
.PHONY: clean install modules
|
|
|
|
modules:
|
|
$(MAKE) -C $(KDIR) M=$(PWD) SUBDIRS=$(PWD) ARCH=$(ARCH) modules
|
|
|
|
clean:
|
|
$(RM) .*.cmd *.mod.c *.o *.ko* Module.symvers modules.order -r .tmp*
|
|
|
|
install:
|
|
mkdir -p -m 755 $(KMODDIR)
|
|
install -m 644 mcoverlay.ko $(KMODDIR)
|
|
|