From nobody Fri Feb 13 11:54:15 2026 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="WzcO1dwb" 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-Google-Smtp-Source: AGHT+IFTTpm0RsjGdPoiR+AoKzXW7E+hd/m8F4dDEyyB9zbyv+NxB20eslkRX45ggDC8YXqbzFdtUA== 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: quoted-printable Content-Type: text/plain; charset="utf-8" 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/sourc= e/chapter2-source-file-format.rst Fixes: 7a23b027ec17 ("arm64: boot: Support Flat Image Tree") Signed-off-by: Chen-Yu Tsai Reviewed-by: Simon Glass --- 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' =20 @@ -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)) =20 with open(fname, 'rb') as inf: compressed =3D compress_data(inf, compress) --=20 2.45.1.288.g0e0cd299f1-goog