Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4990CC43217 for ; Tue, 30 Nov 2021 19:07:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B8C538308A; Tue, 30 Nov 2021 20:06:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="XTiBC81X"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 643AF83095; Tue, 30 Nov 2021 20:06:55 +0100 (CET) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2873480735 for ; Tue, 30 Nov 2021 20:06:52 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x729.google.com with SMTP id q64so28002681qkd.5 for ; Tue, 30 Nov 2021 11:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=x/yj/8ZTwbae33GPNIV55xkeIJmT5+rduYXAN9KXjP8=; b=XTiBC81XH8hJe9/9FMo9MtTXB1eRq0t8phWilJbfsPlLcMFjNHnnCuJhnxvFHt8OiB MFvqSPMvkl1deXxU22YaHYGdM0Pw8X5nDWYq/HcxEDrwv2Q6a1oQgoVOnU+bbvBIABq9 kuhc3VK5+G4VrYwY/l03+2pWRDEXXJheZRzbQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=x/yj/8ZTwbae33GPNIV55xkeIJmT5+rduYXAN9KXjP8=; b=AquR3PFl4f2u0avbK1UPgVaGaMkewLqYzvlQnAQYO/l6xh3pQMcq68KrA2sun244lk 45h6M7pO9GXY38uLe/Pk0ZmISOiI7ReasqrUThwljVnjpL6ozjnkak1XopTLLWs19S6m 5lil3KmD8WRtDS8eebRLt5KgSF8UJW42ga0POrglpOB7H6/KIVRMiks5zQEBAjYzxc5z wKwcZTe3jyJd3IcBsZZrIC1M7/vnYxUG/hI4Ctqp6oFF9UCbvFDg2YL4gvltn78qM2+4 zQguxrMvPPd3JHOcPmVv60FVD32QFBkayCp9JM4yk81YuMVn3i/BJi7R7evb4oa1f/JV adEw== X-Gm-Message-State: AOAM5323XtYDdo0qtHEuDDN558pktPGv5X+u/84qRwykzrOO6SBgzVKf eEc27RyNgkbUDou4c3mTAYL4HQ== X-Google-Smtp-Source: ABdhPJy5hZYUT4ZLNMwwYVEOc7D/ByBCLepVQkw+p+iCmV6p1nec94B6b21BYNMOXNiXoddQyPcUjw== X-Received: by 2002:a37:8845:: with SMTP id k66mr1393479qkd.664.1638299210905; Tue, 30 Nov 2021 11:06:50 -0800 (PST) Received: from bill-the-cat (2603-6081-7b01-cbda-e478-4cc2-fb2f-8620.res6.spectrum.com. [2603:6081:7b01:cbda:e478:4cc2:fb2f:8620]) by smtp.gmail.com with ESMTPSA id a15sm11007960qtb.5.2021.11.30.11.06.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 11:06:50 -0800 (PST) Date: Tue, 30 Nov 2021 14:06:48 -0500 From: Tom Rini To: Andy Shevchenko Cc: Andy Shevchenko , U-Boot Mailing List , Simon Glass Subject: Re: [PATCH v1 1/1] binman: Do not pollute source tree when build with `make O=...` Message-ID: <20211130190648.GK24579@bill-the-cat> References: <20211130184204.61707-1-andriy.shevchenko@linux.intel.com> <20211130185225.GJ24579@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wQrDgYoyB0DeYXAF" Content-Disposition: inline In-Reply-To: X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --wQrDgYoyB0DeYXAF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 30, 2021 at 08:58:25PM +0200, Andy Shevchenko wrote: > On Tue, Nov 30, 2021 at 8:52 PM Tom Rini wrote: > > On Tue, Nov 30, 2021 at 09:42:04PM +0300, Andy Shevchenko wrote: >=20 > > > +# > > > +# Do not pollute source tree with cache files: > > > +# https://stackoverflow.com/a/60024195/2511795 > > > +# https://bugs.python.org/issue33499 > > > +# > > > +sys.pycache_prefix =3D os.path.relpath(os.path.dirname(sys.argv[0]),= os.environ['srctree']) > > > + > > > # Bring in the patman and dtoc libraries (but don't override the fir= st path > > > # in PYTHONPATH) > > > our_path =3D os.path.dirname(os.path.realpath(__file__)) > > > > Do we need some wrapper around this so it doesn't blow up on older than > > Python 3.8? >=20 > Why does it blow? Some global variables which won't be used by older vers= ions. Does it? I don't know, I wasn't clear enough, sorry. What happens on an older python here? Silent ignore is fine. --=20 Tom --wQrDgYoyB0DeYXAF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmGmdj4ACgkQFHw5/5Y0 tyz1QAv/TLAuAuXRN6o27KE/ZdHgUeGh7S1muBAz9Wl153elg41QYxZ+UTuSUSpC 76LU6ewYp+oNbeUYnV4I+DlKyNkh9C/Dn49DbdZEDMEt8pjWrX2kE2QPTHSZMRCL H+HdTz+Eqay/ZI/TCnnUU3ytKpfGseddqvkjFx+KxeMzkOlAW+PHNS/+ek+E2Xkd kYulzYd0pWhnZn3Nezv8d2o1ZTJAlAhuJvBbYMPDTS1V5YKbSjIPd7Aj8eULXslO nAKdlpQ0m8Zr1n1ciewDtmbuAjX9ixdcmhf0X4thzVKr+yCYGLKHdwI9yhNEFuU1 E+wpgX7BHSHCxSINI9SAYbvIvFAv9PCDDjlQXuusN8YOSd6cQvO0A4QH6kXJ2BaY 1l9osc2aUFCX+hH85yilU5ViEjq/ieNiVBKPnKKEcXWGLSLuw8VWkoXEGELB1lTB jXfBUKT8YTDLOz/3UnHjz3jb/ivFzRpuuPbBXJcl+PgWZdkuIeG0xQ88Aj103m8g CZPclt3M =qZCA -----END PGP SIGNATURE----- --wQrDgYoyB0DeYXAF--