2. Create and modify .dsc and .dec files for your package.
3. Create a new folder in your package for applications or anything else you want to build in your package.
4. Create all files for your own modules such as:
5. Create a batch file for compiling your package like:
And the following script is used to do some compiler tasks like "Build", "Build All" or "Clean":
call %CD%\..\edksetup.bat reconfig
if not "%1"=="" goto ALL
build -a X64 -p MyPkg\MyPkg.dsc --log=build.log
goto end
:ALL
if not "%1"=="all" goto CLEAN
ECHO ALL
build %1 -p MyPkg\MyPkg.dsc --log=build.log
goto end
:CLEAN
if not "%1"=="clean" goto X86
ECHO CLEAN
build %1 -p MyPkg\MyPkg.dsc --log=build.log
echo %1
goto end
:X86
if not "%1"=="32" goto X64
ECHO Build X86
build -a IA32 -p MyPkg\MyPkg.dsc --log=build.log
goto end
:X64
if not "%1"=="64" goto other
ECHO Build X64
build -a X64 -p MyPkg\MyPkg.dsc --log=build.log
goto end
:other
echo ERROR ! Input variable
goto end
:end
6. New a Project:
And select the type of "Visaul C++":
Select the project file location and choose all type of files in your project:
Select building method:
Type building commands as below:
Done!
Now you can compile your EDKII package by visaul studio IDE.








沒有留言:
張貼留言