public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Bi, Dandan" <dandan.bi@intel.com>
To: Amit kumar <akamit91@hotmail.com>,
	"Zhu, Yonghong" <yonghong.zhu@intel.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Subject: Re: How to add images to HiiDatabase.
Date: Wed, 9 Aug 2017 00:44:11 +0000	[thread overview]
Message-ID: <3C0D5C461C9E904E8F62152F6274C0BB3B9512E2@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <BN6PR11MB1570E6F39E503F78DB7B6A77DC8A0@BN6PR11MB1570.namprd11.prod.outlook.com>

When the driver is loaded, LoadImage() installs EFI_HII_PACKAGE_LIST_PROTOCOL on
the image handle if the image contains HII resource. 
So you can get the image package list through HiiPackageListProtocol,
And then add the image package list to HII database through NewPackageList API in Database Protocol.

Thanks,
Dandan

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Amit kumar
Sent: Wednesday, August 9, 2017 1:29 AM
To: Zhu, Yonghong <yonghong.zhu@intel.com>
Cc: edk2-devel@lists.01.org
Subject: Re: [edk2] How to add images to HiiDatabase.


i refered edk2/MdeModulePkg/Logo but the problem is how to pass logo.bmp to hiidatabase ?
Amit
On Aug 8, 2017, at 7:20 PM, Zhu, Yonghong <yonghong.zhu@intel.com<mailto:yonghong.zhu@intel.com>> wrote:

The IMAGE_TOKEN should be used in the source file.
You can refer  edk2/MdeModulePkg/Logo

Best Regards,
Zhu Yonghong


-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Amit kumar
Sent: Tuesday, August 08, 2017 8:31 PM
To: edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
Subject: [edk2] How to add images to HiiDatabase.


Hi ,

Can somebody tell me how to add images to hiidatabase . I have image.png file and a image.idf file.
Is there something than has to be done during compilation ? like Vfr ?
can i use HiiAddPackages ?

Thanks And Regards
Amit Kumar

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org<mailto:edk2-devel@lists.01.org>
https://lists.01.org/mailman/listinfo/edk2-devel

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


      reply	other threads:[~2017-08-09  0:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-08 12:30 How to add images to HiiDatabase Amit kumar
2017-08-08 13:50 ` Zhu, Yonghong
2017-08-08 17:28   ` Amit kumar
2017-08-09  0:44     ` Bi, Dandan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C0D5C461C9E904E8F62152F6274C0BB3B9512E2@shsmsx102.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox