From patchwork Thu Apr 4 13:10:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Petr_=C5=A0tetiar?= X-Patchwork-Id: 1077276 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=true.cz Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VAmPgw68"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::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 44Zjxp1j3cz9sML for ; Fri, 5 Apr 2019 00:11:09 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:References: In-Reply-To:Message-Id:Date:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fYJCnsif4V9kOT/HHr/nWAg4V+ksLeOlO2/OH3hLvks=; b=VAmPgw687SZy1o rpMEprcjT/zz9RoV4SND+DJsRdyxtb8pYXSCBWyzBxs6eWORECGNXSTgH024y3neWzdQ3HYVCTsy1 6dBn8S4CqbHlIrCUSYVg6RL/fn+HvwgC/Nw5M7eqC3RUlMOCsph0tZNuzDL+ETvw4QL0E5NfnaneE vByTCJ8JGZG5EaxsOex4x7mf8qoJavLXhBkKgnCFnZDXOv+mnbvT55lLqYEQufZj+uvhSLKbAmADy +QhqoTIU3DXB2F8E2aCRpqo98+XQZpkY29Ll1sp6XXgehcZwgRLoayfCDZRinaj39Bs5u5lYF2mfM AnFqsBI8uot9JbM/yRcw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC28l-0008GI-SH; Thu, 04 Apr 2019 13:10:47 +0000 Received: from smtp-out.xnet.cz ([178.217.244.18]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hC28i-0008Eq-7U for openwrt-devel@lists.openwrt.org; Thu, 04 Apr 2019 13:10:45 +0000 Received: from meh.true.cz (meh.true.cz [108.61.167.218]) (Authenticated sender: petr@true.cz) by smtp-out.xnet.cz (Postfix) with ESMTPSA id 2616E33AE; Thu, 4 Apr 2019 15:10:42 +0200 (CEST) Received: by meh.true.cz (OpenSMTPD) with ESMTP id 69a1d138; Thu, 4 Apr 2019 15:10:40 +0200 (CEST) From: =?utf-8?q?Petr_=C5=A0tetiar?= To: openwrt-devel@lists.openwrt.org Date: Thu, 4 Apr 2019 15:10:34 +0200 Message-Id: <1554383435-13529-4-git-send-email-ynezz@true.cz> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1554383435-13529-1-git-send-email-ynezz@true.cz> References: <1554383435-13529-1-git-send-email-ynezz@true.cz> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190404_061044_425749_D8DB249A X-CRM114-Status: UNSURE ( 6.82 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [178.217.244.18 listed in list.dnswl.org] Subject: [OpenWrt-Devel] [PATCH 3/4] imx6: image: Split imx6-sdcard image for reusability X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Petr_=C5=A0tetiar?= Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org Signed-off-by: Petr Štetiar --- target/linux/imx6/image/Makefile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/target/linux/imx6/image/Makefile b/target/linux/imx6/image/Makefile index 9dd5b52..fa10b75 100644 --- a/target/linux/imx6/image/Makefile +++ b/target/linux/imx6/image/Makefile @@ -58,11 +58,16 @@ define Build/boot-scr $(BIN_DIR)/boot.scr endef -define Build/imx6-sdcard +define Build/imx6-combined-image-prepare rm -rf $@.boot mkdir -p $@.boot +endef - $(CP) $(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot.img $@.boot/u-boot.img +define Build/imx6-combined-image-clean + rm -rf $@.boot $@.fs +endef + +define Build/imx6-combined-image $(CP) $(IMAGE_KERNEL) $@.boot/uImage $(foreach dts,$(DEVICE_DTS), \ @@ -84,10 +89,18 @@ define Build/imx6-sdcard $(CONFIG_TARGET_ROOTFS_PARTSIZE) \ $@.fs \ 1024 +endef +define Build/imx6-sdcard + $(Build/imx6-combined-image-prepare) + + $(CP) $(STAGING_DIR_IMAGE)/$(UBOOT)-u-boot.img $@.boot/u-boot.img + $(Build/imx6-combined-image) dd if=$(STAGING_DIR_IMAGE)/$(UBOOT)-SPL of=$@ bs=1024 seek=1 conv=notrunc - rm -rf $@.boot $@.fs + $(Build/imx6-combined-image-clean) +endef + endef #################################################