You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
487 B

obj-m += empty.o
obj-m += single_function.o
obj-m += single_function_gpl.o
obj-m += single_variable.o
obj-m += single_variable_gpl.o
obj-m += one_of_each.o
KDIR := /tmp/some/kernel/source/dir
PWD := $(shell pwd)
default:
make -C $(KDIR) tinyconfig
pushd $(KDIR); ./scripts/config -e 64BIT -e MODULES; $(MAKE) olddefconfig; popd
$(MAKE) -C $(KDIR)
$(MAKE) -C $(KDIR) M=$(PWD) modules
rm -rf *.mod.c *.o .*.cmd .*.d *.mod modules.order Module.symvers .tmp_versions
clean:
rm *.ko