From patchwork Tue Sep 15 09:32:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bastian Germann X-Patchwork-Id: 1364185 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=googlegroups.com (client-ip=2a00:1450:4864:20::23e; helo=mail-lj1-x23e.google.com; envelope-from=swupdate+bncbdpppp7kyilbbl4uql5qkgqe3e22vva@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.a=rsa-sha256 header.s=20161025 header.b=o0Orb4Ji; dkim-atps=neutral Received: from mail-lj1-x23e.google.com (mail-lj1-x23e.google.com [IPv6:2a00:1450:4864:20::23e]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BrJ110QLYz9sVZ for ; Tue, 15 Sep 2020 19:32:35 +1000 (AEST) Received: by mail-lj1-x23e.google.com with SMTP id s13sf817381ljc.20 for ; Tue, 15 Sep 2020 02:32:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600162352; cv=pass; d=google.com; s=arc-20160816; b=iETCUXDUVWDemLxhbuaPjK9sKZO1VuT1uMFMzNg8gKbawPKU7MTqW8zjGrCUsZmMWA bguLHDPeOE4yTneDltsNoFnZSb+5hWiUmmQbMya99tcnORadBIMJxUH82tOfT5PrHEe2 QJy5SHlUOYCZBj7LkB2LiU8J9nPSVFafOI3ROiWQFOF7hoc8FkErqnCYWgfpAvTSC2ll kc85ibLRF0kjwBJoeVViOmYjZPRqjrJxwOcGOYEScKDcy+hh1+yLh6xm4+SNjNhlEkt+ 5yngk8vsbyJndmPKgDehly9sG8RdEpHXrFRag+tf9gpdUNLAYHmAr0oFllFk5HCN+huZ hV5A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:sender:dkim-signature; bh=P1KnzY+ls01Jyrh3pvLwBTqBVSzf6tOHPXnu3CtXPio=; b=ntdDU/PaKD/vIu9z5lmmm5mxQSmvm54JuwTx8pt0yXcjlDRLf1FALwxVHHIHk5hfCg 0WEQlMx0LZYJ07YtROyuaFKK6pSjoASepfYiFOsuXFOJWRz5nzo0k+kod+J1oLKz2Y+R CW69XPx1PLAs8ZMhShLm1s50R9dRZ3nWQRmMrlOHWuFR9HIizacM8k6I9mblbeAmY3Z/ dhD4A+1+Oxy1GqGifl/QqEsXrgqOSyC1FtBpE4GWTwg7pUejTdXG4qjmlCQU1kOipZPx FegEDVa0zKAQ51fgb5VXnnRQ6Y9cKy4L3M5h9pm+06P8fdkHcLuchjdI82KOBO3Hr5s/ eZAA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=UuU1nkVP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of bage@linutronix.de designates 2a0a:51c0:0:12e:550::1 as permitted sender) smtp.mailfrom=bage@linutronix.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=P1KnzY+ls01Jyrh3pvLwBTqBVSzf6tOHPXnu3CtXPio=; b=o0Orb4Jih52att4yhwmDqho7bodbrn8PlusNe1cnMJCDkvpeXABf+b0ubMqy5b12fV iBWGC0al0RJxHZSlIae5McNIFfUx9AsAwK4tToTGXfHJ+saYXT3+56xIXDjBA0JL+B5N jQE3l7uTb2jkOdiZqqrhb3Qy1JVpBtE+WXY3HOWdTcpqnIaE7Ujy2NVrpS1rPBmLWr0o eQaUKPx8SOqlL0mTgLOOk6x/X1dtaiBf49AWzZpNS+bH5y1F10mTDOKBaxSkeosC/OVm Cif/u9h4GAf3/2/JgtrcSG/KhG0jNQpX173Q8paU9GVWTFQZLRvlOfwWM+ODCX2XNv44 O2WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:cc:subject:date:message-id :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=P1KnzY+ls01Jyrh3pvLwBTqBVSzf6tOHPXnu3CtXPio=; b=KnWrcyC0hHbDOvQZ0RBquW+9meEOQihzUr4/yzoZhk2PmENQNyOSYmivQlEUUQq9oO rNnBVoq9qU/rEE2v/ltykFjHkmmongcj3H8gjEoTK7iIgTjNctReAj0Wvzu6oA1jrbtE J2hs8iQWNGl/7kU4UIu4r4oPFvJK/2rFZsHUXatQAbHT2c357/jlD5r2CUG02hcWVA2a 4YQbadShEPsvOgugSMsTuNMQA6ROyn6Ccr7wfqZsv22C8X0Ipup++EQ6fWpFvd5pfMAh fE7mViwF5qy6mVn680CNkX9rO/+Pw5ePQrZ5vMXamTLU8K3T1Jp3+DxVzuaqZkiJD80m oF/g== Sender: swupdate@googlegroups.com X-Gm-Message-State: AOAM5307ih4SuCViAouqVJgQbw4L8OiRY3/WwPziFdia/lTOMImEEho9 rWsT6oH+eh/M+T2Y9C2JjY0= X-Google-Smtp-Source: ABdhPJykvbQ9/S9qqax7bnh/mzPa5doEh7oB6DzrXihgorXszDanW12fg9nX7VMVMuJ/xijCVgxVzA== X-Received: by 2002:ac2:5e2b:: with SMTP id o11mr6514868lfg.24.1600162352256; Tue, 15 Sep 2020 02:32:32 -0700 (PDT) X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:9a93:: with SMTP id p19ls1841546lji.7.gmail; Tue, 15 Sep 2020 02:32:31 -0700 (PDT) X-Received: by 2002:a2e:9782:: with SMTP id y2mr6766264lji.91.1600162350977; Tue, 15 Sep 2020 02:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600162350; cv=none; d=google.com; s=arc-20160816; b=O3VEU1aa+6rZvMx9X5JwzaGnyyPoICQfAw2cF6MmmR0A0nCyenkq0bMQlfHFEz4YBr 4m2UEw267tjcR9GGcPN/JuzOg8/KcpHt6TcIOnOEyogiy96mz7Z3qGb7VLMxEBZO57L0 XKzPwonUq55hoBR+J7dEFkjBRewNQhforFq0xV7AdJaYd1e9EhmXUd05/bRyXUDBRUKp zdHcLYuJFLwPYQU/pOu/7ArxImGbryFlk6Kp97uOQPUMQYMt7nBBzgQ6oPfC/2MpFLXy gHEcEt4p645cxfv/bfYDAB90P44GUamN08o+vZ/bV17PEW4KRQIkyq3WEwFk2j06m3q9 gvdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dkim-signature:dkim-signature:from; bh=pTGHZR5u/GzwLiBZGD0CA2r7gGSqlujUhOGZtFyJwRw=; b=iYDLw8qyv5ZYOkVprzVLvlClQZSGegwaruvEbS7J1xSp7k7+BY0QrcoULoyoGary4x 1faOGQeJfe5hqs7pM0W5+0mAWQIwpwSGYTXn3/0UxDuiNwpejwa0riLJI9HYgq2tKlD7 w83vxasAgqonlFVp6ncs7+8lCD428H4i4jTS4DsrUDJS6ncMaUgkYeqzOJDfsmTYm9bm BjvzNBE5NzVxX10t1NZ7MzB+eFEvrZmzTPW4wHf+WaWJvvatOYFg7yeWpN21Xmk/lyS5 W/X0RoCQCFpZlblqPWzPeMNuMrq6syl3UXee2QZauUlJkRNFFyZeBeLbWzyZJUzzw2zN Bh3A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=UuU1nkVP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of bage@linutronix.de designates 2a0a:51c0:0:12e:550::1 as permitted sender) smtp.mailfrom=bage@linutronix.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from galois.linutronix.de (Galois.linutronix.de. [2a0a:51c0:0:12e:550::1]) by gmr-mx.google.com with ESMTPS id m11si230060ljp.6.2020.09.15.02.32.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Sep 2020 02:32:30 -0700 (PDT) Received-SPF: pass (google.com: domain of bage@linutronix.de designates 2a0a:51c0:0:12e:550::1 as permitted sender) client-ip=2a0a:51c0:0:12e:550::1; From: bage@linutronix.de To: swupdate@googlegroups.com Cc: Bastian Germann Subject: [swupdate] [PATCH] bootloader: remove cruft Date: Tue, 15 Sep 2020 11:32:06 +0200 Message-Id: <20200915093206.14902-1-bage@linutronix.de> MIME-Version: 1.0 X-Original-Sender: bage@linutronix.de X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=UuU1nkVP; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of bage@linutronix.de designates 2a0a:51c0:0:12e:550::1 as permitted sender) smtp.mailfrom=bage@linutronix.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: Bastian Germann 82a157e35e9d ("bootloader: drop suppport for legacy U-Boot tools") removed the legacy U-Boot support. Also remove the still remaining header. Signed-off-by: Bastian Germann --- bootloader/uboot.c | 1 - bootloader/uboot.h | 27 --------------------------- 2 files changed, 28 deletions(-) delete mode 100644 bootloader/uboot.h diff --git a/bootloader/uboot.c b/bootloader/uboot.c index cf5d26f..d5aa630 100644 --- a/bootloader/uboot.c +++ b/bootloader/uboot.c @@ -16,7 +16,6 @@ #include #include #include "generated/autoconf.h" -#include "uboot.h" #include "util.h" #include "bootloader.h" diff --git a/bootloader/uboot.h b/bootloader/uboot.h deleted file mode 100644 index 4059678..0000000 --- a/bootloader/uboot.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * (C) Copyright 2002-2008 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0-or-later - */ - -#include - -#define AES_KEY_LENGTH (128 / 8) - -struct env_opts { - char *config_file; - int aes_flag; /* Is AES encryption used? */ - uint8_t aes_key[AES_KEY_LENGTH]; -}; - -extern struct env_opts *fw_env_opts; - -int fw_parse_script(char *fname, struct env_opts *opts); -char *fw_getenv(char *name); -int fw_env_open(struct env_opts *opts); -int fw_env_write(char *name, char *value); -int fw_env_close(struct env_opts *opts); -int fw_env_flush(struct env_opts *opts); - -extern unsigned long crc32 (unsigned long, const unsigned char *, unsigned);