- built Goldfish kernel successfully.
- built Android custom ROM with pre-built Goldfish kernel successfully.
- Added module source code (Hello-Proc for example) and Makefile to one folder in the custom ROM. I could manually build Hello-Proc.ko successfully by issuing "make" in the folder.
Which makefile and how need I change to trigger building this module when I build the ROM so that Hello-Proc.ko will be built automatically?
Note: Goldfish kernel code is not in the Android custom ROM, and Android custom ROM will not build Goldfish kernel neither. The file tree looks like this.
├── android_AOSP
│ ├── device
│ ├── vendor_A
│ ├── product_A
│ │ ├── AndroidBoard.mk
│ │ ├── AndroidProducts.mk
│ │ ├── BoardConfig.mk
│ │ ├── device.mk
│ │ ├── product_a.mk
│ │ ├── system.prop
│ │ └── vendorsetup.sh
│ ├── modules
│ ├── Android.mk
│ ├── hello_proc
│ ├── Android.mk
│ ├── hello_proc.c
│ ├── Kbuild
│ ├── Makefile
├── goldfish