I was looking at your mod (specifically the SREP one) and I noticed this:
4A 10 59 7B 0D C0 58 41 87 FF F0 4D 63 96 A9 15 18 27
Specifically the “18 27”, because I had the idea of searching that set of numbers in the extracted Setup IFRs and found that the last two bytes, 18 27 point to some data that is part of the Form ID:
0x27DF5: Form FormId: 0x2718, Title: "Main" { 01 86 18 27 50 04 }
So with this in mind, I guess I could make my own mods?
Well - back to the order, opening a BIOS image from my laptop in AMIBCP shows up like this:
Now it may not look like much, but notice the way the Forms are ordered here, IBV Advanced, Security and Save & Exit all come before the Forms that the HP BIOS originally came with, following this order, if IBV Advanced, Security and Save & Exit were to be added and displayed, in the BIOS Setup Utility’s tabs, IBV Advanced should be first, then Security, then Save & Exit and finally all of the following Forms that the BIOS originally had, Main, Advanced (which doesn’t even show up), Security, Configuration, Boot Options and lastly, Exit.
I still don’t know where the order is defined in the BIOS, but I know that AMIBCP should be getting it from the same place that the BIOS does when setting up the Setup Utility (aka just the built in Form Browser), thought this might’ve been worth sharing, but I think you already knew this.
If I were to add the AMD CBS menu as a tab, I have no idea where it would go but it’ll probably be the last tab? not sure, but you could look at UiApp.efi from UMAF_BETA.zip or UniversalAMDFormBrowser, since that manages to put a page called “Front Page” before anything else, could check the Form IDs to see if that’s relevant when it comes to ordering (which it most likely is):
Either the Form ID is taken into account when sorting, or the bytes used to reference the Form ID are.