#\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
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
\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
$(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