Download OpenEmbedded User Manual
Transcript
Chapter 9. Reference
md5sum
If an md5sum is provided then the downloaded files will only be considered valid if the md5sum of
the downloaded file matches the md5sum option provided.
Related variables:
MIRRORS
Mirrors define alternative locations to download source files from. See the mirror section below for
more information.
DL_DIR
The downloaded files will be placed in this directory with the name exactly as supplied via the URI.
9.13.2. file: for patches and additional files
The file URI’s are used to copy files, included as part of the package meta data, into the work directory to
be used when building the package. Typical use of the file URI’s is to specify patches that be applied to
the source and to provide additional files, such as init scripts, to be included in the final package.
The following example shows the specification of a patch file:
file://ospfd-no-opaque-lsa-fix.patch
Patch files are copied to the patches subdirectory of the source directory, ${S}/patches, and then applied
from the source directory. The patches are searched for along the path specified via the file path variable,
${FILESPATH}, and if not found the directory specified by the file directory variable, ${FILEDIR}, is
also checked.
The following example shows the specification of a non-patch file. In this case it’s an init script:
file://quagga.init
Non-patch files are copied to the work directory, ${WORKDIR}. You can access these files from within
a recipe by referring to them relative to the work directory. The following example, from the quagga
recipe, shows the above init script being included in the package by copying it during the install task:
do_install () {
# Install init script and default settings
install -m 0755 -d ${D}${sysconfdir}/default ${D}${sysconfdir}/init.d ${D}${sysconfdir}/
install -m 0644 ${WORKDIR}/quagga.init ${D}${sysconfdir}/init.d/quagga
...
128