Add binder and ashmem kernel drivers as out-of-tree modules
Based on code from https://github.com/hungys/binder-for-linux
This commit is contained in:
parent
3d05c50c8b
commit
34e5e70926
12 changed files with 5502 additions and 0 deletions
19
kernel/ashmem/Makefile
Normal file
19
kernel/ashmem/Makefile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
ccflags-y += -I$(src) -Wno-error=implicit-int
|
||||
|
||||
ifneq ($(KERNELRELEASE),)
|
||||
obj-m := ashmem_linux.o
|
||||
ashmem_linux-y := deps.o ashmem.o
|
||||
|
||||
$(obj)/deps.o: $(src)/deps.h
|
||||
|
||||
$(obj)/deps.h: $(src)/gen_deps.sh
|
||||
sudo $(src)/gen_deps.sh > $@
|
||||
else
|
||||
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
|
||||
|
||||
all:
|
||||
$(MAKE) -C $(KERNEL_SRC) V=0 M=$$PWD
|
||||
|
||||
clean:
|
||||
rm -rf deps.h *.o *.ko *.mod.c *.symvers *.order .*.cmd .tmp_versions
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue