public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel via groups.io" <ardb+git=google.com@groups.io>
To: devel@edk2.groups.io
Cc: Ard Biesheuvel <ardb@kernel.org>,
	Leif Lindholm <quic_llindhol@quicinc.com>
Subject: [edk2-devel] [PATCH edk2-platforms 02/11] Silicon/SynQuacer: Fix CLANGDWARF build
Date: Thu, 25 Jul 2024 10:24:53 +0200	[thread overview]
Message-ID: <20240725082502.1566409-3-ardb+git@google.com> (raw)
In-Reply-To: <20240725082502.1566409-1-ardb+git@google.com>

From: Ard Biesheuvel <ardb@kernel.org>

Drop the CLANG3x build options, and add ones for CLANGDWARF so that
SynQuacer based platforms can be built with it.

Instead of copying the -no-integrated-as option that CLANG3x used, let's
fix the assembler code so it can be built with Clang's integrated
assembler. Also switch to LLD for linking the code, which is what
CLANGDWARF uses natively (and build hosts may lack a cross linker for
AArch64 when using CLANGDWARF)

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
---
 Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf | 3 +--
 Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.S   | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf b/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf
index 7b396db826a5..8c331738c81a 100644
--- a/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf
+++ b/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.inf
@@ -23,5 +23,4 @@ [BuildOptions]
   *_*_AARCH64_OBJCOPY_FLAGS = -I elf64-little
   *_*_ARM_OBJCOPY_FLAGS = -I elf32-little
   *_*_*_ASM_FLAGS == -nostdlib -Wl,-e,0x81f8000,--section-start=.rodata=0x81f8000
-  *_CLANG35_*_ASM_FLAGS = -no-integrated-as
-  *_CLANG38_*_ASM_FLAGS = -no-integrated-as
+  *_CLANGDWARF_*_ASM_FLAGS = -target aarch64-linux-gnu -fuse-ld=lld -Wl,-no-pie
diff --git a/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.S b/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.S
index a7f0eb2b7742..4f7c2aae20a1 100644
--- a/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.S
+++ b/Silicon/Socionext/SynQuacer/Stage2Tables/Stage2Tables.S
@@ -54,13 +54,13 @@
             TT_S2_VALID | (\cont << TT_S2_CONT_SHIFT)
   .endm
 
-  .macro    s2_l3_entry, base, offset=0, cont=0
+  .macro    s2_l3_entry, base, offset=0, cont=0, ignore=0
   .quad     ((\base << 12) + \offset) | TT_S2_AF | TT_S2_AP_RW | \
             TT_S2_SH_NON_SHAREABLE | TT_S2_MEMATTR_MEMORY_WB | \
             TT_S2_L3_PAGE | TT_S2_VALID | (\cont << TT_S2_CONT_SHIFT)
   .endm
 
-  .macro    smmu_l3_entry, base, offset=0, ignore=0
+  .macro    smmu_l3_entry, base, offset=0, ignore=0, ignore2=0
   .quad     ((\base << 12) + \offset) | TT_S2_AF | TT_S2_AP_RO | \
             TT_S2_SH_NON_SHAREABLE | TT_S2_MEMATTR_DEVICE_nGnRE | \
             TT_S2_L3_PAGE | TT_S2_VALID
-- 
2.46.0.rc1.232.g9752f9e123-goog



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120084): https://edk2.groups.io/g/devel/message/120084
Mute This Topic: https://groups.io/mt/107628948/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  parent reply	other threads:[~2024-07-30 15:08 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-25  8:24 [edk2-devel] [PATCH edk2-platforms 00/11] Phase out ArmSmcPsciResetSystemLib Ard Biesheuvel via groups.io
2024-07-25  8:24 ` [edk2-devel] [PATCH edk2-platforms 01/11] Platform,Silicon: Fix line endings Ard Biesheuvel via groups.io
2024-07-25  8:24 ` Ard Biesheuvel via groups.io [this message]
2024-07-25  8:24 ` [edk2-devel] [PATCH edk2-platforms 03/11] Platform/AMD/Styx: Switch to generic ArmPsciResetSystemLib Ard Biesheuvel via groups.io
2024-07-25  8:24 ` [edk2-devel] [PATCH edk2-platforms 04/11] Platform/ARM: " Ard Biesheuvel via groups.io
2024-07-25 10:12   ` Sami Mujawar
2024-07-25  8:24 ` [edk2-devel] [PATCH edk2-platforms 05/11] Platform/SbsaQemu: " Ard Biesheuvel via groups.io
2024-07-25  8:24 ` [edk2-devel] [PATCH edk2-platforms 06/11] Platform/SynQuacer: " Ard Biesheuvel via groups.io
2024-07-25  8:24 ` [edk2-devel] [PATCH edk2-platforms 07/11] Silicon/Ampere: " Ard Biesheuvel via groups.io
2024-07-26  9:06   ` Nhi Pham via groups.io
2024-07-25  8:24 ` [edk2-devel] [PATCH edk2-platforms 08/11] Silicon/HiSilicon: " Ard Biesheuvel via groups.io
2024-07-25  8:25 ` [edk2-devel] [PATCH edk2-platforms 09/11] Silicon/Armada7k8k: " Ard Biesheuvel via groups.io
2024-07-25  8:25 ` [edk2-devel] [PATCH edk2-platforms 10/11] Silicon/NxpQoriqLs: " Ard Biesheuvel via groups.io
2024-07-25  8:25 ` [edk2-devel] [PATCH edk2-platforms 11/11] Silicon/Phytium: " Ard Biesheuvel via groups.io
2024-07-25  9:49 ` [edk2-devel] [PATCH edk2-platforms 00/11] Phase out ArmSmcPsciResetSystemLib Leif Lindholm
2024-07-25 10:53   ` Ard Biesheuvel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240725082502.1566409-3-ardb+git@google.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox