Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2707671pxx; Sun, 1 Nov 2020 07:13:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJylREcZO5xlonFjJ3jrunaKjxiO4WeuZHOOZg/jyqFQ4gbwKAXtsxwB/KqyjdLpbVeiRslf X-Received: by 2002:aa7:cdd3:: with SMTP id h19mr12464392edw.330.1604243599553; Sun, 01 Nov 2020 07:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604243599; cv=none; d=google.com; s=arc-20160816; b=CJsGJ4tQs/hBx9wS1eYtoiWpPoua5/W3SBHwSxSJH8bLk7DyY4ZHZzc7wK6QC5dfmh PrVhruHCONOwNcI/PIb1H65Q1NNXnrQpbM5ofDXaIRgIdeyK6Vlvk3j0nYXSFTYWoLrC YBlLLRSYMTNq2pvBZBS3DEiTE8wM6uIeaPBeb8fau35uCr6dBRHI4oX3x7+QwVjiHL6V 67E5wwA6sOE1tAJEeyuMhYI1xz45OkuqMT5UdF1+knG3XyMX0ws9TP1k+ZkSRZi9Ay3C /2LuTIvqa4QlSDB6YGX4xfrvxnrB5PaN46XbnR0uggBCTA0wTbhE2yOTNkpt650I2ixQ QTjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:reply-to:cc:from:to:dkim-signature:date; bh=5iJ0E5e0R3nJzOnM1jd4trfBZrT4w2G6VPCCONJqXHs=; b=evKBn8459afWmQ8p1UaNkRspuYmkja7XXF0DaTpJEmgutrFBDSMh78IMINMOiDLwoP 4UzAe8QD8srkdntJ3omN6NLdjpRuimBe3lWpKt1lvGtmhWHAiWJgIR4GIKfH2a6ra6RA qKAnhT1akUg71fiUPY3KqNWCbkhoVvd88hDGjhfR3DRzClOm7Tukag+kIcxZ5CyVRWrF wOmG6po8pCO6D6+fl/zZa+SwT2v1Fi72aiHSnJRCVJZjRmwPZcmqT8WYFt8w420noUO/ zYl8+CMyPr5RQG1O1FG2nZWMbrIGygbPxXJiK/jP1whbvMbXgpoxs4+W8t8X6S5J9FYk Kr+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=j75o185H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y41si8673111ede.192.2020.11.01.07.12.55; Sun, 01 Nov 2020 07:13:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@pm.me header.s=protonmail header.b=j75o185H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pm.me Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726555AbgKAPLV (ORCPT + 99 others); Sun, 1 Nov 2020 10:11:21 -0500 Received: from mail1.protonmail.ch ([185.70.40.18]:45112 "EHLO mail1.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726499AbgKAPLV (ORCPT ); Sun, 1 Nov 2020 10:11:21 -0500 Date: Sun, 01 Nov 2020 15:11:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1604243479; bh=5iJ0E5e0R3nJzOnM1jd4trfBZrT4w2G6VPCCONJqXHs=; h=Date:To:From:Cc:Reply-To:Subject:From; b=j75o185HmXDi1mbpGazoz7+2W8dyJUzT6lkr8wz7TjgDy6d95bWpMvtKP1PtOYQNq BsfeU9i2+MMUOq1Q0TCwy2jekInmwGziRGNFtE6ZDAhOqFs6JqI6Pi9djHDPe105r+ fkIO3HXNrjC0Af+gSpozT4pkTLj4h01PPm8yZIBhP4QvbO3eN5BD8iy+F4gmmR/GBz 1Rjgwc4uBB//OUk6Q0/p9VWrvbpzVyI5HybtQLHqwS95+7F+dCEQUMDzKcrtBVm59b xUrqKnED2e08EAKJLI8z6XoM231gw8y3UMdGcxHPOarYOHtugBQ/ebyOj2t8LpWzQ4 AZr8lf177ltgQ== To: Thomas Bogendoerfer From: Alexander Lobakin Cc: Alexander Lobakin , Greg Kroah-Hartman , Masahiro Yamada , Paul Burton , Paul Cercueil , Huacai Chen , Jiaxun Yang , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Reply-To: Alexander Lobakin Subject: [PATCH mips-next 0/2] mips: boot: add support for self-extracting FIT images (vmlinuz.itb) Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit c3e2ee657418 ("MIPS: generic: Add support for zboot") added support for self-extracting images to Generic MIPS. However, the intended way to boot Generic MIPS kernels is using FIT Images and UHI boot protocol, but currently there's no way to make self-extracting FIT Image (only legacy uzImages). This set consists of two parts: 1) various cleanups in arch/mips/boot/compressed/Makefile as a prerequisite; 2) a new target named "vmlinuz.itb" for composing self-extracting FIT Images, which allows to have the advantages of both UHI and vmlinuz. The second part involves some scenarios duplication, but I think it can be a subject for another series (for constifying and unifying FIT Images rules across the architectures). Alexander Lobakin (2): mips: boot: clean up self-extracting targets scenarios mips: boot: add support for self-extracting FIT images (vmlinuz.itb) arch/mips/Makefile | 3 +- arch/mips/boot/.gitignore | 1 + arch/mips/boot/compressed/Makefile | 96 +++++++++++++++++++++++++----- 3 files changed, 85 insertions(+), 15 deletions(-) --=20 2.29.2