From patchwork Wed Oct 23 04:07:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shrirang Bagul X-Patchwork-Id: 1181780 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46ycKS3RwMz9sPV; Wed, 23 Oct 2019 15:07:40 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1iN7vq-0000VV-BZ; Wed, 23 Oct 2019 04:07:34 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iN7vm-0000Ui-PX for kernel-team@lists.ubuntu.com; Wed, 23 Oct 2019 04:07:30 +0000 Received: from 1.general.shrirang--bagul.uk.vpn ([10.172.198.4] helo=localhost.localdomain) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1iN7vm-0000NI-1B for kernel-team@lists.ubuntu.com; Wed, 23 Oct 2019 04:07:30 +0000 From: Shrirang Bagul To: kernel-team@lists.ubuntu.com Subject: [UNSTABLE][PATCH 0/2] UBUNTU: [Packaging] Support building Flattened Image Tree (FIT) kernels Date: Wed, 23 Oct 2019 12:07:23 +0800 Message-Id: <20191023040725.9811-1-shrirang.bagul@canonical.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1847969 [Impact] Flexible and powerful format based on Flattened Image Tree -- FIT (similar to Flattened Device Tree). It allows the use of images with multiple components (several kernels, ramdisks, etc.), with contents protected by SHA1, MD5 or CRC32, etc. More details: https://gitlab.denx.de/u-boot/u-boot/blob/master/doc/uImage.FIT/howto.txt The packaging changes will add support for building a FIT kernel binary blob which can be subsequently signed. These FIT-signed kernels will be consumed by snapcraft recipes to build kernel snaps for platforms with U-Boot bootloader enforcing secure boot. [Regression Potential] Minimal. These patches add new signing logic and build script around 'fit_signed' variable. The current build for generic kernels should not be affected. Shrirang Bagul (2): UBUNTU: [Packaging] add rules to build FIT image UBUNTU: [Packaging] force creation of headers directory debian/rules | 2 +- debian/rules.d/1-maintainer.mk | 1 + debian/rules.d/2-binary-arch.mk | 17 +++++++++++++- debian/scripts/build-fit | 40 +++++++++++++++++++++++++++++++++ 4 files changed, 58 insertions(+), 2 deletions(-) create mode 100755 debian/scripts/build-fit