Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib with subdirectories build failed #3

Open
19504643 opened this issue Nov 8, 2023 · 0 comments
Open

lib with subdirectories build failed #3

19504643 opened this issue Nov 8, 2023 · 0 comments

Comments

@19504643
Copy link

19504643 commented Nov 8, 2023

I'm building a project, there are more than one libraries, so I move your example lib files to its subdirectory like following

lib
├── Kconfig
├── log_print
│   ├── Kconfig
│   ├── list_debug.c
│   ├── log_print.c
│   └── Makefile
└── Makefile

cat lib/Makefile

lib-$(CONFIG_ENABLE_LOGGING) += log_print/

cat lib/Kconfig

source "lib/log_print/Kconfig"

cat lib/log_print/Makefile

lib-$(CONFIG_ENABLE_LOGGING) += log_print.o
lib-$(CONFIG_DEBUG_LIST) += list_debug.o

lib/log_print/Kconfig stays the same as original lib/Kconfig
lib/log_print/Makefile stays the same as original lib/Makefile

but error occurs when making, need your help, thanks

AR lib/lib.a
ar: lib/log_print/: file format not recognized
make[1]: *** [scripts/Makefile.build:237: lib/lib.a] Error 1
make: *** [Makefile:369: lib] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant