From patchwork Sun Dec 17 13:59:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 849620 X-Patchwork-Delegate: openwrt@kresin.me Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Zk893jly"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="TzN3GOAK"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3z05S03v4xz9t2Z for ; Mon, 18 Dec 2017 01:01:20 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:Date:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=cll4c/q5Yv0zeqwk3QIg+wZlBzrBTh+jhMKcl7SsPi4=; b=Zk893jlyrZ6nGg 7cQjw2yE8h9QFbPDQnW6cgD8XwOJWt6GKFkMn9CulWGrcXlk8cfRWqexSpKFxbzwYPZGFMQT4RVDq HRdNbnZTv6oDvtWMRBawtjriOSIFZZSrH+1UrkYIUPx427C6NVQ0HqiHlmyvwPBkpLf+20jT+DQYX EV8L3QTNeGDRp6IBLFs7gFTuEW36bU8YKcO6ZLiJJOC0wWX6eDb0DjYFXLsEiro0zbH4CDlYnyq3n VMWc/ctSnbhIOU29ohx7exXBxXLrGk/bAXc4e70pYMtuv4zrxcvLqFmqt8npt/0rQfNWzbrzLwxr/ 83TdVg0mNXEDyKtFywXg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1eQZUv-0002R3-2t; Sun, 17 Dec 2017 14:00:57 +0000 Received: from mail-wr0-x243.google.com ([2a00:1450:400c:c0c::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eQZUV-0001bY-9r for lede-dev@lists.infradead.org; Sun, 17 Dec 2017 14:00:33 +0000 Received: by mail-wr0-x243.google.com with SMTP id z104so2848473wrb.2 for ; Sun, 17 Dec 2017 06:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=ZCrQeFoboy/fjtaD67AL8gKcWDh3ZAucefzQULwWrrw=; b=TzN3GOAKrLai2ZqyD3vpq45sNRY3K7hfUFlNd1OJ/seR31Ioz072rXuF2pm0xwIIdG fTYzIcoa+BjRYGRN1AduTqFHfdSjYtpU/fl7PLIlFA5MyAjmMpDNcVDMshwo0JyX2PhM PPEloga9D7afX8wpgfbeMnOWyzK9+9XMUAXBHL46ItGtrapxzAosLvkAf9HY24rZYA5q h1kgqfXHXXnRxcqOpeI/cUxUVy6Af1BDtLeWjmX2UMFXCMij09Zw4XH37Sr3VfGyXHFG 3ZbgoKGLbbl4vUn8eMPhZn/eizaY33VnNAf4Qy9FNh1Gk7HCl7C6dygSTSSRCnsX0HWg jwgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=ZCrQeFoboy/fjtaD67AL8gKcWDh3ZAucefzQULwWrrw=; b=L1iZPzvhRMbesI27kwbEv7/q4jRwsEfYO73UZIRVsWZSiKNEhprmyJWXCJKyZwe+3B lYn0d0DgheyTPEdtHJhgDfnm9uZvmuDxFwjpTQqS3XZdkdv4zklIM3HsgnkFrfrx5PaH Xa8WdVUkWah9xOPke8Q4nW2VNk3peyPflPLULuIvJVU5w28iGP2FcQ51j5hgQMV69Pbt hRel6QnwqAbXq2AU78ahWqUej/heqYulO9ji5x1WpFKwSwuL/vKBEbiUcm0tVEzqXCKt fj3l7Xkza0i/82hjwS+yV/FUwgWCIeCaswGx0rajnSnYKd0GNHjQA9EOEqPYhVyfTVgu GfVA== X-Gm-Message-State: AKGB3mJeJQ6gSJ5CZ9MWs+SY00bleDE8O+GRZc9LwxMwJX4se/zQwSYU lJBfnx/Fv8dwQZWIpif0j2ngVaMk X-Google-Smtp-Source: ACJfBou6fLk5lz1Szv73uFRo/DwWHCnrehdRtxBSYsg3RcMyK2dIPkBhH6XjQaqGyPYfm99x+ZyLJw== X-Received: by 10.223.152.178 with SMTP id w47mr16035223wrb.254.1513519203423; Sun, 17 Dec 2017 06:00:03 -0800 (PST) Received: from debian64.daheim (p200300D5FBDD4AFC0000000000000830.dip0.t-ipconnect.de. [2003:d5:fbdd:4afc::830]) by smtp.gmail.com with ESMTPSA id y99sm11366450wmh.0.2017.12.17.06.00.01 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 17 Dec 2017 06:00:01 -0800 (PST) Received: from chuck by debian64.daheim with local (Exim 4.90_RC4) (envelope-from ) id 1eQZU1-0001lk-30 for lede-dev@lists.infradead.org; Sun, 17 Dec 2017 15:00:01 +0100 From: Christian Lamparter To: lede-dev@lists.infradead.org Date: Sun, 17 Dec 2017 14:59:53 +0100 Message-Id: X-Mailer: git-send-email 2.15.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171217_060031_546304_8EF1B9D6 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c0c:0:0:0:243 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chunkeey[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Subject: [LEDE-DEV] [PATCH 1/9] apm821xx: explicitly build the rootfs.img.gz target X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The commit 87b668765e1 ("image: when using the new image build code, gzip ext4 images by default") forced that all targets that select the ext4 as the root filesystem to always compress the generated rootfs. This is fine, but this method doesn't not allow to append the metadata on a per-target base. Therefore this patch changes the rootfs image production rule to generate the gzip step manually. This way the metadata can be appended at a later date. Signed-off-by: Christian Lamparter --- target/linux/apm821xx/image/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/apm821xx/image/Makefile b/target/linux/apm821xx/image/Makefile index ee85292d57..ebc6a051cc 100644 --- a/target/linux/apm821xx/image/Makefile +++ b/target/linux/apm821xx/image/Makefile @@ -217,11 +217,11 @@ define Device/MyBookLiveDefault KERNEL := kernel-bin | dtb | gzip | uImage gzip KERNEL_INITRAMFS := kernel-bin | dtb | gzip | uImage gzip BOOT_SIZE := 8 - IMAGES := rootfs.img kernel.dtb + IMAGES := rootfs.img.gz kernel.dtb DEVICE_DTB := apollo3g.dtb FILESYSTEMS := ext4 IMAGE/kernel.dtb := export-dtb - IMAGE/rootfs.img := boot-script | boot-img | hdd-img + IMAGE/rootfs.img.gz := boot-script | boot-img | hdd-img | gzip endef define Device/MyBookLiveSingle