]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
cml1.bbclass: do_diffconfig: Don't override .config with .config.orig
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 8 Oct 2024 15:47:27 +0000 (08:47 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Oct 2024 11:16:59 +0000 (12:16 +0100)
commit6cccf6b02f92dad514e65fd779ff659b19eb6be7
treee76009aa9df89987292899d66778bd8bf2400e47
parent9e95951b36c03016b28787a58e5baf089c864673
cml1.bbclass: do_diffconfig: Don't override .config with .config.orig

Fixed:
1) $ bitbake virtual/kernel -cmenuconfig
Do some changes and save the new config to default .config.
2) $ bitbake virtual/kernel -cdiffconfig
The config fragment is dumped into ${WORKDIR}/fragment.cfg.

But the .config which was saved by step #1 is overridden by .config.orig, so
the changes will be lost if run 'bitbake virtual/kernel'

And the following comment is for subprocess.call(), not for shutil.copy(),
so move subprocess.call() to the correct location.
    # No need to check the exit code as we know it's going to be
    # non-zero, but that's what we expect.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-recipe/cml1.bbclass