Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit 4ebbb1d

Browse files
Fengqian Gaohongcheng-xie
authored andcommitted
Update binderfs code to align with ubuntu kernel 5.0.0
To keep compatible with kernel lower to 4.14, some changes are needed. For ubuntu kernel, security hook secid_to_secctx is missing which will cause binder transaction failed. Disable it for now. Change-Id: I0e702b0c3d3d46d91416667cdd1ddba3db7028f0 Tracked-On: Reviewed-on: https://android.intel.com/681932 Reviewed-by: Wang, Liang <liang.wang@intel.com> Reviewed-by: Yang, Bin Y <bin.y.yang@intel.com> Tested-by: Zheng, Joe <joe.zheng@intel.com>
1 parent 4d73244 commit 4ebbb1d

11 files changed

Lines changed: 1782 additions & 639 deletions

File tree

binder/Makefile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
ccflags-y += -I$(src) -Wno-int-conversion -Wno-error=incompatible-pointer-types -DCONFIG_ANDROID_BINDER_DEVICES="\"hostbinder,hostvndbinder,hosthwbinder\"" -DCONFIG_ANDROID_BINDERFS
2-
obj-m := binderfs_module.o binder_module.o
3-
binder_module-y := deps.o binder.o binder_alloc.o
4-
binderfs_module-y := deps.o binderfs.o
1+
ccflags-y += -I$(src) -Wno-int-conversion -Wno-error=incompatible-pointer-types -DCONFIG_ANDROID_BINDER_DEVICES="\"\"" -DCONFIG_ANDROID_BINDERFS
2+
3+
obj-m := binder_linux.o
4+
binder_linux-y := binder.o binder_alloc.o deps.o binderfs.o
55

66
KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
77

88
all:
99
$(MAKE) -C $(KERNEL_SRC) V=0 M=$$PWD
1010

1111
install:
12-
cp binder_module.ko $(DESTDIR)/
13-
cp binderfs_module.ko $(DESTDIR)/
14-
insmod binder_module.ko
15-
insmod binderfs_module.ko
12+
cp binder_linux.ko $(DESTDIR)/
13+
insmod binder_linux.ko
1614
clean:
1715
rm -rf *.o *.ko *.mod.c *.symvers *.order .*.cmd .tmp_versions *.ur-safe

0 commit comments

Comments
 (0)