Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp5996567rwb; Tue, 9 Aug 2022 07:32:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR7AGgDGs2twgWcTTHDmgWY/ZDJmGrJ7P0vEgavDlzcghvdH63Os4jrDZiz0UrOMvbxrIAga X-Received: by 2002:a65:6bd6:0:b0:39d:4f85:9ecf with SMTP id e22-20020a656bd6000000b0039d4f859ecfmr20131840pgw.336.1660055532450; Tue, 09 Aug 2022 07:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660055532; cv=none; d=google.com; s=arc-20160816; b=yavArxuPt/5Bc4SEuLAoPSqtqcTKAHUkoJrkB8vvUAAfdm8zWXGuhlfYUM9M5BQBPo N7WACGI3VGT8wfUJT7Fye5fUNEGG39dZLAvDFf0xmUQa5QZ9tD+dFCULcArfxvo8fR0F LWV+V5de9j/INiL9RSr0KHwi7gs2FB0Ta7u2AKYttqryN6Oix1attlmDy4VCXgSJyUlh pDt5awz0QRFw5+/J5KwKgFKbnIVX17JIEyq/trVIudZzs/tAj5KuF+tKxPtimaSgXlCr r7I3Whjf1ZeeeFldfK9/QnmJuDBv1lDf65jWiLLJj2bKQ4dLFRYGHpQYXgEjAfTbG3/p BTaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Babk06UaxACd87jp80gGVFSU5OMAU8XmI3ql4LcEt6M=; b=idUyVg4HsqZuUm5DOwwIvvtN3lQbt/bDh3HbZ0SDNpQmDKmDvpfqCsHnYrnc/AGMnG gXUA3O5pDEDaFuUgXEcMt013GATWlLpWzPwmv70YgnWF6z3rPBjhk9MOIRVI4/6UW11C 0ksK2xVdxw1WnvGQWY8Vc/9Pu80oEnQisMCm3HmUIDY2WlfBD+51MqFuOzyc1wcij+Zl rDUZ+p9lenIPenVeFAN/tPAAILj6MMsaA4ZT4yDIljG99yw3+Xm9kfpvX/yJeSFyHs14 wm2f/PdcOqgPac5nFsHz5zSBlo0yKt1TKUQMsdeB92G8LDPRwpETn/0STOcb9A0XHm1d 7pFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bM5jkN0f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c131-20020a633589000000b00411f9246bbasi9196331pga.484.2022.08.09.07.31.57; Tue, 09 Aug 2022 07:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=bM5jkN0f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243621AbiHIOWs (ORCPT + 99 others); Tue, 9 Aug 2022 10:22:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239490AbiHIOWr (ORCPT ); Tue, 9 Aug 2022 10:22:47 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B20AA12ACB; Tue, 9 Aug 2022 07:22:45 -0700 (PDT) Received: from localhost.localdomain (unknown [IPv6:2001:861:4a40:8620:d901:c525:a85f:2da3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: gtucker) by madras.collabora.co.uk (Postfix) with ESMTPSA id C02386601C58; Tue, 9 Aug 2022 15:22:43 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1660054964; bh=gSV06NTaRpUmL9YRF3a9un69uLMMf03b1tlnBMPp1P8=; h=From:To:Cc:Subject:Date:From; b=bM5jkN0fB5HfUfZrXt8kTjWBBcmk57uKV5TBx6hvTR7ifCrdnWSDvqjm5hI4VM1kM /bRDvA2+NapTqX/Tyl7RPTAy1h1RxUNbL7zLo6THhLZU25ru8Om1k60pBMlAXnKQng DHGZ5i41tTLOlJlrXYqScDHGB1/ZXmaJBHYf/pwr4KZ1dNaMpKBlGYciEcFQXY9Hyb GxHEKDEzYetTQrzuaXTsuNw1zPPGlV0IvbR3mkFc5sVtjAB4DFTM7GMLn+vtc+82ez CBCgkoh1tQjcYtMkNnQ0TZQSSr05E/6cwzLgi/pm2ibNbCD88M3vqUTEg6sTCbUifQ kV5AaTv1Zmfaw== From: Guillaume Tucker To: Shuah Khan , Nathan Chancellor , Nick Desaulniers , Tom Rix , Mark Brown Cc: kernel@collabora.com, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] selftests: fix LLVM build for i386 and x86_64 Date: Tue, 9 Aug 2022 16:22:31 +0200 Message-Id: <20220809142231.2419274-1-guillaume.tucker@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing cases for the i386 and x86_64 architectures when determining the LLVM target for building kselftest. Fixes: 795285ef2425 ("selftests: Fix clang cross compilation") Signed-off-by: Guillaume Tucker --- tools/testing/selftests/lib.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index b1c62914366b..cc4c443d5b14 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -10,12 +10,14 @@ endif CLANG_TARGET_FLAGS_arm := arm-linux-gnueabi CLANG_TARGET_FLAGS_arm64 := aarch64-linux-gnu CLANG_TARGET_FLAGS_hexagon := hexagon-linux-musl +CLANG_TARGET_FLAGS_i386 := i386-linux-gnu CLANG_TARGET_FLAGS_m68k := m68k-linux-gnu CLANG_TARGET_FLAGS_mips := mipsel-linux-gnu CLANG_TARGET_FLAGS_powerpc := powerpc64le-linux-gnu CLANG_TARGET_FLAGS_riscv := riscv64-linux-gnu CLANG_TARGET_FLAGS_s390 := s390x-linux-gnu CLANG_TARGET_FLAGS_x86 := x86_64-linux-gnu +CLANG_TARGET_FLAGS_x86_64 := x86_64-linux-gnu CLANG_TARGET_FLAGS := $(CLANG_TARGET_FLAGS_$(ARCH)) ifeq ($(CROSS_COMPILE),) -- 2.30.2