32ff6831cd
KUnit's 'hooks.o' file need to be built-in whenever KUnit is enabled
(even if CONFIG_KUNIT=m). We'd previously attemtped to do this by
adding 'kunit/hooks.o' to obj-y in lib/Makefile, but this caused hooks.c
to be rebuilt even when it was unchanged.
Instead, always recurse into lib/kunit using obj-y when KUnit is
enabled, and add the hooks there.
Fixes:
|
||
---|---|---|
.. | ||
.kunitconfig | ||
Kconfig | ||
Makefile | ||
assert.c | ||
debugfs.c | ||
debugfs.h | ||
executor.c | ||
executor_test.c | ||
hooks-impl.h | ||
hooks.c | ||
kunit-example-test.c | ||
kunit-test.c | ||
resource.c | ||
static_stub.c | ||
string-stream-test.c | ||
string-stream.c | ||
string-stream.h | ||
test.c | ||
try-catch-impl.h | ||
try-catch.c |