[OE-core] [PATCH 22/36] package.bbclass: add support for pkg_postinst_ontarget()
Anders Darander
anders at chargestorm.se
Wed Feb 15 09:10:25 UTC 2017
* Alexander Kanavin <alexander.kanavin at linux.intel.com> [170215 10:01]:
> On 02/15/2017 10:17 AM, Anders Darander wrote:
> > How will this be handled when using ro-rootfs?
> Same as it's handled now: by halting bitbake. See the email I just wrote to
> the oe-arch list for details.
> > We don't need to make it easier to write on-first-boot only post_install
> > scripts, rather, the goal has to be to be able to run all post_install
> > scripts during rootfs creation...
> This is not always possible. Some things do have to run on target: because
> qemu emulation doesn't work for the target machine on the build host, or
Well, if the qemu emulation isn't working for a particular target, but
might work for another target, the post_install script can't be moved to
pkg_postinst_ontarget_${PN} anyway, it'll break ro-rootfs for the 2nd
machine as well..
> because the post_install has to interact with target hardware.
Sure, but this is really the minority of cases. In this case
pkg_postinst_ontarget_${PN} might be OK, but I'm worried the it'll be
used a lot more often, because it's simpler to deal with...
Cheers,
Anders
--
Anders Darander, Senior System Architect
ChargeStorm AB / eStorm AB
More information about the Openembedded-core
mailing list