]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
kernel.bbclass: Move away from calling package_get_auto_pr
authorMark Hatle <mark.hatle@kernel.crashing.org>
Thu, 27 Aug 2020 19:07:05 +0000 (14:07 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 28 Aug 2020 06:06:44 +0000 (07:06 +0100)
...instead we call read_subpackage_metadata.

Calling package_get_auto_pr *should* result in the same PKGV AUTOINC
replacement.  However, it will also end up changing PKGR differently
then do_package as the BB_TASKHASH used will be for the wrong task.

Generally this won't cause any real-world issue, but it could cause
problems.

Moving to read_subpackage_metadata ensures that the values used
in do_package will be read in and used for kernel deployment.

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass

index 7869184b94028b16d2184b8da9bb4ee9e1a02b98..14c22da306d641a98c3dd64117a23eba418c53a0 100644 (file)
@@ -748,7 +748,10 @@ kernel_do_deploy() {
                done
        fi
 }
-do_deploy[prefuncs] += "package_get_auto_pr"
+
+# We deploy to filenames that include PKGV and PKGR, read the saved data to
+# ensure we get the right values for both
+do_deploy[prefuncs] += "read_subpackage_metadata"
 
 addtask deploy after do_populate_sysroot do_packagedata