of: Allow overlay kunit tests to run CONFIG_OF_OVERLAY=n
authorStephen Boyd <sboyd@kernel.org>
Wed, 16 Oct 2024 21:20:15 +0000 (14:20 -0700)
committerRob Herring (Arm) <robh@kernel.org>
Fri, 15 Nov 2024 20:03:28 +0000 (14:03 -0600)
commit332857fdac73f1c7b74ad962c07bb39e4c0c145a
tree538f8da404a95bbd9b36c7f65a1ee6285ba0abaf
parent6e0391e48cf9fb8b1b5e27c0cbbaf2e4639f2c33
of: Allow overlay kunit tests to run CONFIG_OF_OVERLAY=n

Some configurations want to enable CONFIG_KUNIT without enabling
CONFIG_OF_OVERLAY. The kunit overlay code already skips if
CONFIG_OF_OVERLAY isn't enabled, so this select here isn't really doing
anything besides making it easier to run the tests without them
skipping. Remove the select and move the config setting to the
drivers/of/.kunitconfig file so that the overlay tests can be run with
or without CONFIG_OF_OVERLAY set to test either behavior.

Fixes: 5c9dd72d8385 ("of: Add a KUnit test for overlays and test managed APIs")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20241016212016.887552-1-sboyd@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
drivers/of/.kunitconfig
drivers/of/Kconfig
drivers/of/overlay_test.c