From mboxrd@z Thu Jan 1 00:00:00 1970 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 174BCC4332F for ; Sat, 15 Oct 2022 05:05:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0F7CF84D5A; Sat, 15 Oct 2022 07:05:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmx.de 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; secure) header.d=gmx.net header.i=@gmx.net header.b="FaxA1NiX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3016D84DFC; Sat, 15 Oct 2022 07:05:55 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8EE3D84C02 for ; Sat, 15 Oct 2022 07:05:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=xypron.glpk@gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1665810341; bh=+VHJ5rC4QOpeBXpPOREgJV4/w588xaHY6x01jbv6pU0=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=FaxA1NiX3in9JxzzdGYI5462S4YvvcW3i8qVg/t0oJLHd/2vyPxBaD2sAfdFJqtbJ qSCQmpMxRgPISEzk2hAFkRvdBnC4LNx2R/ML2hJXKKvSweeGhkqKNyUxcQ5jCrCAXB zVb0bU1FFDpPwHhafrzcj26BNgY+LYP2yYx+AwmI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.94] ([84.118.157.2]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MrQEn-1pWrwY2qf9-00oZzn; Sat, 15 Oct 2022 07:05:41 +0200 Message-ID: Date: Sat, 15 Oct 2022 07:05:39 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH] tests: Build correct sandbox configuration on 32bit Content-Language: en-US To: Simon Glass Cc: u-boot@lists.denx.de, AKASHI Takahiro , Heiko Thiery , =?UTF-8?Q?Marek_Beh=c3=ban?= , =?UTF-8?Q?Pali_Roh=c3=a1r?= , Quentin Schulz , Samuel Holland , Stefan Roese , Weijie Gao , Michal Suchanek References: <20221013202855.13904-1-msuchanek@suse.de> From: Heinrich Schuchardt In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:0mwWf0W/lNMIOD0T4K0pmKO7C/6dI0V3Au4k+/jAAcThazmq1rQ VKY6JfVEyHk2MHDRlSvH5ROPC9cEmZUInQ1w3Osd9SXKG2gAF0yVbI8URZz2VMq15Qk/7he LhVQ4/Ucktk24TASXazNYfLTp0z+CHQLe3t6rNWg2bi7QrcXLUDayDvEy87vIKTRTxb09uV fkWpGeIWzO1MX04OnfF/g== X-UI-Out-Filterresults: notjunk:1;V03:K0:TMlFebVlKE8=:ziJ78p4r1miwU642inmgrZ EBckRs158LjwgA0b6BB3l7nQvThmgcLNqEHlHT04MKl7TGsw6IclpXhIbf0mVmRyY/CJk6AN1 vBxvh3oME5M6ZcOAxzUSZTMiwXZi/i0OczNYjaDhuHTKycEt0iBOcoHBbQ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PeiZ6sglj4XMqj0Ei16EW/+/mCkffQ0IOCpZ0 MzvDAuJ+htHcHdL29j8tvegGoCtmkXEG5N4bdqLwPbC51VsoN0iowJjZVd2mJdkAYy8XGDx6s ZrEJ8AgBU5kHMorl1+wls3uNv4DxGOsm19MwwXJhYLtvBvwAkZH0qywlnCTsh9I6sjZa3hhtV oPecut8qHRLY0pslrJYD4hciErY9Y1ULZJS2XFAZ6rc8lS4ylfPeWaO7AJDj5+ewo0qN0tmEY HVuHlL84JIhiyOsFVW6uvJBCLnJ13lxQSN2UeoYkXd9OdjFrggqFRAFNAx8LIczRRauvDW/QP DLGiFkT5wnfYu4ahEdXUI69u9HE6BzjKEQ9JNL0QMbD0w X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean On 10/14/22 17:56, Simon Glass wrote: > Hi Michal, > > On Thu, 13 Oct 2022 at 14:29, Michal Suchanek wrote: >> >> Currently sandbox configuration defautls to 64bit and there is no >> automation for building 32bit sandbox on 32bit hosts. >> >> cpp does not know about target specification, code needs to be compiled >> to determine integer width. >> >> Add a test program that prints the integer width, and a make target tha= t >> aligns the sandbox configuration with the result. >> >> Signed-off-by: Michal Suchanek >> --- >> >> Makefile | 6 ++++++ >> doc/arch/sandbox.rst | 16 +++++++++++----- >> test/py/conftest.py | 1 + >> tools/Makefile | 2 ++ >> tools/bits-per-long.c | 14 ++++++++++++++ >> 5 files changed, 34 insertions(+), 5 deletions(-) >> create mode 100644 tools/bits-per-long.c > > This needs to be automatic, so that it builds the 32-bit version on > 32-bit hosts, 64-bit version on 64-bit hosts. We should be able to test the following: * 64bit phys_addr_t on ilp32. * 32bit phys_addr_t on ilp32. * 64bit phys_addr_t on lp64. Gitlab CI currently tests: * 64bit phys_addr_t on lp64. * 32bit phys_addr_t on lp64. Best regards Heinrich > > See here for my attempt. I suspect it just needs your bits_per_long > thing brought in, but in any case I hope it gives you inspiration. > > https://patchwork.ozlabs.org/project/uboot/patch/20220123195514.3152022-= 4-sjg@chromium.org/ > > Basically we should be able to build sandbox on any platform and it > should just work, without manual configuration. > > Regards, > Simon