“976d35af650f2c275aaf8d6f18656655e87bcff4”上不存在“test/git@gitcode.net:openanolis/dragonwell8_jdk.git”
未验证 提交 abf06b87 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!491 [sync] PR-477: tools: fix compile error introduced by LoongArch commit

Merge Pull Request from: @openeuler-sync-bot 
 

Origin pull request: 
https://gitee.com/openeuler/kernel/pulls/477 
 
when compile x86_64 using make ARCH=x86_64,error occurred,the reason is
ARCH is a command-line argument.So split loongarch architecture from others. 
 
Link:https://gitee.com/openeuler/kernel/pulls/491 

Reviewed-by: Jialin Zhang <zhangjialin11@huawei.com> 
Signed-off-by: Jialin Zhang <zhangjialin11@huawei.com> 
...@@ -24,20 +24,19 @@ HOSTCFLAGS_extract-cert.o = $(CRYPTO_CFLAGS) ...@@ -24,20 +24,19 @@ HOSTCFLAGS_extract-cert.o = $(CRYPTO_CFLAGS)
HOSTLDLIBS_extract-cert = $(CRYPTO_LIBS) HOSTLDLIBS_extract-cert = $(CRYPTO_LIBS)
ifdef CONFIG_UNWINDER_ORC ifdef CONFIG_UNWINDER_ORC
# Additional ARCH settings for x86 ifneq ($(filter loongarch loongarch64, $(ARCH)),)
HOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/loongarch/include
HOSTCFLAGS_sorttable.o += -DUNWINDER_ORC_ENABLED
HOSTLDLIBS_sorttable = -lpthread
else
ifeq ($(ARCH),x86_64) ifeq ($(ARCH),x86_64)
ARCH := x86 ARCH := x86
endif endif
HOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/x86/include
# Additional ARCH settings for loongarch
ifeq ($(ARCH),loongarch64)
ARCH := loongarch
endif
HOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/$(ARCH)/include
HOSTCFLAGS_sorttable.o += -DUNWINDER_ORC_ENABLED HOSTCFLAGS_sorttable.o += -DUNWINDER_ORC_ENABLED
HOSTLDLIBS_sorttable = -lpthread HOSTLDLIBS_sorttable = -lpthread
endif endif
endif
# The following programs are only built on demand # The following programs are only built on demand
hostprogs += unifdef hostprogs += unifdef
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册