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 3373CC43334 for ; Fri, 10 Jun 2022 12:33:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD7DC84335; Fri, 10 Jun 2022 14:33:56 +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="Ef0E7dc2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E8B00843F2; Fri, 10 Jun 2022 14:33:54 +0200 (CEST) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (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 316D18432E for ; Fri, 10 Jun 2022 14:33: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=1654864431; bh=HQ+3XyAVxkLxFbmL20E+v/xZwbsq8IPnpdMrJiXrG+k=; h=X-UI-Sender-Class:Date:Subject:To:References:From:Cc:In-Reply-To; b=Ef0E7dc2oLNo4DO81C3vbXNv28Lnc+HRW9KXv3YnmPzHLHWLD5SyBi1YIZSoZwZd5 pYvF7Efc1nSlLol3g2ftBz59Zdawd2WcxLQ5zFzFLaU6x79ynh9NkbRsiwTCTkGMeJ oNM61DnJ0EA8kJzIlIxK/zMnF98u4tguV5XlY08o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.123.67] ([62.143.94.109]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MNt0M-1oNsox0Z3I-00OGQD; Fri, 10 Jun 2022 14:33:51 +0200 Message-ID: <7ce79abe-ef49-fa58-fb9a-e846e7537773@gmx.de> Date: Fri, 10 Jun 2022 14:33:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Reproducibility issue due to use of uname Content-Language: en-US To: Vagrant Cascadian References: <87ilp9om73.fsf@contorta> From: Heinrich Schuchardt Cc: u-boot@lists.denx.de, AKASHI Takahiro , Masahisa Kojima , Vagrant Cascadian In-Reply-To: <87ilp9om73.fsf@contorta> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:1blwc5gb3R2sY9Qdfj04ierea07+d5gOPWH0Omrlm1sFXw4RuCy Vwq32durN4sN4uJbzG0GclXP/b7WlkCe/zUxWD6c7BYxcHvTvSU3z6TWQJg0E0W0maF347E HWHjZ28B4m8vaKG3HDPzDS+Mcrrnojjez5bhy229x9vvsYx47PKLaSUJkJ9+LmadOJshPu7 IhPFHN+X2DEtPevTcCiZA== X-UI-Out-Filterresults: notjunk:1;V03:K0:HC+JHP1OsMQ=:2hY7NLm5lvD93f8fdNB78o VNhKGg6jEOL76V5A6yv8+l3NAIVYZFbfRZ6ruEAUUaWekVrfSdjYoKvfFHL0+zFBZM1Q3VswA 9cHZTmEG7kUuBsp5uZqyUuawjNpM7InmZwtk6zeO+m2UIrgJy6lfYXwuS642uYH+IzpqCEzkt UH2cgueDbOGe+rLDGQccQpY+GPk5248Hkoq6AkJA51HQMCDz77xX4vgKv4229RZOoQeE/uq/m EUTRuyxfquOmUCKnvjmMw2YGuvX9hpTEi0AkqE7bQgQz0o0s7YSDwiLVAi1fpFgIaEIrTGu2T WWvXtqMkeXtkYhzRw/TrfWR71EbSLH0zaEHjKG3aMtBrKc/IIEqcAHnYr/auXx5RK5g1jxEEN BLhQhfMJJPUDezFxAkchK9ajyadQfErzOYh0qT7wL76AZZIC0erLfh1txv6FghYoUY1Nf2acY wAd3+AYxokJ328DG6tTKrA3USoj9Nb7IUZtXBv+7skIhgQdifIs0dVNunxacmYJpHTGoHMJCl 7jKO3q9KcYpj8wO8D9QspRqaReI5iYaOWUWbmy/26Oz2gtGvgw2Cbg+Y40BK7nCtccIQ6PMmv qDE5WfdBEu8b0gMNWTcYw03n6MTl76N1ATCYYZChOGY3BC6Jrx1NauIByVE2W5sabXLX/WhvA Klnygo4Yvg8HncmhLg6I4bDUpopLBPYXWqFew5iA9Qw+GxknEiQcHbVsyFg6/vj35/QSADbxG htWSsy8Si2HKD0RdGa1smpS2lX68QYUnmxyCUjnjQQtNKN113iV9sXbwIpeC00n1DCqG4sA8Q B4jPOHEhNHZSWIZ2xoU+P1YvL5e/NAJs/POlY2n54CY7tJ6EKCPJeNaM/bV60xmUY6/B5nqCo J0qiOujoKk+se4e61fKEGTORpcUFDfuP74Hc+4A5NymjVb4OoQ+RFDr/7IDRu707DwNfaRw3c PxgfDNbPDFbBYsbtPmWQP2JJeyqEZSsdq3yoVuUKUB0OT+oXgQ5SXMQv0uad40I/BVzv1Tou4 pOpju/EJfzFlKavJR3iYPaUMpKBCfaYiEvfHovsdzjVOLLTy252R6b5p2AWLhZWn0SiTqWR+i 3dAkb+jpdIL3G6yk6pa8qE/t4/j/PYslNCOi2m0YDvsFCA2Jb45gSdX/w== 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.5 at phobos.denx.de X-Virus-Status: Clean On 6/9/22 18:06, Vagrant Cascadian wrote: > It looks like u-boot 2022.07-rc1 introduced a reproducibility issue that > is dependent on the running kernel. > > I believe the commit that triggered this issue is: > > f7691a6d736bec7915c227ac14076f9993a27367 sandbox: allow cross-compili= ng sandbox Thanks for reporting the issue. Said patch does not change the value of MK_ARCH for CROSS_COMPILE=3D"". So this is not the relevant patch. > > While the use of uname in the Makefile goes back well before this > commit, previously it had no apparent effect on the builds... > > When building natively (e.g. CROSS_COMPILE is not set) with a 32-bit > userland toolchain, but running a 64-bit kernel, 32-bit arm targets end = up > with BOOTAA64.EFI embedded in the binaries: > > https://tests.reproducible-builds.org/debian/rb-pkg/experimental/armh= f/diffoscope-results/u-boot.html The EFI boot manager can boot according to boot options define as UEFI variables BOOTxxxx. We recently introduced support for booting via these variables if they only point to a block device without a filename. In this case we need to provide the name of the EFI binary. Only for the sandbox this should depend on host architecture. I need to correct include/efi_default_filename.h to only use variable HOST_ARCH for the sandbox. Best regards Heinrich > > /EFI/BOOT/BOOTARM.EFI > vs. > /EFI/BOOT/BOOTAA64.EFI > > > live well, > vagrant