From: Adrian Calianu <adrian.cali...@enea.com>

v2 
Fix upstream compatibility with latest on master.

v1
Hi,

We tried to extend existing wic tool to generates rootfs images for U-Boot.
This will be possible from cooked mode(existing build folder) and from raw mode 
where you have to provide a list of packages to be installed and a native 
rootfs with necessary tools.

Some prerequisites are required for this new build setup in wic.conf file.
As package manager only opkg and only web paths(repourl) are supported by now.
../poky/scripts/lib/image/config/wic.conf
[create]
arch=target_arch (example: powerpc, arm, x86) pkgmgr=opkg 
repourl=http://example.distro/p2020rdb/ipk/all 
http://example.distro/p2020rdb/ipk/p2020rdb 
http://example.distro/p2020rdb/ipk/ppce500v2

    1) Build rootfs image from an existing bitbake build:
       wic create ../poky/scripts/lib/image/canned-wks/uboot.wks -e 
core-image-minimal -o .../output

    2) Build rootfs image from an existing rootfs and native_sysroot:
       wic create ../poky/scripts/lib/image/canned-wks/uboot.wks -r 
.../path_to_rootfs -n .../path_to_native_sysroot -o .../output

    3) Build rootfs image only from a package list (on wks file) similar with 
IMAGE_INSTALL from bitbake.
       Package dependencies will be installed by default by the package manager.

       Add the list of packages to be installed as rootfs on 
../poky/scripts/lib/image/canned-wks/uboot.wks:
       %packages
       packagegroup-core-boot
       pramfs-init
       run-postinsts
       packagegroup-core-ssh-dropbear
       %end

       Generate rootfs image:
       wic create ../poky/scripts/lib/image/canned-wks/uboot.wks  -n 
.../path_to_native_sysroot -o .../output

 
Adrian Calianu (2):
  Add wic support to generate rootfs image for uboot
  Fix compatibility with upstream.

 scripts/lib/image/canned-wks/uboot.wks             |   17 +
 scripts/lib/image/config/wic.conf                  |    4 +
 scripts/lib/mic/imager/direct.py                   |    4 +
 .../lib/mic/kickstart/custom_commands/partition.py |  128 ++++
 scripts/lib/mic/pluginbase.py                      |    9 +
 scripts/lib/mic/plugins/source/uboot.py            |  173 +++++
 scripts/lib/mic/utils/oe/package_manager.py        |  810 ++++++++++++++++++++
 scripts/wic                                        |   88 ++-
 8 files changed, 1209 insertions(+), 24 deletions(-)
 create mode 100644 scripts/lib/image/canned-wks/uboot.wks
 create mode 100644 scripts/lib/mic/plugins/source/uboot.py
 create mode 100644 scripts/lib/mic/utils/oe/package_manager.py

-- 
1.7.10.4

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to