Unverified Commit 827f12dd authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!477 tools: fix compile error introduced by LoongArch commit

Merge Pull Request from: @Hongchen_Zhang 
 
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/477

 

Reviewed-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parents b8dfd735 bbb3a0dc
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -24,20 +24,19 @@ HOSTCFLAGS_extract-cert.o = $(CRYPTO_CFLAGS)
HOSTLDLIBS_extract-cert = $(CRYPTO_LIBS)

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)
ARCH := x86
endif

# Additional ARCH settings for loongarch
ifeq ($(ARCH),loongarch64)
ARCH := loongarch
endif

HOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/$(ARCH)/include
HOSTCFLAGS_sorttable.o += -I$(srctree)/tools/arch/x86/include
HOSTCFLAGS_sorttable.o += -DUNWINDER_ORC_ENABLED
HOSTLDLIBS_sorttable = -lpthread
endif
endif

# The following programs are only built on demand
hostprogs += unifdef