2017-08-03 22:15 GMT+03:00 Henning Schild : > This way we stay with OE names. The name "install" will be used to > populate ${D} in a later patch, also in line with OE. > > Signed-off-by: Henning Schild > --- > meta/classes/dpkg.bbclass | 9 ++++----- > meta/classes/image.bbclass | 2 +- > 2 files changed, 5 insertions(+), 6 deletions(-) > > diff --git a/meta/classes/dpkg.bbclass b/meta/classes/dpkg.bbclass > index ca0c5ab..97238b5 100644 > --- a/meta/classes/dpkg.bbclass > +++ b/meta/classes/dpkg.bbclass > @@ -23,12 +23,11 @@ do_build() { > sudo chroot ${BUILDCHROOT_DIR} /build.sh ${PP}/${SRC_DIR} > } > > - > # Install package to dedicated deploy directory > -do_install() { > +do_package_write_deb() { > Why it's 'package_write_deb'? If we speak about 'like-OE' style, in OE this function does (NOTE: I provide links to GitHub because they have line numbering): 1. package_write_deb: https://github.com/MentorEmbedded/poky/blob/master/meta/classes/package_deb.bbclass#L342 2. It calls package_deb: https://github.com/MentorEmbedded/poky/blob/master/meta/classes/package_deb.bbclass#L51 So this function performs creating of deb package from built binaries. In general it's quite difficult to map Isar package building process to OE (some tasks like 'patch' are missed due to no meaning in this context): 1. Isar: fetch -> unpack -> (!) build (using dpkg) 2. OE: fetch -> unpack -> (!) configure -> compile -> install -> package_write_deb So all the tasks after (!) in OE are done in single task in Isar. That's one of the Isar main difference from OE, that package building is performed by native Debian tools and this process can't be break-down and one-to-one mapped to OE tasks. Regarding the function in patch, this is defenitely install and not package write, but we can specify what kind of install, for example: install_to_deploy, or populate_apt or etc... Alex > install -m 755 ${BUILDROOT}/*.deb ${DEPLOY_DIR_DEB}/ > } > > -addtask install after do_build > -do_install[dirs] = "${DEPLOY_DIR_DEB}" > -do_install[stamp-extra-info] = "${MACHINE}" > +addtask package_write_deb after do_build > +do_package_write_deb[dirs] = "${DEPLOY_DIR_DEB}" > +do_package_write_deb[stamp-extra-info] = "${MACHINE}" > diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass > index 3e4877c..f60ec11 100644 > --- a/meta/classes/image.bbclass > +++ b/meta/classes/image.bbclass > @@ -27,4 +27,4 @@ do_populate() { > } > > addtask populate before do_build > -do_populate[deptask] = "do_install" > +do_populate[deptask] = "do_package_write_deb" > -- > 2.13.0 > >