My customer send me the prebuilt kernel output directory(They can not release the kernel source tree to us). This output directory is as below(under /home/michael/Clients/android_p_Hzh/kernel/kernel/):
- arch
- block
- build-in.o
- certs
- ...
- .config
- Makefile
- Module.symvers
- source (symbol link to a local source tree in my customer's file system)
Is it possible to build my external module against with this directory?
/home/michael/Source/Linux/br_driver is my driver's directory. I have tried to build my driver under this directory as below make command:
make CROSS_COMPILE=x86_64-poky-linux- -C /home/michael/Clients/android_p_Hzh/kernel/kernel/ M=
pwd
$1
It fails with below output:
*** No rule to make target '/home/michael/Source/Linux/br_driver/common.o' needed by ...
The Makefile under br_driver is like below:
brt-objs := $(BRTOFILES)
obj-$(DRIVER_TYPE) += brt.o
all:
@echo "$(MAKE) --no-print-directory -C $(KDIR) SUBDIRS=$(CURDIR) modules"
@$(MAKE) --no-print-directory -C $(KDIR) SUBDIRS=$(CURDIR) modules
clean:
rm -rf *.o *.ko *.mod.c *~ .*.cmd *.o.cmd .*.o.cmd \
Module.symvers modules.order .tmp_versions modules.builtin
install:
@$(MAKE) --no-print-directory -C $(KDIR) \
SUBDIRS=$(CURDIR) modules_install