Difference between revisions of "IoTGateway/Features/Linux/Software"
Daniel.hung (talk | contribs) |
Daniel.hung (talk | contribs) |
||
Line 44: | Line 44: | ||
===Create BB file to install pre-built SO binaries=== | ===Create BB file to install pre-built SO binaries=== | ||
− | Below is an example to add SO binaries into your image. You may need to modify the blue items for your path & library name. | + | Below is an example to add SO binaries into your image. You may need to modify the <span style="color:blue">blue items</span> for your make install path & library name. |
<span style="color:green"># Avoid package splitting into run-time and debug components</span> | <span style="color:green"># Avoid package splitting into run-time and debug components</span> | ||
INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" | ||
− | # Avoid QA Error for already-stripped | + | <span style="color:green"># Avoid QA Error for already-stripped</span> |
INHIBIT_PACKAGE_STRIP = "1" | INHIBIT_PACKAGE_STRIP = "1" | ||
− | # List the files for Package | + | <span style="color:green"># List the files for Package</span> |
− | FILES_${PN} += "/usr/lib" | + | FILES_${PN} += "<span style="color:blue">/usr/lib</span>" |
− | # Put all SO files in main rpm package | + | <span style="color:green"># Put all SO files in main rpm package</span> |
FILES_SOLIBSDEV = "" | FILES_SOLIBSDEV = "" | ||
INSANE_SKIP_${PN} += "dev-so" | INSANE_SKIP_${PN} += "dev-so" | ||
− | # Set alias name to satisfy runtime dependencies | + | <span style="color:green"># Set alias name to satisfy runtime dependencies</span> |
− | RPROVIDES_${PN} = " | + | RPROVIDES_${PN} = "<span style="color:blue">libxxx-1.00.so</span>" |
Revision as of 08:30, 4 August 2016
Contents
Console
Disable serial debug console
Device Tree
Customize device tree
Gstreamer
How to play video
Java
How to install Java
Linux Kernel
Get kernel configs from running OS
You can get the .config file in running Linux OS by the following command.
# zcat /proc/config.gz > current.config
Furthermore, this feature is enabled by CONFIG_IKCONFIG_PROC.
OpenCV
Open source computer vision
Python
Install Python
SSH
SSH connection
Yocto
In this section, we share some tips to use & modify BB files.
How to get multi-sources from GIT server
You can assign a name to distinguish the different GIT URIs, and define different destsuffix to save them respectively. Furthermore, to override SRCREV with the name, you can assign different commit id for each GIT branch.
SRC_URI = " \ git://git.allseenalliance.org/gerrit/core/alljoyn.git;protocol=https;branch=${GIT_BRANCH};name=router;destsuffix=git/core/alljoyn \ git://git.allseenalliance.org/gerrit/services/base.git;protocol=https;branch=${GIT_BRANCH};name=services;destsuffix=git/services/base \ file://modify_flags_for_yocto.patch" SRCREV_router = "0d71b216bb3a3cadc615c3eda6f8200093c5e117" SRCREV_services = "403cda579242701d42d2d7c0da308d63a8f46070"
Skip QA check
You can skip the specific QA check for your packages. For details, check the insane.bbclass bbclass in Yocto Project Reference Manual.
INSANE_SKIP_${PN} += "dev-so"
Create BB file to install pre-built SO binaries
Below is an example to add SO binaries into your image. You may need to modify the blue items for your make install path & library name.
# Avoid package splitting into run-time and debug components INHIBIT_PACKAGE_DEBUG_SPLIT = "1" # Avoid QA Error for already-stripped INHIBIT_PACKAGE_STRIP = "1" # List the files for Package FILES_${PN} += "/usr/lib" # Put all SO files in main rpm package FILES_SOLIBSDEV = "" INSANE_SKIP_${PN} += "dev-so" # Set alias name to satisfy runtime dependencies RPROVIDES_${PN} = "libxxx-1.00.so"