From patchwork Wed Mar 22 18:04:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fathi Boudra X-Patchwork-Id: 95810 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp331103obz; Wed, 22 Mar 2017 11:05:27 -0700 (PDT) X-Received: by 10.98.93.90 with SMTP id r87mr46868478pfb.226.1490205927677; Wed, 22 Mar 2017 11:05:27 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t125si2652397pgb.81.2017.03.22.11.05.27; Wed, 22 Mar 2017 11:05:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965405AbdCVSFX (ORCPT + 11 others); Wed, 22 Mar 2017 14:05:23 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:36292 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934813AbdCVSFN (ORCPT ); Wed, 22 Mar 2017 14:05:13 -0400 Received: by mail-wm0-f42.google.com with SMTP id n11so43766429wma.1 for ; Wed, 22 Mar 2017 11:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=rVd5AGI3H25DhFhQZRrJX9okAxsvR6RLkqIXrx1EIEk=; b=GGMzej2sWrn0MxMCFOf64ghKKpd+pJnJxCMsENq3Pf1kW98c/M+3ozsXw9Cxwle9dk rWMNKEzM+aSc6uLN1GCo4vwdfN6vzNUezFYEKXN6OXR8go+FBgtKWGLc295y3iuWhI+b gJs7Mk2RqUECa4GoicLrzV//+xooNXHJJrzjI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=rVd5AGI3H25DhFhQZRrJX9okAxsvR6RLkqIXrx1EIEk=; b=g8tJWO35Z5NZc1xY8IltCYU94V3upCSHL69gaG7gMef0dGwmSOg7BLKGe4ItUOlbRL WZeZkAu09yCp3m39zL0cEIOIaaeWMOuYgk6T/gy2bZ/5/YAxoJiRLjkOMamrnS8UsOy9 ZGmAjpEKtPcP24xsJ8ksRiRvYrMHQqP006aLB2eKgJKyBEfg5djEGbOSxa27zxGBJMUX 42fVJXf1jVrQLIP4IgYP1HHxsePeP6xhmRLSpa2Jb/OL9ktL6zzybhTGx8RgLOLLJBnQ ysyKpP3BahM2mQb4Xe1/n0kU+4K44a3YU8v1kywioeTQ186ZphtvOP7Pm8Yro+u0e9WW jtrA== X-Gm-Message-State: AFeK/H2ZRj59pTUVyo3121G5MdqXqUuA9eE/HUZkksCCp56TcKWFYPQIOyW1/xUdqEEPYR9O X-Received: by 10.25.115.19 with SMTP id o19mr1510407lfc.162.1490205911704; Wed, 22 Mar 2017 11:05:11 -0700 (PDT) Received: from localhost.localdomain (a91-156-68-16.elisa-laajakaista.fi. [91.156.68.16]) by smtp.gmail.com with ESMTPSA id t125sm629176lff.31.2017.03.22.11.05.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Mar 2017 11:05:10 -0700 (PDT) From: Fathi Boudra To: linux-kselftest@vger.kernel.org, Shuah Khan Cc: linux-kernel@vger.kernel.org, Pratyush Anand , Fathi Boudra Subject: [PATCH 1/1] selftests: breakpoints: allow to cross-compile for aarch64/arm64 Date: Wed, 22 Mar 2017 20:04:58 +0200 Message-Id: <20170322180458.15567-1-fathi.boudra@linaro.org> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To build breakpoint_test_arm64, ARCH value is only tested for "aarch64". It covers only the native build because it's computed from uname -m output. For cross-compilation, ARCH is set to arm64 and prevent to cross-compile the test. Fix the test to allow both native and cross-compilation of the test. Note: glibc is missing several of the TRAP_* constants in the userspace definitions. Specifically TRAP_BRANCH and TRAP_HWBKPT. See https://sourceware.org/bugzilla/show_bug.cgi?id=21286 Signed-off-by: Fathi Boudra --- tools/testing/selftests/breakpoints/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.11.0 Tested-by: Naresh Kamboju diff --git a/tools/testing/selftests/breakpoints/Makefile b/tools/testing/selftests/breakpoints/Makefile index 72aa103e4141..6b214b7b10fb 100644 --- a/tools/testing/selftests/breakpoints/Makefile +++ b/tools/testing/selftests/breakpoints/Makefile @@ -5,7 +5,7 @@ ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/x86/ -e s/x86_64/x86/) ifeq ($(ARCH),x86) TEST_GEN_PROGS := breakpoint_test endif -ifeq ($(ARCH),aarch64) +ifneq (,$(filter $(ARCH),aarch64 arm64)) TEST_GEN_PROGS := breakpoint_test_arm64 endif