mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
#
|
|
# ex:ts=4:sw=4:sts=4:et
|
|
# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
|
#
|
|
# Common variable and task for the binary package recipe.
|
|
# Basic principle:
|
|
# * The files have been unpacked to ${S} by base.bbclass
|
|
# * Skip do_configure and do_compile
|
|
# * Use do_install to install the files to ${D}
|
|
#
|
|
# Note:
|
|
# The "subdir" parameter in the SRC_URI is useful when the input package
|
|
# is rpm, ipk, deb and so on, for example:
|
|
#
|
|
# SRC_URI = "http://foo.com/foo-1.0-r1.i586.rpm;subdir=foo-1.0"
|
|
#
|
|
# Then the files would be unpacked to ${WORKDIR}/foo-1.0, otherwise
|
|
# they would be in ${WORKDIR}.
|
|
#
|
|
|
|
# Skip the unwanted steps
|
|
do_configure[noexec] = "1"
|
|
do_compile[noexec] = "1"
|
|
|
|
# Install the files to ${D}
|
|
bin_package_do_install () {
|
|
# Do it carefully
|
|
[ -d "${S}" ] || exit 1
|
|
if [ -z "$(ls -A ${S})" ]; then
|
|
bbfatal bin_package has nothing to install. Be sure the SRC_URI unpacks into S.
|
|
fi
|
|
cd ${S}
|
|
tar --no-same-owner --exclude='./patches' --exclude='./.pc' -cpf - . \
|
|
| tar --no-same-owner -xpf - -C ${D}
|
|
}
|
|
|
|
FILES:${PN} = "/"
|
|
|
|
EXPORT_FUNCTIONS do_install
|