- To build DUET image, Mingw GCC is required:\r
- \r
- 1). Check out build tools project from svn repository: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools\r
- 2). Assume check out directory is /EDKII/BaseTools, enter /EDKII/BaseTools/gcc directory. Please refer to README.txt install all the necessary\r
- build packages following:\r
- * Python 2.5\r
- * texinfo\r
- * bison\r
- * flex\r
- * libmpfr\r
- * libgmp \r
- * As well as (possibly) others tools and development packages\r
- \r
- 3). Run mingw-gcc-install.py from gcc folder, this script will download/build/install MingwGCC and BinUtil automatically\r
- 4). Create symbol link in linux environment at /opt to match default setting in tools_def.txt\r
- "ln -s /EDKII/BaseTools/gcc/symlinks/ar /opt/tiano/i386-tiano-pe/i386-tiano-pe/bin/ar"\r
- "ln -s /EDKII/BaseTools/gcc/symlinks/gcc /opt/tiano/i386-tiano-pe/i386-tiano-pe/bin/gcc"\r
- "ln -s /EDKII/BaseTools/gcc/symlinks/ld /opt/tiano/i386-tiano-pe/i386-tiano-pe/bin/ld"\r
- \r
- \r
-2. Build steps\r
-\r
-2.1 Build Duet Platform module \r
+ To build DUET image, GCC installation (4.4+) is required:\r
+ 1). Base on below link to create GCC build environment.\r
+ https://github.com/tianocore/tianocore.github.io/wiki/Using-EDK-II-with-Native-GCC\r
+\r
+2. Build Duet Platform module\r
+\r
+ 1). Open the terminal.\r
+ 2). enter workspace root directory such as /edk2_tree\r
+ 3). run ". edksetup.sh BaseTools"\r
+ 4). run "build -p DuetPkg/DuetPkgIa32.dsc -a IA32 -t GCC49" for IA32 architecture platform (using GCC 4.9 for example) or\r
+ "build -p DuetPkg/DuetPkgX64.dsc -a X64 -t GCC49" for X64 architecture platform.\r
+\r
+ NOTE: The post build script 'PostBuild.sh' will be automatically called after the build command.\r
+ After post build action, you should check the size of EfiLdr at $WORKSPACE/Build/DuetPkgIA32(DuetPkgX64)/DEBUG_GCC49 directory, it must less than 470k.\r
+ If not, you should manually remove some unnecessary drivers at DuetPkg.fdf file.\r