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 AD5E4C433F5 for ; Sat, 29 Jan 2022 15:27:19 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA65D836A5; Sat, 29 Jan 2022 16:27:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="CLOjDmCg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 84C7A836A9; Sat, 29 Jan 2022 16:27:16 +0100 (CET) Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) (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 250CE83563 for ; Sat, 29 Jan 2022 16:27:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ej1-x632.google.com with SMTP id s5so26838490ejx.2 for ; Sat, 29 Jan 2022 07:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mnq3Zqf5yH3MS7GAATogqSqa/VIv/j+q45mwHRAHUyU=; b=CLOjDmCgFY9jI6UqunaT8DRDo4m1CEgqq3B+9AevvvlDvMbgczrCKA1zZlVO8iC49D ChdLFIJg2jy480rPIpOcH7mxpPD8xcPsf/cIVza0kWYD5BCF0+xlx/bfp6X8WcWzYxAB 1PZJm1QIppB6UZIRnZbwtehDbzNj3Yom7mmg5W+Imf23wgZ+R9OO5LCZ8eTSgVT48cBT FG2HSIunwY6SA0TKFrWccyo69a8t7bsgThpd01aPcwcFGFrk2IoyiWqe70SYBhedkqbJ uk20z8yD58vg8kllrhxSW3CMYFSuWuuwX3hcJ6xlibZMwtLapKLbFVuBktIkCXAhv/oV 3BNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mnq3Zqf5yH3MS7GAATogqSqa/VIv/j+q45mwHRAHUyU=; b=fzmZchqt73AWq2jKyZd20hEtNOhMaQr/hGYz/mkETsJ/DFjN0gWeWfF4AihM9n7G5J 6i9/Z4hhRAPlgJjmlXgKnAfQLzbd6kYeNowCOyJ7X7nTT0In5hiutwImajNJJ6KdDRko HnA2+R7msJeRPOQq/EREgvUePxvEC/gNGC3ruyIT587520nOM0uHls/bvewg3euS9qhr b1cziakcmVgyUPuDU2mxddxJLanWbLp5+v2P9N8c/vSPMsjd+JxKd960xTeIDpT+p/O8 qONVmeYzana7rE0cFSjMcb5q4w1y0pckHMx6Q+WGBpQ3vJ8NAJUn1QV7+yVgffMxTh3F ZSzw== X-Gm-Message-State: AOAM531MSwLZK9Mx/lChZpPthjwTv/XbLt6O2n8eV57pcMMmf5K7GMUK nhI6quGY8dNVLlRHE33vz7IlknNnaygclw== X-Google-Smtp-Source: ABdhPJxHprLu5XTp0CNi/9bwjTa2WJh+vtWpCzSSRehewUFf+9LrwluRQ2K8GSC5/q5mITQrvTLQQg== X-Received: by 2002:a17:907:3d88:: with SMTP id he8mr10932207ejc.621.1643470033703; Sat, 29 Jan 2022 07:27:13 -0800 (PST) Received: from localhost.localdomain ([178.233.26.119]) by smtp.gmail.com with ESMTPSA id jl17sm11391236ejc.13.2022.01.29.07.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jan 2022 07:27:13 -0800 (PST) From: Alper Nebi Yasak To: u-boot@lists.denx.de Cc: Stephen Warren , Marc Zyngier , Peter Hoyes , Mark Kettenis , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Tom Warren , Simon Glass , Alper Nebi Yasak Subject: [PATCH] armv8: spl: Fix build with LINUX_KERNEL_IMAGE_HEADER Date: Sat, 29 Jan 2022 18:27:03 +0300 Message-Id: <20220129152704.15771-1-alpernebiyasak@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Setting LINUX_KERNEL_IMAGE_HEADER=y attempts to include an ARM64 Linux kernel image header at the start of both U-Boot proper and SPL binaries. However, some definitions that the image header uses are not included by the SPL linker script, resulting in a build error. Include them the way they are included in U-Boot proper's linker script to fix the error. Signed-off-by: Alper Nebi Yasak --- I won't actually need this header in the SPL, but I need the build to succeed with SPL and this config both selected. I did test that booting bare-metal still works on my rk3399 chromebook_kevin with this. arch/arm/cpu/armv8/u-boot-spl.lds | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv8/u-boot-spl.lds b/arch/arm/cpu/armv8/u-boot-spl.lds index 9edb662b094a..730eb93dbc3b 100644 --- a/arch/arm/cpu/armv8/u-boot-spl.lds +++ b/arch/arm/cpu/armv8/u-boot-spl.lds @@ -84,4 +84,8 @@ SECTIONS /DISCARD/ : { *(.plt*) } /DISCARD/ : { *(.interp*) } /DISCARD/ : { *(.gnu*) } + +#ifdef CONFIG_LINUX_KERNEL_IMAGE_HEADER +#include "linux-kernel-image-header-vars.h" +#endif } -- 2.34.1