BaseTools: support generating image package from BMP/JPEG/PNG files
BaseTools add support to generating image package from BMP/JPEG/PNG files. 1) New file type *.idf Image definition file to describe HII image resource. It is the ASCII text file, and includes one or more "#image IMAGE_ID [TRANSPARENT] ImageFileName". 2) New IMAGE_TOKEN macro is used to refer to IMAGE_ID. 3) New AutoGen header file $(MODULE_NAME)ImgDefs.h to include the generated ImageId definition. 4) New $(MODULE_NAME)Idf.hpk or $(MODULE_NAME)Images are generated as the output binary HII image package. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -568,6 +568,17 @@
|
||||
|
||||
<Command>
|
||||
|
||||
[Image-Definition-File]
|
||||
<InputFile>
|
||||
*.idf, *.Idf, *.IDF
|
||||
|
||||
<OutputFile>
|
||||
$(DEBUG_DIR)(+)AutoGen.c
|
||||
$(DEBUG_DIR)(+)$(MODULE_NAME)ImgDefs.h
|
||||
$(OUTPUT_DIR)(+)$(MODULE_NAME)Idf.hpk
|
||||
|
||||
<Command>
|
||||
|
||||
[Efi-Image.UEFI_OPTIONROM]
|
||||
<InputFile>
|
||||
?.efi, ?.EFI, ?.Efi
|
||||
@@ -588,6 +599,16 @@
|
||||
|
||||
<Command>
|
||||
|
||||
[Image-Definition-File.UEFI_HII]
|
||||
<InputFile>
|
||||
*.idf, *.Idf, *.IDF
|
||||
|
||||
<OutputFile>
|
||||
$(DEBUG_DIR)(+)$(MODULE_NAME)ImgDefs.h
|
||||
$(OUTPUT_DIR)(+)$(MODULE_NAME)Idf.hpk
|
||||
|
||||
<Command>
|
||||
|
||||
[Visual-Form-Representation-File.UEFI_HII]
|
||||
<InputFile>
|
||||
?.vfr
|
||||
|
Reference in New Issue
Block a user