Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 18412  / 2 Years ago, wed, november 16, 2022, 9:45:06

I followed the step-by-step article here: UEFI/EFK2 . Everything works nice until I need to actually build it. At the paragraph 'Building MdeModulePkg module package' the description says: Just type build:



bash$ build


but my Ubuntu 12.04.1 LTS says:



No command 'build' found, did you mean:
Command 'xbuild' from package 'mono-xbuild' (main)
Command 'guild' from package 'guile-2.0-libs' (universe)
Command 'sbuild' from package 'sbuild' (universe)
Command 'bwild' from package 'bacula-director-common' (main)
Command 'buildd' from package 'buildd' (universe)
build: command not found


Maybe someone knows where exactly I can find this mysterious command?


More From » compiling

 Answers
3

As long as you have installed the build dependencies and followed the guide exactly, I think you just need to make sure you are in the edk2 directory when you issue the build command. If you enter the build command when you are in any other directory you will get the error that you received.



Also, the build command will only work if you have run edksetup.sh and edited the correct build parameters into ~/src/edk2/Conf/target.txt (or whatever your path is).



Here is the initial output of the build command when run from the edk2 directory (with files tweaked as per the guide):



mik@Acer ~/src/edk2$ build
Build environment: Linux-3.2.0-32-generic-i686-with-Ubuntu-12.04-precise
Build start time: 00:45:15, Oct.22 2012

WORKSPACE = /home/mike/src/edk2
ECP_SOURCE = /home/mike/src/edk2/EdkCompatibilityPkg
EDK_SOURCE = /home/mike/src/edk2/EdkCompatibilityPkg
EFI_SOURCE = /home/mike/src/edk2/EdkCompatibilityPkg
EDK_TOOLS_PATH = /home/mike/src/edk2/BaseTools

Architecture(s) = IA32
Build target = DEBUG
Toolchain = GCC46

Active Platform = /home/mike/src/edk2/MdeModulePkg/MdeModulePkg.dsc

Processing meta-data ........... done!


Then it proceeds to compile everything required.


[#34808] Thursday, November 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tionpromoti

Total Points: 14
Total Questions: 112
Total Answers: 113

Location: Tonga
Member since Tue, Nov 30, 2021
2 Years ago
tionpromoti questions
Fri, Apr 15, 22, 03:58, 2 Years ago
Tue, Jun 1, 21, 23:05, 3 Years ago
Mon, Jul 5, 21, 06:11, 3 Years ago
;