]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
insane.bbclass: avoid unnecessary rerun of do_patch
authorChen Qi <Qi.Chen@windriver.com>
Thu, 18 Dec 2025 02:53:51 +0000 (10:53 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 22 Dec 2025 17:54:58 +0000 (17:54 +0000)
commit693b862db479ecb4c15b6e755ccb4ed30cf91fa8
tree661e960a515823eb2ec3432d06bf005446f972c1
parent0cf94b491017b48bfa6fc3949f6e06573c53919d
insane.bbclass: avoid unnecessary rerun of do_patch

When toggling ptest for DISTRO_FEATURES, the do_patch function
gets rerun.

The dependency chain is:
do_patch -> do_qa_patch -> DISTRO_FEATURES{ptest}

Such rerun is not necessary. And it's kind of annoying because everything
gets rebuilt, including cross toolchain and recipes not using ptest.

The ERROR_QA and WARN_QA should be enough to trigger the re-run
if unimplemented-ptest is added to one of them. So remove the first
check of DISTRO_FEATURES on ptest to avoid these unnecessary reruns.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/insane.bbclass