# spramfs.ko — out-of-tree build against the running kernel (or KDIR=).
#   make                 build (BUILDTAG defaults to the build time; bump per deploy)
#   make BUILDTAG=r1234  tag the binary; the tag is logged at load and is how an
#                        A/B is verified from dmesg
#   make clean
KDIR     ?= /lib/modules/$(shell uname -r)/build
BUILDTAG ?= $(shell date +%Y%m%d-%H%M%S)

all:
	$(MAKE) -C $(KDIR) M=$(CURDIR) BUILDTAG=$(BUILDTAG) modules

clean:
	$(MAKE) -C $(KDIR) M=$(CURDIR) clean
