Embedded Linux Projects Using Yocto Project Cookbook by 2015

Embedded Linux Projects Using Yocto Project Cookbook by 2015

Author:2015
Language: eng
Format: epub
Publisher: Packt Publishing


How to do it...

An example snippet of the installation of a preinstallation script in a recipe is as follows:

pkg_preinst_${PN} () { # Shell commands }

All installation scripts work in the same way, with the exception that the postinstallation scripts may be run either on the host at root filesystem image creation time, on the target (for those actions that cannot be performed on the host), or when a package is directly installed on the target. Have a look at the following code:

pkg_postinst_${PN} () { if [ x"$D" = "x" ]; then # Commands to execute on device else # Commands to execute on host fi }



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.