* [PATCH] Update mtoc installation guide for Xcode
@ 2020-03-15 16:09 Roman Bolshakov
2020-03-22 17:38 ` [edk2-devel] " Michael D Kinney
0 siblings, 1 reply; 3+ messages in thread
From: Roman Bolshakov @ 2020-03-15 16:09 UTC (permalink / raw)
Cc: Michael Kinney
mtoc was added to homebrew in Homebrew/homebrew-core#51730 and can be
installed on Catalina, Mojave and High Sierra.
Signed-off-by: Roman Bolshakov <roolebo@gmail.com>
---
Hello,
The patch is intended for tianocore github wiki that has restricted
editing for project members, that's why I'm sending it here.
If someone is using macOS, could you please verify that EFI built with
mtoc from homebrew works as expected.
Thank you,
Roman
Xcode.md | 47 +----------------------------------------------
1 file changed, 1 insertion(+), 46 deletions(-)
diff --git a/Xcode.md b/Xcode.md
index dc7e9fbb..0377fe44 100644
--- a/Xcode.md
+++ b/Xcode.md
@@ -17,53 +17,8 @@ While Xcode provides a full development environment as well as a suite of differ
The mtoc utility is required to convert from the macOS Mach-O image format to the PE/COFF format as required by the UEFI specification.
### Brew Instructions
-Brew does not have an inbuilt version of mtoc so you must create it from source
-
-Go to http://www.opensource.apple.com/ and click on the latest open source version of the developer tools (currently 8.2.1) and you will get a list of projects that can be downloaded.
-
-* Download the cctools project (currently cctools-895).
-* Expand the tar file (double click on it in Finder)
-* Open a Terminal window to get a command line prompt.
-
-To build `mtoc` you will need to copy an include directory from the LLVM project.
-
-* Download http://llvm.org/releases/download.html#4.0
-* Copy the include/llvm-c and include/llvm directories from LLVM into the cctools include directory, but do not overwrite include/llvm-c/Disassembler.h.
-
- ```
- $ cp cctools-895/include/llvm-c/Disassembler.h .
- $ cp -R llvm-4.0.0.src/include/llvm cctools-895/include/llvm
- $ cp -R llvm-4.0.0.src/include/llvm-c cctools-895/include/llvm-c
- $ cp Disassembler.h cctools-895/include/llvm-c
- ```
-
-Then from the top cctools directory type:
-
-```
-$ cd cctools-895
-$ make
-```
-
-The make will finish with an error message on the file `strip.c`. This is expected. Then do the following:
-
-```
-$ cd efitools
-$ make
-```
-
-You have now built the command line application `mtoc.NEW`! Move it to a more useful location.
-
-```
-$ sudo cp mtoc.NEW /usr/local/bin/mtoc
-```
-
-If this fails you probably don't have a local/bin directory under /usr. You need to add the directories by hand
-
```
-$ cd /usr
-$ sudo mkdir local
-$ cd local
-$ sudo mkdir bin
+$ brew install mtoc
```
## MacPorts Instructions
```
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [edk2-devel] [PATCH] Update mtoc installation guide for Xcode
2020-03-15 16:09 [PATCH] Update mtoc installation guide for Xcode Roman Bolshakov
@ 2020-03-22 17:38 ` Michael D Kinney
2020-03-22 17:45 ` Michael D Kinney
0 siblings, 1 reply; 3+ messages in thread
From: Michael D Kinney @ 2020-03-22 17:38 UTC (permalink / raw)
To: devel@edk2.groups.io, roolebo@gmail.com, Kinney, Michael D
Hi Roman,
Thank you for the contribution to homebrew that simplifies
installing dependencies for Xcode.
I tested this with an Azure Pipelines agent.
https://dev.azure.com/mikekinney/edk2-ci/_build/results?buildId=953&view=logs&j=92151bb0-8a7b-5cbb-0979-21238daa6c94
Tested-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
I will push this update to the Wiki.
Thanks,
Mike
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On
> Behalf Of Roman Bolshakov
> Sent: Sunday, March 15, 2020 9:10 AM
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>
> Subject: [edk2-devel] [PATCH] Update mtoc installation
> guide for Xcode
>
> mtoc was added to homebrew in Homebrew/homebrew-
> core#51730 and can be
> installed on Catalina, Mojave and High Sierra.
>
> Signed-off-by: Roman Bolshakov <roolebo@gmail.com>
> ---
>
> Hello,
>
> The patch is intended for tianocore github wiki that
> has restricted
> editing for project members, that's why I'm sending it
> here.
>
> If someone is using macOS, could you please verify that
> EFI built with
> mtoc from homebrew works as expected.
>
> Thank you,
> Roman
>
> Xcode.md | 47 +---------------------------------------
> -------
> 1 file changed, 1 insertion(+), 46 deletions(-)
>
> diff --git a/Xcode.md b/Xcode.md
> index dc7e9fbb..0377fe44 100644
> --- a/Xcode.md
> +++ b/Xcode.md
> @@ -17,53 +17,8 @@ While Xcode provides a full
> development environment as well as a suite of differ
> The mtoc utility is required to convert from the macOS
> Mach-O image format to the PE/COFF format as required
> by the UEFI specification.
>
> ### Brew Instructions
> -Brew does not have an inbuilt version of mtoc so you
> must create it from source
> -
> -Go to http://www.opensource.apple.com/ and click on
> the latest open source version of the developer tools
> (currently 8.2.1) and you will get a list of projects
> that can be downloaded.
> -
> -* Download the cctools project (currently cctools-
> 895).
> -* Expand the tar file (double click on it in Finder)
> -* Open a Terminal window to get a command line prompt.
> -
> -To build `mtoc` you will need to copy an include
> directory from the LLVM project.
> -
> -* Download http://llvm.org/releases/download.html#4.0
> -* Copy the include/llvm-c and include/llvm directories
> from LLVM into the cctools include directory, but do
> not overwrite include/llvm-c/Disassembler.h.
> -
> - ```
> - $ cp cctools-895/include/llvm-c/Disassembler.h .
> - $ cp -R llvm-4.0.0.src/include/llvm cctools-
> 895/include/llvm
> - $ cp -R llvm-4.0.0.src/include/llvm-c cctools-
> 895/include/llvm-c
> - $ cp Disassembler.h cctools-895/include/llvm-c
> - ```
> -
> -Then from the top cctools directory type:
> -
> -```
> -$ cd cctools-895
> -$ make
> -```
> -
> -The make will finish with an error message on the file
> `strip.c`. This is expected. Then do the following:
> -
> -```
> -$ cd efitools
> -$ make
> -```
> -
> -You have now built the command line application
> `mtoc.NEW`! Move it to a more useful location.
> -
> -```
> -$ sudo cp mtoc.NEW /usr/local/bin/mtoc
> -```
> -
> -If this fails you probably don't have a local/bin
> directory under /usr. You need to add the directories
> by hand
> -
> ```
> -$ cd /usr
> -$ sudo mkdir local
> -$ cd local
> -$ sudo mkdir bin
> +$ brew install mtoc
> ```
> ## MacPorts Instructions
> ```
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [edk2-devel] [PATCH] Update mtoc installation guide for Xcode
2020-03-22 17:38 ` [edk2-devel] " Michael D Kinney
@ 2020-03-22 17:45 ` Michael D Kinney
0 siblings, 0 replies; 3+ messages in thread
From: Michael D Kinney @ 2020-03-22 17:45 UTC (permalink / raw)
To: devel@edk2.groups.io, roolebo@gmail.com, Kinney, Michael D
Pushed 27ea8b014b22e6e36e7f6655c4267b61b41a02b6
Mike
> -----Original Message-----
> From: Kinney, Michael D <michael.d.kinney@intel.com>
> Sent: Sunday, March 22, 2020 10:38 AM
> To: devel@edk2.groups.io; roolebo@gmail.com; Kinney,
> Michael D <michael.d.kinney@intel.com>
> Subject: RE: [edk2-devel] [PATCH] Update mtoc
> installation guide for Xcode
>
> Hi Roman,
>
> Thank you for the contribution to homebrew that
> simplifies
> installing dependencies for Xcode.
>
> I tested this with an Azure Pipelines agent.
>
> https://dev.azure.com/mikekinney/edk2-
> ci/_build/results?buildId=953&view=logs&j=92151bb0-
> 8a7b-5cbb-0979-21238daa6c94
>
> Tested-by: Michael D Kinney
> <michael.d.kinney@intel.com>
> Reviewed-by: Michael D Kinney
> <michael.d.kinney@intel.com>
>
> I will push this update to the Wiki.
>
> Thanks,
>
> Mike
>
> > -----Original Message-----
> > From: devel@edk2.groups.io <devel@edk2.groups.io> On
> > Behalf Of Roman Bolshakov
> > Sent: Sunday, March 15, 2020 9:10 AM
> > Cc: Kinney, Michael D <michael.d.kinney@intel.com>
> > Subject: [edk2-devel] [PATCH] Update mtoc
> installation
> > guide for Xcode
> >
> > mtoc was added to homebrew in Homebrew/homebrew-
> > core#51730 and can be
> > installed on Catalina, Mojave and High Sierra.
> >
> > Signed-off-by: Roman Bolshakov <roolebo@gmail.com>
> > ---
> >
> > Hello,
> >
> > The patch is intended for tianocore github wiki that
> > has restricted
> > editing for project members, that's why I'm sending
> it
> > here.
> >
> > If someone is using macOS, could you please verify
> that
> > EFI built with
> > mtoc from homebrew works as expected.
> >
> > Thank you,
> > Roman
> >
> > Xcode.md | 47 +-------------------------------------
> --
> > -------
> > 1 file changed, 1 insertion(+), 46 deletions(-)
> >
> > diff --git a/Xcode.md b/Xcode.md
> > index dc7e9fbb..0377fe44 100644
> > --- a/Xcode.md
> > +++ b/Xcode.md
> > @@ -17,53 +17,8 @@ While Xcode provides a full
> > development environment as well as a suite of differ
> > The mtoc utility is required to convert from the
> macOS
> > Mach-O image format to the PE/COFF format as required
> > by the UEFI specification.
> >
> > ### Brew Instructions
> > -Brew does not have an inbuilt version of mtoc so you
> > must create it from source
> > -
> > -Go to http://www.opensource.apple.com/ and click on
> > the latest open source version of the developer tools
> > (currently 8.2.1) and you will get a list of projects
> > that can be downloaded.
> > -
> > -* Download the cctools project (currently cctools-
> > 895).
> > -* Expand the tar file (double click on it in Finder)
> > -* Open a Terminal window to get a command line
> prompt.
> > -
> > -To build `mtoc` you will need to copy an include
> > directory from the LLVM project.
> > -
> > -* Download
> http://llvm.org/releases/download.html#4.0
> > -* Copy the include/llvm-c and include/llvm
> directories
> > from LLVM into the cctools include directory, but do
> > not overwrite include/llvm-c/Disassembler.h.
> > -
> > - ```
> > - $ cp cctools-895/include/llvm-c/Disassembler.h .
> > - $ cp -R llvm-4.0.0.src/include/llvm cctools-
> > 895/include/llvm
> > - $ cp -R llvm-4.0.0.src/include/llvm-c cctools-
> > 895/include/llvm-c
> > - $ cp Disassembler.h cctools-895/include/llvm-c
> > - ```
> > -
> > -Then from the top cctools directory type:
> > -
> > -```
> > -$ cd cctools-895
> > -$ make
> > -```
> > -
> > -The make will finish with an error message on the
> file
> > `strip.c`. This is expected. Then do the following:
> > -
> > -```
> > -$ cd efitools
> > -$ make
> > -```
> > -
> > -You have now built the command line application
> > `mtoc.NEW`! Move it to a more useful location.
> > -
> > -```
> > -$ sudo cp mtoc.NEW /usr/local/bin/mtoc
> > -```
> > -
> > -If this fails you probably don't have a local/bin
> > directory under /usr. You need to add the directories
> > by hand
> > -
> > ```
> > -$ cd /usr
> > -$ sudo mkdir local
> > -$ cd local
> > -$ sudo mkdir bin
> > +$ brew install mtoc
> > ```
> > ## MacPorts Instructions
> > ```
> >
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-03-22 17:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-15 16:09 [PATCH] Update mtoc installation guide for Xcode Roman Bolshakov
2020-03-22 17:38 ` [edk2-devel] " Michael D Kinney
2020-03-22 17:45 ` Michael D Kinney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox