Skip to content

Commit c98c05d

Browse files
committed
linux: add -mcpu=hs4x_rel31 and CONFIG_ARC_IRQ_NO_AUTOSAVE=y
Signed-off-by: Evgeniy Didin <[email protected]>
1 parent 4b84b6b commit c98c05d

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_ARC_IRQ_NO_AUTOSAVE=y
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From f8e89083e9c45fb5ab4e01b99afe9c3be282d82c Mon Sep 17 00:00:00 2001
2+
From: Evgeniy Didin <[email protected]>
3+
Date: Thu, 16 May 2019 18:13:15 +0300
4+
Subject: [PATCH] Change mcpu option for axs103 1.3 release
5+
6+
Signed-off-by: Evgeniy Didin <[email protected]>
7+
---
8+
arch/arc/Makefile | 2 +-
9+
1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+
diff --git a/arch/arc/Makefile b/arch/arc/Makefile
12+
index 16e6cc22e25c..e142556e4f6b 100644
13+
--- a/arch/arc/Makefile
14+
+++ b/arch/arc/Makefile
15+
@@ -10,7 +10,7 @@ KBUILD_DEFCONFIG := nsim_hs_defconfig
16+
17+
cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
18+
cflags-$(CONFIG_ISA_ARCOMPACT) += -mA7
19+
-cflags-$(CONFIG_ISA_ARCV2) += -mcpu=hs38
20+
+cflags-$(CONFIG_ISA_ARCV2) += -mcpu=hs4x_rel31
21+
22+
ifdef CONFIG_ARC_CURR_IN_REG
23+
# For a global register defintion, make sure it gets passed to every file
24+
--
25+
2.16.2
26+

configs/snps_archs38_axs103_defconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
1818
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="4.19.36"
1919
BR2_LINUX_KERNEL_DEFCONFIG="axs103_smp"
2020
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
21+
BR2_LINUX_KERNEL_PATCH="board/synopsys/axs10x/linux_patches"
22+
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/synopsys/axs10x/linux.fragment"
2123

2224

2325
# Bootloader

0 commit comments

Comments
 (0)