From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 8712276059 for ; Fri, 31 Aug 2018 02:17:06 +0000 (UTC) Received: from ALA-HCB.corp.ad.wrs.com ([147.11.189.41]) by mail.windriver.com (8.15.2/8.15.1) with ESMTPS id w7V2H7jI015963 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Thu, 30 Aug 2018 19:17:07 -0700 (PDT) Received: from pek-ljiang0-d1.wrs.com (128.224.162.214) by ALA-HCB.corp.ad.wrs.com (147.11.189.41) with Microsoft SMTP Server id 14.3.408.0; Thu, 30 Aug 2018 19:17:06 -0700 From: Jiang Lu To: , Date: Fri, 31 Aug 2018 10:15:03 +0800 Message-ID: <1535681710-29461-1-git-send-email-lu.jiang@windriver.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Subject: [v2] [PATCH 0/7] wic:allow wic compile as an individual package X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Aug 2018 02:17:06 -0000 Content-Type: text/plain [V2] Rebase patch to latest oe-core commmit. [V1 log] This patch set intend to allow wic compile as an individual package, then it can run both on host & target side. On host, it invoke by image_type_wic.bbclass to as a native tool to generate wic image. Patch 1-4 make wic compile as a native tool. On trarget, it parse wks file, and use current rootfs & /boot folder to generated a new wic image on target. Patch 5-6 fix a few minor issue on target. The patch is validate with mkefidisk.wks from oe-core layer on intel x86 platform. Assume /dev/sda2 is root device, then with following command, use could generate a new wic image $mount /dev/sda2 /tmp/sda $wic create /root/mkefidisk.wks -k /boot -r /tmp/sda -o /tmp/ The generated image is under /tmp with name mkefidisk-xxx-sda.direct. Then user may dump this file into another booting deivce. Thanks Jiang Lu