Firmware info related to the HW Target must be stored together with the BSP test cases logs and results.
Thinking more of a runtime test - see bug 6027 as reference which is deprecated by this: "Having a file inside the BSPs rootfs displaying "Build configuration" info like poky, meta-* commits, BB_VERSION, local.conf changes and also others would help QA on making sure correct images were built. The file can be /etc/version or similar one. An example would be a misconfiguration in the public AB that would deliver builds with different commit id's to the QA."
*** Bug 6027 has been marked as a duplicate of this bug. ***
Moved to 2.5 due resources constraint
The new resulttool captures the commit and hardware information with test results.