I am trying to make two/multiple custom modules outside buildroot directory and build them whenever needed. Tree as below,
buildroot
kernel_module
├── Config.in
├── external.desc
├── external.mk
├── package
│ └── kernel-modules
│ ├── Config.in
│ ├── kernel-modules.mk
│ ├── kmod-example
│ │ ├── Config.in
│ │ ├── kmod-example.c
│ │ ├── kmod-example.mk
│ │ ├── Makefile
│ └── kmod-notifier-exmp
│ ├── Config.in
│ ├── kmod-notifier-exmp.c
│ ├── kmod-notifier-exmp.mk
│ ├── Makefile
├── readme
added this config to .config
make BR2_EXTERNAL=/home/beaglebone_black/buildroot/kernel_module beaglebone_defconfig
Then I can see external options enabled in make menuconfig.
The issue is if I execute,
make kmod-notifier-exmp
this doesnt rsync my local configurations and fails saying,
buildroot/output/build/kmod-notifier-exmp/./Makefile: No such file or directory
contents generated as below
❯ cd output/build/kmod-notifier-exmp
❯ ls -la
total 788
drwxr-xr-x 2 n n 4096 Dec 24 19:34 .
drwxr-xr-x 61 n n 4096 Dec 24 19:34 ..
-rw-r--r-- 1 n n 0 Dec 24 19:32 .applied_patches_list
-rw-r--r-- 1 n n 300823 Dec 24 19:32 .files-list.before
-rw-r--r-- 1 n n 93604 Dec 24 19:32 .files-list-host.before
-rw-r--r-- 1 n n 724 Dec 24 19:32 .files-list-images.before
-rw-r--r-- 1 n n 395450 Dec 24 19:32 .files-list-staging.before
-rw-r--r-- 1 n n 0 Dec 24 19:32 .stamp_configured
-rw-r--r-- 1 n n 0 Dec 24 19:32 .stamp_downloaded
-rw-r--r-- 1 n n 0 Dec 24 19:32 .stamp_extracted
-rw-r--r-- 1 n n 0 Dec 24 19:32 .stamp_patched
for make kmod-example it rsyncs, but it sync kmod-notifier-exmp files and build fails.
Keeping single module works but not multiple modules.
How to solve this issue?