[source] perf: Disable perf for ARC770 only, enable for ARC HS38

LEDE Commits lede-commits at lists.infradead.org
Wed May 10 15:53:23 PDT 2017


jow pushed a commit to source.git, branch master:
https://git.lede-project.org/5dc76a4258f6f73a07b12deda73b3e5b085a7e54

commit 5dc76a4258f6f73a07b12deda73b3e5b085a7e54
Author: Alexey Brodkin <Alexey.Brodkin at synopsys.com>
AuthorDate: Wed May 3 11:46:19 2017 +0300

    perf: Disable perf for ARC770 only, enable for ARC HS38
    
    Toolchain built for ARCv1 (read for ARC700 cores) by default has
    disabled atomic ops (-mno-atomic). When we build Linux kernel for ARC770
    which has LL/SC instructions and thus may handle normally atomic ops we
    explicitly add "-matomic" in CFLAGS. But since user-space perf utility has
    no way to extract CPU config options from Kconfig/defconfig it uses
    compiler default settings.
    
    In case of ARCv2 (read ARC HS38) atomics are enabled by default and so
    perf builds perfectly fine thus reenabling perf for ARC HS38 (actually
    for non-ARC700 targets).
    
    Signed-off-by: Alexey Brodkin <Alexey.Brodkin at synopsys.com>
---
 package/devel/perf/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/devel/perf/Makefile b/package/devel/perf/Makefile
index 35f1719..361e422 100644
--- a/package/devel/perf/Makefile
+++ b/package/devel/perf/Makefile
@@ -26,7 +26,7 @@ include $(INCLUDE_DIR)/package.mk
 define Package/perf
   SECTION:=devel
   CATEGORY:=Development
-  DEPENDS:= +libelf1 +libdw +libpthread +librt +objdump @!LINUX_3_18 @!IN_SDK @!arc
+  DEPENDS:= +libelf1 +libdw +libpthread +librt +objdump @!LINUX_3_18 @!IN_SDK @!TARGET_arc770
   TITLE:=Linux performance monitoring tool
   VERSION:=$(LINUX_VERSION)-$(PKG_RELEASE)
   URL:=http://www.kernel.org



More information about the lede-commits mailing list