From patchwork Mon Oct 26 23:40:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1388201 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Gg+gInxN; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CKrwG4q8Wz9sT6 for ; Tue, 27 Oct 2020 10:42:06 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3D765824E0; Tue, 27 Oct 2020 00:40:51 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Gg+gInxN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E5085824A9; Tue, 27 Oct 2020 00:40:43 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,T_SPF_HELO_TEMPERROR, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) (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 2B107823F4 for ; Tue, 27 Oct 2020 00:40:35 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x142.google.com with SMTP id c11so7879136iln.9 for ; Mon, 26 Oct 2020 16:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vZC+4doaPOxWoZvZrtWeqTrbWQr+snbF5yL+Kb8SbP8=; b=Gg+gInxN9aivZuadzaKpMFo0uApcEj6Ub3SCk11R8JcxY1lPShOJds2o+uiLrRK2Zm /XkOJkNdehvYpV0mFcKmZAlA2XjKs8/VfCDNFr9UQgdb2nhfhBTSVb93kwxJR1vWj1c/ /H7/MLr3Rnm7anTqo1r0HI4Uj3IgAab9ypK3k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vZC+4doaPOxWoZvZrtWeqTrbWQr+snbF5yL+Kb8SbP8=; b=DvgkEXH3GhTzxaJlFR1UFGPqvGOxqR6txhG3Q04w1m3+8+GQrUNWvGV6V0s1fSS3Xs g3qMIGVBB3Bqq/1Sx+lA0/4Sojju1pimva4DN4lrjWebRo8FUZMC8JLJwRPH8yKHqpaB o4x21xC8LPjQRTG4xm5hW5/VEKEYofo7Zjv2yn5/+BaCViq9tFlyhNoZQ5UXEIwAn0Zz KuP8WDpppcuesFvZdb4e8QY5OhvyWqBvvr4G5EB5qUc4OjIlUnlrNIfrN4VKQZK4g6Nu qoJ1gZYGxivFW+7GwW21b8CRgP+dE4MEJ59dDHBvy6pB3OF5wztSzOyUU4u95g85gRZw ul3Q== X-Gm-Message-State: AOAM533uSPUnk5himw5q+4L12sLiiuRRKyRWydne5lIvgR1AnqkSUsRT 8JDJpp+NcXdPXE/sh+QwQSqN7PAxVqMTmfxe X-Google-Smtp-Source: ABdhPJxLQWWV/zxkFLb6waKl2RXtbqlSaMswKgP1sK+7jqHWLkCcUlCKduoTnDePk6VRmFdhe5DECQ== X-Received: by 2002:a92:c789:: with SMTP id c9mr6695328ilk.55.1603755633956; Mon, 26 Oct 2020 16:40:33 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id e17sm7066857ile.60.2020.10.26.16.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 16:40:33 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Alper Nebi Yasak , Simon Glass Subject: [PATCH v2 05/28] binman: Fix return from u-boot-ucode if there is no DT Date: Mon, 26 Oct 2020 17:40:03 -0600 Message-Id: <20201026234026.1903778-6-sjg@chromium.org> X-Mailer: git-send-email 2.29.0.rc2.309.g374f81d7ae-goog In-Reply-To: <20201026234026.1903778-1-sjg@chromium.org> References: <20201026234026.1903778-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean This should return empty contents, not leave it unset. Fix it. Signed-off-by: Simon Glass Signed-off-by: Simon Glass --- (no changes since v1) tools/binman/etype/u_boot_ucode.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/binman/etype/u_boot_ucode.py b/tools/binman/etype/u_boot_ucode.py index 44622936182..b4cb8cdb6e1 100644 --- a/tools/binman/etype/u_boot_ucode.py +++ b/tools/binman/etype/u_boot_ucode.py @@ -81,6 +81,7 @@ class Entry_u_boot_ucode(Entry_blob): if fdt_entry: break if not fdt_entry: + self.data = b'' return True if not fdt_entry.ready: return False