From nobody Sat May 4 03:49:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+55858+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55858+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1584301884; cv=none; d=zohomail.com; s=zohoarc; b=Ez1fq+BdwksubUSTpsO13I5yAa29mKVyFFQ5Ffv7zUS14Hn7ZciWPL3KdBSd9yLhnYnkAfOIVXhtkUCdV0dEhyQuMcefzaW+BNckvG2Y0SwsM5yJSbM89phUlRQb/qV5rlcPT46Wbe4DNPYPROo6aIRi9LmQ9MxpHBeybEIFAXw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584301884; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To; bh=K/X312GLc0UICAH2matqkeFZ8JUD5la8hTdXXCah28M=; b=PHlNhJDJe9/2uc/p+T4ZSESSbDoqCoCM8pBAAVy/gttwpHgPLlYbeqB475F7mHWqf6HImKLTPWiEy1xuwBSR39Om7bXunBICgXxjNvxuT403RxnbufY4vhleC/aEk55fxIkZO6ghHm5QTGBmR7ubyNkLogunE0EOfByDKrPU/Cw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+55858+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1584301884171281.4699215130298; Sun, 15 Mar 2020 12:51:24 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id OXnDYY1788612xiyLz4Rpr9V; Sun, 15 Mar 2020 12:51:23 -0700 X-Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) by mx.groups.io with SMTP id smtpd.web10.49103.1584299761480301451 for ; Sun, 15 Mar 2020 12:16:01 -0700 X-Received: by mail-lj1-f177.google.com with SMTP id d23so16117275ljg.13 for ; Sun, 15 Mar 2020 12:16:01 -0700 (PDT) X-Gm-Message-State: oDZaEAYTq7avtHdjqtsMtDUDx1787277AA= X-Google-Smtp-Source: ADFU+vuwtbeTUNMM9+j9/rIXzxwYZy0LbIKHJ8qcKzgvp1I9NMHoBIMspZyl2BD7t9YkhmVILWhu5Q== X-Received: by 2002:a2e:3309:: with SMTP id d9mr3886483ljc.73.1584299759514; Sun, 15 Mar 2020 12:15:59 -0700 (PDT) X-Received: from localhost ([80.254.50.127]) by smtp.gmail.com with ESMTPSA id q4sm1809103lfc.32.2020.03.15.12.15.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Mar 2020 12:15:59 -0700 (PDT) Message-ID: <5e6e7eef.1c69fb81.d4e46.39ab@mx.google.com> Date: Sun, 15 Mar 2020 19:09:58 +0300 From: Roman Bolshakov To: devel@edk2.groups.io Cc: Michael Kinney Subject: [edk2-devel] [PATCH RESEND] Update mtoc installation guide for Xcode Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,roolebo@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1584301883; bh=MOxmrKWYsr8cdoZBCvTMqcbTo/jGB5GOnYsdLw/VjE0=; h=Cc:Date:From:Reply-To:Subject:To; b=flPiTkKpbSzEmnEkI1IRTEUjZlXtpd7KS0VgWBJfXwvcmi3rT6ilnG8a6geqBidQlfD lel2GAUMpWSgwn1vzT11IAzVgAFFUux5m1m4f4/0xQ01KPliKIJD2bTh2f7B4ZcX0bT2u Okjd+1szSAq/4CsVqXe/fy9RFf30RCZQdck= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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 --- 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. I'm sorry for the extra email with BCC. 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 w= ell 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. =20 ### Brew Instructions -Brew does not have an inbuilt version of mtoc so you must create it from s= ource - -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 o= f projects that can be downloaded.=20 - -* Download the cctools project (currently cctools-895).=20 -* 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 p= roject. - -* 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 m= ore useful location.=20 - -``` -$ sudo cp mtoc.NEW /usr/local/bin/mtoc -``` - -If this fails you probably don't have a local/bin directory under /usr. Yo= u need to add the directories by hand=20 - ``` -$ cd /usr -$ sudo mkdir local -$ cd local -$ sudo mkdir bin=20 +$ brew install mtoc ``` ## MacPorts Instructions ``` -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#55858): https://edk2.groups.io/g/devel/message/55858 Mute This Topic: https://groups.io/mt/71981091/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-