Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2507680lqb; Tue, 28 May 2024 01:52:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWU0r2RxKvj93H9xGkb012YHVniN8jSgmDl8gSJ6vk3Rr6wy2CJhOGnTots2mzXJ2osp302P+8G3NaPY9iltoYDqLa5dh6YOmmJrteaOg== X-Google-Smtp-Source: AGHT+IGqzskTC88lVw1nH/THaUddcR0dx65HnZZ9kwntJU/I7hu9k9icI8zk/rExgJ3vCFg9ZAO1 X-Received: by 2002:a05:6214:449a:b0:6ab:8949:4743 with SMTP id 6a1803df08f44-6abcd0ba080mr147836406d6.59.1716886378397; Tue, 28 May 2024 01:52:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716886378; cv=pass; d=google.com; s=arc-20160816; b=UwWho0yUX3bFlEHIDkK9qnjnGZjKIFRVZ8CyMLuuOkQXJjGD8vihzxSOgb2UX4z2du NReME4VwbxsxX18m7CsuR0++ufhNClkMzd8is7CGT/FuwgOx0gdGLBdZeRIiMXIZbB86 B0pH2cf384pcaubrMSTbtA4aTHiP99040VT5XDw0PUMNKIkLpNJmYwwKr1oBjF5mCOAG ZeIOUqLROGN1vSPxOFNwoPsltE8dfeFDE8WuF/yM6hhQ8JUHvJHjo7Z5B0/F1XBGrYc/ gCqn4zQIAIGRZWtAf0/rBuKk6JDI5LAx3/PYAOVAhMoh/ZtyzvdEVN04mplP1FzSlw8/ 1XGQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=7QzdCxzv8yGENpSozKsGJewDpr108WZzlNxA7fdNR/8=; fh=Ppyph+87xFgtdgBfC4Ik2BkL5hgUCLaMi5LUR9HJ1z0=; b=TpxNKGtbzVLJtWe2Z3zkYA5z1wABa4oBKkANKFy+DCxLp8gRB2ty5TywsjDHthE2z6 MFgAGflPUqfuLKOncKGtJPQTbQmsIUsFt4KdMw12kAukjcW5wQA5f+KujgQvD5WRDlDT p8hM/qpnl7QPYrYeJ+XLfYocGzoi/9aJqsfaH4HZ92ZdqTaEcKZz+W4iPrPaBHj4BjPK lUvQZZrm/kYLYOKWU8nDA4z4ba8UfG7NZqlzUs6ovvfYeSlALJvB/4AkBRJVTDNy+/mR w/h0ENUj+MUbPth/5cxyW/dZ2ehPnLPBkyvlmVT8+T2yAiDzDyOBdxIGkAZMsFX9R8LP 5z2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WzcO1dwb; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-191964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18b1a09si112846711cf.404.2024.05.28.01.52.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 01:52:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WzcO1dwb; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-191964-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1147B1C22184 for ; Tue, 28 May 2024 08:52:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E0D9474BE1; Tue, 28 May 2024 08:52:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="WzcO1dwb" Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA67C17579 for ; Tue, 28 May 2024 08:52:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716886359; cv=none; b=UqxsFQAq274Vd7b2eTWrt8oI+kXhjb0AMXPeuiBVxsN9SVdNGlwbnQGennZFoxPwFN20YWVwRUdw/vTOAOW1HM1qGe/jAyYR5dwc7MRbzknurGf5BZuYFZ1GAS9i7FfHmtzKIMTZmMq/k6hj3MpRSlBPSCuKmUkgQqDDWnyEy68= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716886359; c=relaxed/simple; bh=p5+92J4Yr91UbUFnVC7glb/EfmWV5LuV1TZqeUfRQoM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M1jRgsdkR77+h/6rsxtocWzRvvq+oTUdilWndsGjm6TXnFg6bEzOrzRNIMuPeo06GbnGaDaAA2IlIbTkkoSMvyckBrr21bE3lEOt5G6gZO3rYp21faGb8xnufXGB91QTO8jvIxJJ57VZHt7JrvHWPmC6hUh53v0UJ8SZp3w7kxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=WzcO1dwb; arc=none smtp.client-ip=209.85.215.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-6818e31e5baso477655a12.1 for ; Tue, 28 May 2024 01:52:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1716886357; x=1717491157; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7QzdCxzv8yGENpSozKsGJewDpr108WZzlNxA7fdNR/8=; b=WzcO1dwbj49kL/QSDXakWJQgp8dup6QSTfnISsCkqtfIt34EXD2hQosmsnf08pGmva A0lJL3TLkaZLWiyqbN25HpB/JqzYACqNg3SjjsEBLEZa93b+A9l00sLPodghN2AIDDFd 4cp1K0Reuju9TvZRwMeS3ulp1f+ELiy89OGhU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716886357; x=1717491157; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7QzdCxzv8yGENpSozKsGJewDpr108WZzlNxA7fdNR/8=; b=vkX5njaaj0OKogp4Tq04hq4dOhl1d+Ve+zZedVWIkM4B1M9LCA4nC0Ufi5rVgc5z0Y YT2YlaxXHsxWlsUT5wASHCUH2pUCLuixYXqRsucj8nalODPaHkaQ3h50UnNh9OZgY6He pT2FCb+GKLz9gsXPeCjZ+l5afLTYoWyajOggK0RR1zf7JCPk5J26pBuMYvwNt1R2/+Ck pknR5Crma21aaYujubrF3ArQmVLI9e5VqObQbSkdrG73MSwtlJLOlnJvtsh30dERNBPH IiVqqJrodWj20eZYaN8JnKGyc4P06Cfna+DpLvFRdXvzp9ZiYV1UG4fPlpiOWnT+ahKo nGoA== X-Forwarded-Encrypted: i=1; AJvYcCVWTn4rclkeRU4szToOuXMpJhtmPOv/77h6/vuaxL+oUzWi7JHPsCDcApHFTRCLVi9B1VDtlPmvN9NLbhZ/SYqHhZON8KsrEcTV84ZP X-Gm-Message-State: AOJu0YwOMt6GQLMYG2vdoir2BN9E4xEc9RpCb10ofdl+rC2qh06212Fe HkcXs6KNW26y8Rm76T1/GtlGTrKbAKbDh65cDxyLG8G8CoaQL8JVEZuSjK36Cw== X-Received: by 2002:a05:6a20:d42a:b0:1af:fa18:76f0 with SMTP id adf61e73a8af0-1b212e3c9fbmr10721136637.55.1716886357113; Tue, 28 May 2024 01:52:37 -0700 (PDT) Received: from wenstp920.tpe.corp.google.com ([2401:fa00:1:10:7a31:aea8:d44b:edb7]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f44c997d0dsm75119025ad.199.2024.05.28.01.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 01:52:36 -0700 (PDT) From: Chen-Yu Tsai To: Simon Glass , Masahiro Yamada , Nathan Chancellor , Nicolas Schier Cc: Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH v2] scripts/make_fit: Drop fdt image entry compatible string Date: Tue, 28 May 2024 16:52:18 +0800 Message-ID: <20240528085221.2989315-1-wenst@chromium.org> X-Mailer: git-send-email 2.45.1.288.g0e0cd299f1-goog Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit According to the FIT image source file format document found in U-boot [1] and the split-out FIT image specification [2], under "'/images' node" -> "Conditionally mandatory property", the "compatible" property is described as "compatible method for loading image", i.e., not the compatible string embedded in the FDT or used for matching. Drop the compatible string from the fdt image entry node. While at it also fix up a typo in the document section of output_dtb. [1] U-boot source "doc/usage/fit/source_file_format.rst", or on the website: https://docs.u-boot.org/en/latest/usage/fit/source_file_format.html [2] https://github.com/open-source-firmware/flat-image-tree/blob/main/source/chapter2-source-file-format.rst Fixes: 7a23b027ec17 ("arm64: boot: Support Flat Image Tree") Signed-off-by: Chen-Yu Tsai --- Changes since v1: - Add clear reference to U-boot docs along with excerpt - Send separately from "disable compression for DTBs" patch scripts/make_fit.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/make_fit.py b/scripts/make_fit.py index 3de90c5a094b..263147df80a4 100755 --- a/scripts/make_fit.py +++ b/scripts/make_fit.py @@ -190,7 +190,7 @@ def output_dtb(fsw, seq, fname, arch, compress): Args: fsw (libfdt.FdtSw): Object to use for writing seq (int): Sequence number (1 for first) - fmame (str): Filename containing the DTB + fname (str): Filename containing the DTB arch: FIT architecture, e.g. 'arm64' compress (str): Compressed algorithm, e.g. 'gzip' @@ -211,7 +211,6 @@ def output_dtb(fsw, seq, fname, arch, compress): fsw.property_string('type', 'flat_dt') fsw.property_string('arch', arch) fsw.property_string('compression', compress) - fsw.property('compatible', bytes(compat)) with open(fname, 'rb') as inf: compressed = compress_data(inf, compress) -- 2.45.1.288.g0e0cd299f1-goog