Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3413453imu; Fri, 18 Jan 2019 09:56:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN5Yn3j+Xx/UBXiywt16CKV+8dosGGzT96HNmNKmX9lif8wqxUDOaLQaTo520n2QAxxL7YWZ X-Received: by 2002:a17:902:45:: with SMTP id 63mr19390791pla.272.1547834211020; Fri, 18 Jan 2019 09:56:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547834210; cv=none; d=google.com; s=arc-20160816; b=cLZxR1WRrPsP97uRO+D95xV6XNoMpGCypjqF0eYc4NZex+FMhc3xxtnKDOGnDfhTnL /ngRxBn2irm+1pxJuneyKS4bD2/NCGdvWxtEtJFaFg9grmTsRcFwtku1ENG2mLmZIYxo EJwRCjHqVbolk6jJzrvXqjQ1FJQHgEjcRPVdMar1h6rFG6w6D34uRXvraevXRxE/egPG Hpt8FLdVqVyP+MzhyFEv9cac+PPXmrBIa5YuOH4m/ZVkmdBN0AanfYxGs6QMGo/cMEWF Of37C80In2mLbOctXilC1vyot/6tiNdocdmkOXr3pGid4gHqrg37TKp4SmscMYOKI7Wm Ejyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ot36uq83wa0Y1fXewOHgIXxhyvpclDCNh+C0slktdko=; b=X34+P2RvlY4JVij/ijnMGZ6yUNrDOqpkQPX99pecf1gUVs5MX5hzxJj4nZF1ITB5F0 YotHieGR35hrzX9/agz/NLptOtIiAnXYT2wUTpOz4xcP35vD6XriSZIyct6Go+RCt7Va KctAmYLP1mLzrTKxK1R1ECkRKKk7ZiRk+buK4bFBKB6c4ao9Htg10Yt9tejLmQtbvzqS TZiMFyWDfL1PlA7GY2LSCct4sYLAS9YjlsKpjecHkQKLhJA0qV17A+57GrpbrR/we0RY kHcpdMc9MhKXJMqxMOnV8QlBbdD8rMkjTtLsylkJOJCRxAq+KiIjA9KEMFc0jY5GY9/X hO1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=H5Efix4a; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o10si5033466pls.76.2019.01.18.09.56.35; Fri, 18 Jan 2019 09:56:50 -0800 (PST) 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 header.s=google header.b=H5Efix4a; 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 S1728678AbfARRyV (ORCPT + 99 others); Fri, 18 Jan 2019 12:54:21 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:36136 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728721AbfARRyV (ORCPT ); Fri, 18 Jan 2019 12:54:21 -0500 Received: by mail-lf1-f66.google.com with SMTP id a16so11108456lfg.3 for ; Fri, 18 Jan 2019 09:54:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ot36uq83wa0Y1fXewOHgIXxhyvpclDCNh+C0slktdko=; b=H5Efix4aOiYZ2WH4X3bqI5306kcx0Ab8InNNyVE+aDzQR+TCCQLtYMUXFD5tFrDfKD afnlPpgv9eO8RdPo+BdW5zRSMhcy4nslnzHjvkwHrABE/ODHJJoO0fgoQi138vcsq4V4 RFHcZbhD3575Rq2OpiNR4EoWGw9dpEG52dcSA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ot36uq83wa0Y1fXewOHgIXxhyvpclDCNh+C0slktdko=; b=YattpF4WvnVmJiapRfLp+n8ozZKNTZaYyUvj0Birbdx3ikSWZaKDVAwJkizaB57waV U9BebMnw+iqephrItOSaaVT0XbZuzkXO7Pw9veyI7PByHGiE3wXoIECFkAR00MNEpvcy Fm+iT+b9FMz8dN3RS9pl2aF+pePbLEEy/+qrnwujQxmRgY8nC5uG6y0ojrCMkXYq8EVK gDkiwTAISwjOG7UCHxU4A6ChFxWl4uxDI5PMUr1mw4aGXfV8rrejUrDxFoSActjsR2ym KD94gj7plDjUeSuMfN6oIUC1crSMka4GuJmtB3OwZLivACjASE8aPotpHEzpweN6eNRm VWcQ== X-Gm-Message-State: AJcUuke8iU3Mj3VdvKZ2kXl64w3plFtMgC82cBNzu5cB+xfCEAov+vqW 6Pax47x+JYk9zb3JJZAoKp5b2zSE6SvL9rJBA8Rpyg== X-Received: by 2002:a19:c954:: with SMTP id z81mr12897609lff.150.1547834058764; Fri, 18 Jan 2019 09:54:18 -0800 (PST) MIME-Version: 1.0 References: <20190116174320.14938-1-daniel.diaz@linaro.org> <7d75f420-d624-d53d-4fa1-3827c90fa608@kernel.org> In-Reply-To: <7d75f420-d624-d53d-4fa1-3827c90fa608@kernel.org> From: =?UTF-8?B?RGFuaWVsIETDrWF6?= Date: Fri, 18 Jan 2019 11:54:06 -0600 Message-ID: Subject: Re: [PATCH 1/4] selftests: lib: allow to override CC in the top-level Makefile To: shuah Cc: Fathi Boudra , Denys Dmytriyenko , "open list:KERNEL SELFTEST FRAMEWORK" , open list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! On Wed, 16 Jan 2019 at 15:56, shuah wrote: > > On 1/16/19 10:43 AM, Daniel D=C3=ADaz wrote: > > From: Fathi Boudra > > > > Relax CC assignment to allow to override CC in the top-level Makefile. > > > > Signed-off-by: Denys Dmytriyenko > > --- > > tools/testing/selftests/lib.mk | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/l= ib.mk > > index 8b0f16409ed7..0f9c47eaaa6f 100644 > > --- a/tools/testing/selftests/lib.mk > > +++ b/tools/testing/selftests/lib.mk > > @@ -1,6 +1,6 @@ > > # This mimics the top-level Makefile. We do it explicitly here so tha= t this > > # Makefile can operate with or without the kbuild infrastructure. > > -CC :=3D $(CROSS_COMPILE)gcc > > +CC ?=3D $(CROSS_COMPILE)gcc > > > > ifeq (0,$(MAKELEVEL)) > > OUTPUT :=3D $(shell pwd) > > > > What problem does this fix? Sometimes "$(CROSS_COMPILE)gcc" is not enough: For instance, we need to pass --sysroot to CC: CC=3D"aarch64-linaro-linux-gcc --sysroot=3D/oe/build/tmp-lkft-glibc/work/hikey-linaro-linux/kselftests-mai= nline/4.19-r0/recipe-sysroot" Greetings! Daniel D=C3=ADaz daniel.diaz@linaro.org