]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/GNUmakefile
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / BaseTools / Source / C / GNUmakefile
index c38de5ac7375ea551daf8673cd8475af6f273455..5275f657efe8d4c6a921c6fe58d07e4c6c899a8a 100644 (file)
@@ -3,13 +3,7 @@
 #\r
 #  Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.<BR>\r
 #\r
-#  This program and the accompanying materials\r
-#  are licensed and made available under the terms and conditions of the BSD License\r
-#  which accompanies this distribution.  The full text of the license may be found at\r
-#  http://opensource.org/licenses/bsd-license.php\r
-#\r
-#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 #\r
 \r
 ifndef HOST_ARCH\r
@@ -27,10 +21,17 @@ ifndef HOST_ARCH
   endif\r
   ifneq (,$(findstring aarch64,$(uname_m)))\r
     HOST_ARCH=AARCH64\r
-  endif\r
-  ifneq (,$(findstring arm,$(uname_m)))\r
+  else ifneq (,$(findstring arm64,$(uname_m)))\r
+    HOST_ARCH=AARCH64\r
+  else ifneq (,$(findstring arm,$(uname_m)))\r
     HOST_ARCH=ARM\r
   endif\r
+  ifneq (,$(findstring riscv64,$(uname_m)))\r
+    HOST_ARCH=RISCV64\r
+  endif\r
+  ifneq (,$(findstring loongarch64,$(uname_m)))\r
+    HOST_ARCH=LOONGARCH64\r
+  endif\r
   ifndef HOST_ARCH\r
     $(info Could not detected HOST_ARCH from uname results)\r
     $(error HOST_ARCH is not defined!)\r
@@ -49,22 +50,16 @@ all: makerootdir subdirs
 \r
 LIBRARIES = Common\r
 VFRAUTOGEN = VfrCompile/VfrLexer.h\r
-# NON_BUILDABLE_APPLICATIONS = GenBootSector BootSectImage\r
 APPLICATIONS = \\r
   BrotliCompress \\r
   VfrCompile \\r
-  GnuGenBootSector \\r
-  BootSectImage \\r
-  EfiLdrImage \\r
   EfiRom \\r
   GenFfs \\r
   GenFv \\r
   GenFw \\r
-  GenPage \\r
   GenSec \\r
   GenCrc32 \\r
   LzmaCompress \\r
-  Split \\r
   TianoCompress \\r
   VolInfo \\r
   DevicePath\r
@@ -87,7 +82,7 @@ $(SUBDIRS):
 $(patsubst %,%-clean,$(sort $(SUBDIRS))):\r
        -$(MAKE) -C $(@:-clean=) clean\r
 \r
-$(VFRAUTOGEN): VfrCompile/VfrSyntax.g \r
+$(VFRAUTOGEN): VfrCompile/VfrSyntax.g\r
        $(MAKE) -C VfrCompile VfrLexer.h\r
 \r
 clean:  $(patsubst %,%-clean,$(sort $(SUBDIRS)))\r