mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
Convert to new override syntax
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>
This commit is contained in:
@@ -11,6 +11,6 @@ PYPI_PACKAGE = "async"
|
|||||||
SRC_URI[md5sum] = "9b06b5997de2154f3bc0273f80bcef6b"
|
SRC_URI[md5sum] = "9b06b5997de2154f3bc0273f80bcef6b"
|
||||||
SRC_URI[sha256sum] = "ac6894d876e45878faae493b0cf61d0e28ec417334448ac0a6ea2229d8343051"
|
SRC_URI[sha256sum] = "ac6894d876e45878faae493b0cf61d0e28ec417334448ac0a6ea2229d8343051"
|
||||||
|
|
||||||
RDEPENDS_${PN} += "${PYTHON_PN}-threading"
|
RDEPENDS:${PN} += "${PYTHON_PN}-threading"
|
||||||
|
|
||||||
BBCLASSEXTEND = "nativesdk"
|
BBCLASSEXTEND = "nativesdk"
|
||||||
|
|||||||
@@ -20,15 +20,15 @@ PACKAGECONFIG[curses] = "--enable-curses,--disable-curses,ncurses"
|
|||||||
|
|
||||||
PACKAGES += "libaspell libpspell libpspell-dev aspell-utils"
|
PACKAGES += "libaspell libpspell libpspell-dev aspell-utils"
|
||||||
|
|
||||||
FILES_${PN}-dbg += "${libdir}/aspell-0.60/.debu*"
|
FILES:${PN}-dbg += "${libdir}/aspell-0.60/.debu*"
|
||||||
FILES_libaspell = "${libdir}/libaspell.so.* ${libdir}/aspell*"
|
FILES:libaspell = "${libdir}/libaspell.so.* ${libdir}/aspell*"
|
||||||
FILES_aspell-utils = "${bindir}/word-list-compress ${bindir}/aspell-import ${bindir}/run-with-aspell ${bindir}/pre*"
|
FILES:aspell-utils = "${bindir}/word-list-compress ${bindir}/aspell-import ${bindir}/run-with-aspell ${bindir}/pre*"
|
||||||
FILES_${PN} = "${bindir}/aspell"
|
FILES:${PN} = "${bindir}/aspell"
|
||||||
FILES_libpspell = "${libdir}/libpspell.so.*"
|
FILES:libpspell = "${libdir}/libpspell.so.*"
|
||||||
FILES_libpspell-dev = "${libdir}/libpspell* ${bindir}/pspell-config ${includedir}/pspell"
|
FILES:libpspell-dev = "${libdir}/libpspell* ${bindir}/pspell-config ${includedir}/pspell"
|
||||||
|
|
||||||
ARM_INSTRUCTION_SET_armv4 = "arm"
|
ARM_INSTRUCTION_SET:armv4 = "arm"
|
||||||
ARM_INSTRUCTION_SET_armv5 = "arm"
|
ARM_INSTRUCTION_SET:armv5 = "arm"
|
||||||
ARM_INSTRUCTION_SET_armv6 = "arm"
|
ARM_INSTRUCTION_SET:armv6 = "arm"
|
||||||
|
|
||||||
inherit autotools gettext
|
inherit autotools gettext
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ LICENSE = "MIT"
|
|||||||
|
|
||||||
INHIBIT_DEFAULT_DEPS = "1"
|
INHIBIT_DEFAULT_DEPS = "1"
|
||||||
|
|
||||||
do_install_append() {
|
do_install:append() {
|
||||||
install -d ${D}${bindir}
|
install -d ${D}${bindir}
|
||||||
touch ${D}${bindir}/theapp
|
touch ${D}${bindir}/theapp
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,5 @@ INHIBIT_DEFAULT_DEPS = "1"
|
|||||||
EXCLUDE_FROM_WORLD = "1"
|
EXCLUDE_FROM_WORLD = "1"
|
||||||
|
|
||||||
SRC_URI = "file://source;subdir=${BP}"
|
SRC_URI = "file://source;subdir=${BP}"
|
||||||
SRC_URI_append_qemuarm = " file://arm.patch;striplevel=0"
|
SRC_URI:append:qemuarm = " file://arm.patch;striplevel=0"
|
||||||
SRC_URI_append_qemux86 = " file://x86.patch;striplevel=0"
|
SRC_URI:append:qemux86 = " file://x86.patch;striplevel=0"
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ IMAGE_INSTALL = "packagegroup-core-boot"
|
|||||||
IMAGE_FSTYPES = "wic"
|
IMAGE_FSTYPES = "wic"
|
||||||
|
|
||||||
WKS_FILE_DEPENDS = "dosfstools-native mtools-native gptfdisk-native"
|
WKS_FILE_DEPENDS = "dosfstools-native mtools-native gptfdisk-native"
|
||||||
WKS_FILE_DEPENDS_append_x86 = " syslinux-native syslinux"
|
WKS_FILE_DEPENDS:append:x86 = " syslinux-native syslinux"
|
||||||
WKS_FILE_DEPENDS_append_x86-64 = " syslinux-native syslinux"
|
WKS_FILE_DEPENDS:append:x86-64 = " syslinux-native syslinux"
|
||||||
WKS_FILE_DEPENDS_append_x86-x32 = " syslinux-native syslinux"
|
WKS_FILE_DEPENDS:append:x86-x32 = " syslinux-native syslinux"
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
LICENSE = "MIT"
|
LICENSE = "MIT"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||||
|
|
||||||
MCMACHINE_virtclass-mcextend-musl = "qemux86-64"
|
MCMACHINE:virtclass-mcextend-musl = "qemux86-64"
|
||||||
MCMACHINE_virtclass-mcextend-tiny = "qemux86"
|
MCMACHINE:virtclass-mcextend-tiny = "qemux86"
|
||||||
MCIMGTYPE_virtclass-mcextend-musl = "ext4"
|
MCIMGTYPE:virtclass-mcextend-musl = "ext4"
|
||||||
MCIMGTYPE_virtclass-mcextend-tiny = "cpio.gz"
|
MCIMGTYPE:virtclass-mcextend-tiny = "cpio.gz"
|
||||||
|
|
||||||
MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
|
MC_DEPLOY_DIR_IMAGE = "${TOPDIR}/tmp-mc-${MCNAME}/deploy/images/${MCMACHINE}"
|
||||||
|
|
||||||
|
|||||||
@@ -5,19 +5,19 @@ inherit allarch
|
|||||||
|
|
||||||
PACKAGES = "${PN}-rootfs ${PN}-delayed-a ${PN}-delayed-b ${PN}-rootfs-failing"
|
PACKAGES = "${PN}-rootfs ${PN}-delayed-a ${PN}-delayed-b ${PN}-rootfs-failing"
|
||||||
|
|
||||||
ALLOW_EMPTY_${PN}-rootfs = "1"
|
ALLOW_EMPTY:${PN}-rootfs = "1"
|
||||||
ALLOW_EMPTY_${PN}-delayed-a = "1"
|
ALLOW_EMPTY:${PN}-delayed-a = "1"
|
||||||
ALLOW_EMPTY_${PN}-delayed-b = "1"
|
ALLOW_EMPTY:${PN}-delayed-b = "1"
|
||||||
ALLOW_EMPTY_${PN}-rootfs-failing = "1"
|
ALLOW_EMPTY:${PN}-rootfs-failing = "1"
|
||||||
|
|
||||||
RDEPENDS_${PN}-delayed-a = "${PN}-rootfs"
|
RDEPENDS:${PN}-delayed-a = "${PN}-rootfs"
|
||||||
RDEPENDS_${PN}-delayed-b = "${PN}-delayed-a"
|
RDEPENDS:${PN}-delayed-b = "${PN}-delayed-a"
|
||||||
|
|
||||||
TESTDIR = "${sysconfdir}/postinst-test"
|
TESTDIR = "${sysconfdir}/postinst-test"
|
||||||
|
|
||||||
# At rootfs time touch $TESTDIR/rootfs. Errors if the file already exists, or
|
# At rootfs time touch $TESTDIR/rootfs. Errors if the file already exists, or
|
||||||
# if the function runs on first boot.
|
# if the function runs on first boot.
|
||||||
pkg_postinst_${PN}-rootfs () {
|
pkg_postinst:${PN}-rootfs () {
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ -z "$D" ]; then
|
if [ -z "$D" ]; then
|
||||||
@@ -36,7 +36,7 @@ pkg_postinst_${PN}-rootfs () {
|
|||||||
|
|
||||||
# Depends on rootfs, delays until first boot, verifies that the rootfs file was
|
# Depends on rootfs, delays until first boot, verifies that the rootfs file was
|
||||||
# written.
|
# written.
|
||||||
pkg_postinst_ontarget_${PN}-delayed-a () {
|
pkg_postinst_ontarget:${PN}-delayed-a () {
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ! -e ${TESTDIR}/rootfs ]; then
|
if [ ! -e ${TESTDIR}/rootfs ]; then
|
||||||
@@ -49,7 +49,7 @@ pkg_postinst_ontarget_${PN}-delayed-a () {
|
|||||||
|
|
||||||
# Depends on delayed-a, delays until first boot, verifies that the delayed-a file was
|
# Depends on delayed-a, delays until first boot, verifies that the delayed-a file was
|
||||||
# written. This verifies the ordering between delayed postinsts.
|
# written. This verifies the ordering between delayed postinsts.
|
||||||
pkg_postinst_ontarget_${PN}-delayed-b () {
|
pkg_postinst_ontarget:${PN}-delayed-b () {
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ ! -e ${TESTDIR}/delayed-a ]; then
|
if [ ! -e ${TESTDIR}/delayed-a ]; then
|
||||||
@@ -62,7 +62,7 @@ pkg_postinst_ontarget_${PN}-delayed-b () {
|
|||||||
|
|
||||||
# This scriptlet intentionally includes a bogus command in the middle to test
|
# This scriptlet intentionally includes a bogus command in the middle to test
|
||||||
# that we catch and report such errors properly.
|
# that we catch and report such errors properly.
|
||||||
pkg_postinst_${PN}-rootfs-failing () {
|
pkg_postinst:${PN}-rootfs-failing () {
|
||||||
mkdir -p $D${TESTDIR}
|
mkdir -p $D${TESTDIR}
|
||||||
touch $D${TESTDIR}/rootfs-before-failure
|
touch $D${TESTDIR}/rootfs-before-failure
|
||||||
run_a_really_broken_command
|
run_a_really_broken_command
|
||||||
|
|||||||
@@ -34,9 +34,9 @@ do_install() {
|
|||||||
install_extrafunc
|
install_extrafunc
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst:${PN} () {
|
||||||
echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst
|
echo "Test file installed by postinst" > $D${datadir}/selftest-replaceme-postinst
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += "${datadir}"
|
FILES:${PN} += "${datadir}"
|
||||||
|
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ BBCLASSEXTEND = "native nativesdk"
|
|||||||
|
|
||||||
SRC_URI += "file://somefile"
|
SRC_URI += "file://somefile"
|
||||||
|
|
||||||
SRC_URI_append = " file://anotherfile"
|
SRC_URI:append = " file://anotherfile"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ S = "${WORKDIR}"
|
|||||||
inherit useradd allarch
|
inherit useradd allarch
|
||||||
|
|
||||||
USERADD_PACKAGES = "${PN}"
|
USERADD_PACKAGES = "${PN}"
|
||||||
USERADD_PARAM_${PN} = "-u 1234 -M test"
|
USERADD_PARAM:${PN} = "-u 1234 -M test"
|
||||||
TESTDIR = "${D}${sysconfdir}/selftest-chown"
|
TESTDIR = "${D}${sysconfdir}/selftest-chown"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
@@ -27,4 +27,4 @@ do_install() {
|
|||||||
chown -R test:test ${TESTDIR}/fifotest
|
chown -R test:test ${TESTDIR}/fifotest
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} = "${sysconfdir}/selftest-chown/*"
|
FILES:${PN} = "${sysconfdir}/selftest-chown/*"
|
||||||
|
|||||||
@@ -17,8 +17,8 @@ S = "${WORKDIR}/ed-${PV}"
|
|||||||
|
|
||||||
EXTRA_OECONF = "'CC=${CC}' 'CXX=${CXX}' 'CFLAGS=${CFLAGS}' 'CXXFLAGS=${CXXFLAGS}' 'CPPFLAGS=${CPPFLAGS}' 'LDFLAGS=${LDFLAGS}'"
|
EXTRA_OECONF = "'CC=${CC}' 'CXX=${CXX}' 'CFLAGS=${CFLAGS}' 'CXXFLAGS=${CXXFLAGS}' 'CPPFLAGS=${CPPFLAGS}' 'LDFLAGS=${LDFLAGS}'"
|
||||||
|
|
||||||
CONFIGUREOPTS_remove = "--disable-dependency-tracking"
|
CONFIGUREOPTS:remove = "--disable-dependency-tracking"
|
||||||
CONFIGUREOPTS_remove = "--disable-silent-rules"
|
CONFIGUREOPTS:remove = "--disable-silent-rules"
|
||||||
EXTRA_OECONF_remove = "--disable-static"
|
EXTRA_OECONF:remove = "--disable-static"
|
||||||
|
|
||||||
BBCLASSEXTEND = "native"
|
BBCLASSEXTEND = "native"
|
||||||
|
|||||||
@@ -25,6 +25,6 @@ do_install () {
|
|||||||
dd if=/dev/zero of=${D}${bindir}/sparsetest bs=1 count=0 seek=1M
|
dd if=/dev/zero of=${D}${bindir}/sparsetest bs=1 count=0 seek=1M
|
||||||
}
|
}
|
||||||
|
|
||||||
RDEPENDS_${PN}-gdb += "gdb"
|
RDEPENDS:${PN}-gdb += "gdb"
|
||||||
PACKAGES =+ "${PN}-gdb"
|
PACKAGES =+ "${PN}-gdb"
|
||||||
FILES_${PN}-gdb = "${bindir}/gdb.sh"
|
FILES:${PN}-gdb = "${bindir}/gdb.sh"
|
||||||
|
|||||||
@@ -10,4 +10,4 @@
|
|||||||
MACHINE = "qemux86-64"
|
MACHINE = "qemux86-64"
|
||||||
require conf/multilib.conf
|
require conf/multilib.conf
|
||||||
MULTILIBS = "multilib:lib32"
|
MULTILIBS = "multilib:lib32"
|
||||||
DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
|
DEFAULTTUNE:virtclass-multilib-lib32 = "x86"
|
||||||
|
|||||||
@@ -10,4 +10,4 @@
|
|||||||
MACHINE = "qemux86-64"
|
MACHINE = "qemux86-64"
|
||||||
require conf/multilib.conf
|
require conf/multilib.conf
|
||||||
MULTILIBS = "multilib:libx32"
|
MULTILIBS = "multilib:libx32"
|
||||||
DEFAULTTUNE_virtclass-multilib-libx32 = "x86-64-x32"
|
DEFAULTTUNE:virtclass-multilib-libx32 = "x86-64-x32"
|
||||||
|
|||||||
@@ -31,12 +31,12 @@ inherit baremetal-image
|
|||||||
COMPATIBLE_MACHINE = "qemuarmv5|qemuarm|qemuarm64|qemuriscv64"
|
COMPATIBLE_MACHINE = "qemuarmv5|qemuarm|qemuarm64|qemuriscv64"
|
||||||
|
|
||||||
BAREMETAL_QEMUARCH ?= ""
|
BAREMETAL_QEMUARCH ?= ""
|
||||||
BAREMETAL_QEMUARCH_qemuarmv5 = "versatile"
|
BAREMETAL_QEMUARCH:qemuarmv5 = "versatile"
|
||||||
BAREMETAL_QEMUARCH_qemuarm = "arm"
|
BAREMETAL_QEMUARCH:qemuarm = "arm"
|
||||||
BAREMETAL_QEMUARCH_qemuarm64 = "aarch64"
|
BAREMETAL_QEMUARCH:qemuarm64 = "aarch64"
|
||||||
BAREMETAL_QEMUARCH_qemuriscv64 = "riscv64"
|
BAREMETAL_QEMUARCH:qemuriscv64 = "riscv64"
|
||||||
|
|
||||||
EXTRA_OEMAKE_append = " QEMUARCH=${BAREMETAL_QEMUARCH} V=1"
|
EXTRA_OEMAKE:append = " QEMUARCH=${BAREMETAL_QEMUARCH} V=1"
|
||||||
|
|
||||||
|
|
||||||
# Install binaries on the proper location for baremetal-image to fetch and deploy
|
# Install binaries on the proper location for baremetal-image to fetch and deploy
|
||||||
@@ -46,7 +46,7 @@ do_install(){
|
|||||||
install -m 755 ${B}/build/hello_baremetal_${BAREMETAL_QEMUARCH}.elf ${D}/${base_libdir}/firmware/${BAREMETAL_BINNAME}.elf
|
install -m 755 ${B}/build/hello_baremetal_${BAREMETAL_QEMUARCH}.elf ${D}/${base_libdir}/firmware/${BAREMETAL_BINNAME}.elf
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += " \
|
FILES:${PN} += " \
|
||||||
${base_libdir}/firmware/${BAREMETAL_BINNAME}.bin \
|
${base_libdir}/firmware/${BAREMETAL_BINNAME}.bin \
|
||||||
${base_libdir}/firmware/${BAREMETAL_BINNAME}.elf \
|
${base_libdir}/firmware/${BAREMETAL_BINNAME}.elf \
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -6,8 +6,8 @@
|
|||||||
#
|
#
|
||||||
# More details can be found in the Kernel Dev Manual
|
# More details can be found in the Kernel Dev Manual
|
||||||
# http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configuration
|
# http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html#changing-the-configuration
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
SRC_URI_append_mydistro += " \
|
SRC_URI:append:mydistro += " \
|
||||||
file://no_rfkill.cfg \
|
file://no_rfkill.cfg \
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -15,4 +15,4 @@ S = "${WORKDIR}"
|
|||||||
# The inherit of module.bbclass will automatically name module packages with
|
# The inherit of module.bbclass will automatically name module packages with
|
||||||
# "kernel-module-" prefix as required by the oe-core build environment.
|
# "kernel-module-" prefix as required by the oe-core build environment.
|
||||||
|
|
||||||
RPROVIDES_${PN} += "kernel-module-hello"
|
RPROVIDES:${PN} += "kernel-module-hello"
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ require recipes-kernel/linux/linux-yocto.inc
|
|||||||
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1;name=machine"
|
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git;protocol=git;nocheckout=1;name=machine"
|
||||||
|
|
||||||
LINUX_VERSION ?= "4.2"
|
LINUX_VERSION ?= "4.2"
|
||||||
LINUX_VERSION_EXTENSION_append = "-custom"
|
LINUX_VERSION_EXTENSION:append = "-custom"
|
||||||
|
|
||||||
# Modify SRCREV to a different commit hash in a copy of this recipe to
|
# Modify SRCREV to a different commit hash in a copy of this recipe to
|
||||||
# build a different release of the Linux kernel.
|
# build a different release of the Linux kernel.
|
||||||
|
|||||||
@@ -27,6 +27,6 @@ do_install () {
|
|||||||
install -m 0755 ${WORKDIR}/skeleton-test ${D}${sbindir}/
|
install -m 0755 ${WORKDIR}/skeleton-test ${D}${sbindir}/
|
||||||
}
|
}
|
||||||
|
|
||||||
RDEPENDS_${PN} = "initscripts"
|
RDEPENDS:${PN} = "initscripts"
|
||||||
|
|
||||||
CONFFILES_${PN} += "${sysconfdir}/init.d/skeleton"
|
CONFFILES:${PN} += "${sysconfdir}/init.d/skeleton"
|
||||||
|
|||||||
@@ -30,19 +30,19 @@ USERADD_PACKAGES = "${PN} ${PN}-user3"
|
|||||||
# useradd command. Multiple users can be created by separating
|
# useradd command. Multiple users can be created by separating
|
||||||
# the commands with a semicolon. Here we'll create two users,
|
# the commands with a semicolon. Here we'll create two users,
|
||||||
# user1 and user2:
|
# user1 and user2:
|
||||||
USERADD_PARAM_${PN} = "-u 1200 -d /home/user1 -r -s /bin/bash user1; -u 1201 -d /home/user2 -r -s /bin/bash user2"
|
USERADD_PARAM:${PN} = "-u 1200 -d /home/user1 -r -s /bin/bash user1; -u 1201 -d /home/user2 -r -s /bin/bash user2"
|
||||||
|
|
||||||
# user3 will be managed in the useradd-example-user3 pacakge:
|
# user3 will be managed in the useradd-example-user3 pacakge:
|
||||||
# As an example, we use the -P option to set clear text password for user3
|
# As an example, we use the -P option to set clear text password for user3
|
||||||
USERADD_PARAM_${PN}-user3 = "-u 1202 -d /home/user3 -r -s /bin/bash -P 'user3' user3"
|
USERADD_PARAM:${PN}-user3 = "-u 1202 -d /home/user3 -r -s /bin/bash -P 'user3' user3"
|
||||||
|
|
||||||
# GROUPADD_PARAM works the same way, which you set to the options
|
# GROUPADD_PARAM works the same way, which you set to the options
|
||||||
# you'd normally pass to the groupadd command. This will create
|
# you'd normally pass to the groupadd command. This will create
|
||||||
# groups group1 and group2:
|
# groups group1 and group2:
|
||||||
GROUPADD_PARAM_${PN} = "-g 880 group1; -g 890 group2"
|
GROUPADD_PARAM:${PN} = "-g 880 group1; -g 890 group2"
|
||||||
|
|
||||||
# Likewise, we'll manage group3 in the useradd-example-user3 package:
|
# Likewise, we'll manage group3 in the useradd-example-user3 package:
|
||||||
GROUPADD_PARAM_${PN}-user3 = "-g 900 group3"
|
GROUPADD_PARAM:${PN}-user3 = "-g 900 group3"
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
install -d -m 755 ${D}${datadir}/user1
|
install -d -m 755 ${D}${datadir}/user1
|
||||||
@@ -69,8 +69,8 @@ do_install () {
|
|||||||
chgrp -R group3 ${D}${datadir}/user3
|
chgrp -R group3 ${D}${datadir}/user3
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} = "${datadir}/user1/* ${datadir}/user2/*"
|
FILES:${PN} = "${datadir}/user1/* ${datadir}/user2/*"
|
||||||
FILES_${PN}-user3 = "${datadir}/user3/*"
|
FILES:${PN}-user3 = "${datadir}/user3/*"
|
||||||
|
|
||||||
# Prevents do_package failures with:
|
# Prevents do_package failures with:
|
||||||
# debugsources.list: No such file or directory:
|
# debugsources.list: No such file or directory:
|
||||||
|
|||||||
@@ -19,7 +19,8 @@ def get_autotools_dep(d):
|
|||||||
|
|
||||||
return deps
|
return deps
|
||||||
|
|
||||||
DEPENDS_prepend = "${@get_autotools_dep(d)} "
|
|
||||||
|
DEPENDS:prepend = "${@get_autotools_dep(d)} "
|
||||||
|
|
||||||
inherit siteinfo
|
inherit siteinfo
|
||||||
|
|
||||||
@@ -131,7 +132,7 @@ autotools_postconfigure(){
|
|||||||
|
|
||||||
EXTRACONFFUNCS ??= ""
|
EXTRACONFFUNCS ??= ""
|
||||||
|
|
||||||
EXTRA_OECONF_append = " ${PACKAGECONFIG_CONFARGS}"
|
EXTRA_OECONF:append = " ${PACKAGECONFIG_CONFARGS}"
|
||||||
|
|
||||||
do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}"
|
do_configure[prefuncs] += "autotools_preconfigure autotools_aclocals ${EXTRACONFFUNCS}"
|
||||||
do_compile[prefuncs] += "autotools_aclocals"
|
do_compile[prefuncs] += "autotools_aclocals"
|
||||||
@@ -140,8 +141,8 @@ do_configure[postfuncs] += "autotools_postconfigure"
|
|||||||
|
|
||||||
ACLOCALDIR = "${STAGING_DATADIR}/aclocal"
|
ACLOCALDIR = "${STAGING_DATADIR}/aclocal"
|
||||||
ACLOCALEXTRAPATH = ""
|
ACLOCALEXTRAPATH = ""
|
||||||
ACLOCALEXTRAPATH_class-target = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
|
ACLOCALEXTRAPATH:class-target = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
|
||||||
ACLOCALEXTRAPATH_class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
|
ACLOCALEXTRAPATH:class-nativesdk = " -I ${STAGING_DATADIR_NATIVE}/aclocal/"
|
||||||
|
|
||||||
python autotools_aclocals () {
|
python autotools_aclocals () {
|
||||||
d.setVar("CONFIG_SITE", siteinfo_get_files(d, sysrootcache=True))
|
d.setVar("CONFIG_SITE", siteinfo_get_files(d, sysrootcache=True))
|
||||||
|
|||||||
@@ -12,8 +12,8 @@
|
|||||||
|
|
||||||
# Toolchain should be baremetal or newlib based.
|
# Toolchain should be baremetal or newlib based.
|
||||||
# TCLIBC="baremetal" or TCLIBC="newlib"
|
# TCLIBC="baremetal" or TCLIBC="newlib"
|
||||||
COMPATIBLE_HOST_libc-musl_class-target = "null"
|
COMPATIBLE_HOST:libc-musl:class-target = "null"
|
||||||
COMPATIBLE_HOST_libc-glibc_class-target = "null"
|
COMPATIBLE_HOST:libc-glibc:class-target = "null"
|
||||||
|
|
||||||
|
|
||||||
inherit rootfs-postcommands
|
inherit rootfs-postcommands
|
||||||
@@ -61,7 +61,7 @@ python do_rootfs(){
|
|||||||
# Assure binaries, manifest and qemubootconf are populated on DEPLOY_DIR_IMAGE
|
# Assure binaries, manifest and qemubootconf are populated on DEPLOY_DIR_IMAGE
|
||||||
do_image_complete[dirs] = "${TOPDIR}"
|
do_image_complete[dirs] = "${TOPDIR}"
|
||||||
SSTATETASKS += "do_image_complete"
|
SSTATETASKS += "do_image_complete"
|
||||||
SSTATE_SKIP_CREATION_task-image-complete = '1'
|
SSTATE_SKIP_CREATION:task-image-complete = '1'
|
||||||
do_image_complete[sstate-inputdirs] = "${IMGDEPLOYDIR}"
|
do_image_complete[sstate-inputdirs] = "${IMGDEPLOYDIR}"
|
||||||
do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
|
do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
|
||||||
do_image_complete[stamp-extra-info] = "${MACHINE_ARCH}"
|
do_image_complete[stamp-extra-info] = "${MACHINE_ARCH}"
|
||||||
@@ -77,18 +77,18 @@ QB_DEFAULT_KERNEL ?= "${IMAGE_LINK_NAME}.bin"
|
|||||||
QB_MEM ?= "-m 256"
|
QB_MEM ?= "-m 256"
|
||||||
QB_DEFAULT_FSTYPE ?= "bin"
|
QB_DEFAULT_FSTYPE ?= "bin"
|
||||||
QB_DTB ?= ""
|
QB_DTB ?= ""
|
||||||
QB_OPT_APPEND_append = " -nographic"
|
QB_OPT_APPEND:append = " -nographic"
|
||||||
|
|
||||||
# RISC-V tunes set the BIOS, unset, and instruct QEMU to
|
# RISC-V tunes set the BIOS, unset, and instruct QEMU to
|
||||||
# ignore the BIOS and boot from -kernel
|
# ignore the BIOS and boot from -kernel
|
||||||
QB_DEFAULT_BIOS_qemuriscv64 = ""
|
QB_DEFAULT_BIOS:qemuriscv64 = ""
|
||||||
QB_OPT_APPEND_append_qemuriscv64 = " -bios none"
|
QB_OPT_APPEND:append:qemuriscv64 = " -bios none"
|
||||||
|
|
||||||
|
|
||||||
# Use the medium-any code model for the RISC-V 64 bit implementation,
|
# Use the medium-any code model for the RISC-V 64 bit implementation,
|
||||||
# since medlow can only access addresses below 0x80000000 and RAM
|
# since medlow can only access addresses below 0x80000000 and RAM
|
||||||
# starts at 0x80000000 on RISC-V 64
|
# starts at 0x80000000 on RISC-V 64
|
||||||
CFLAGS_append_qemuriscv64 = " -mcmodel=medany"
|
CFLAGS:append:qemuriscv64 = " -mcmodel=medany"
|
||||||
|
|
||||||
|
|
||||||
# This next part is necessary to trick the build system into thinking
|
# This next part is necessary to trick the build system into thinking
|
||||||
|
|||||||
@@ -74,10 +74,10 @@ def get_base_dep(d):
|
|||||||
BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc"
|
BASE_DEFAULT_DEPS = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc"
|
||||||
|
|
||||||
BASEDEPENDS = ""
|
BASEDEPENDS = ""
|
||||||
BASEDEPENDS_class-target = "${@get_base_dep(d)}"
|
BASEDEPENDS:class-target = "${@get_base_dep(d)}"
|
||||||
BASEDEPENDS_class-nativesdk = "${@get_base_dep(d)}"
|
BASEDEPENDS:class-nativesdk = "${@get_base_dep(d)}"
|
||||||
|
|
||||||
DEPENDS_prepend="${BASEDEPENDS} "
|
DEPENDS:prepend="${BASEDEPENDS} "
|
||||||
|
|
||||||
FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
|
FILESPATH = "${@base_set_filespath(["${FILE_DIRNAME}/${BP}", "${FILE_DIRNAME}/${BPN}", "${FILE_DIRNAME}/files"], d)}"
|
||||||
# THISDIR only works properly with imediate expansion as it has to run
|
# THISDIR only works properly with imediate expansion as it has to run
|
||||||
@@ -91,7 +91,7 @@ def extra_path_elements(d):
|
|||||||
path = path + "${STAGING_BINDIR_NATIVE}/" + e + ":"
|
path = path + "${STAGING_BINDIR_NATIVE}/" + e + ":"
|
||||||
return path
|
return path
|
||||||
|
|
||||||
PATH_prepend = "${@extra_path_elements(d)}"
|
PATH:prepend = "${@extra_path_elements(d)}"
|
||||||
|
|
||||||
def get_lic_checksum_file_list(d):
|
def get_lic_checksum_file_list(d):
|
||||||
filelist = []
|
filelist = []
|
||||||
@@ -481,8 +481,8 @@ python () {
|
|||||||
% (d.getVar('PN'), flag, 's' if len(intersec) > 1 else '', ' '.join(intersec)))
|
% (d.getVar('PN'), flag, 's' if len(intersec) > 1 else '', ' '.join(intersec)))
|
||||||
|
|
||||||
appendVar('DEPENDS', extradeps)
|
appendVar('DEPENDS', extradeps)
|
||||||
appendVar('RDEPENDS_${PN}', extrardeps)
|
appendVar('RDEPENDS:${PN}', extrardeps)
|
||||||
appendVar('RRECOMMENDS_${PN}', extrarrecs)
|
appendVar('RRECOMMENDS:${PN}', extrarrecs)
|
||||||
appendVar('PACKAGECONFIG_CONFARGS', extraconf)
|
appendVar('PACKAGECONFIG_CONFARGS', extraconf)
|
||||||
|
|
||||||
pn = d.getVar('PN')
|
pn = d.getVar('PN')
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
DEPENDS_append_class-target = " bash-completion"
|
DEPENDS:append:class-target = " bash-completion"
|
||||||
|
|
||||||
PACKAGES += "${PN}-bash-completion"
|
PACKAGES += "${PN}-bash-completion"
|
||||||
|
|
||||||
FILES_${PN}-bash-completion = "${datadir}/bash-completion ${sysconfdir}/bash_completion.d"
|
FILES:${PN}-bash-completion = "${datadir}/bash-completion ${sysconfdir}/bash_completion.d"
|
||||||
|
|
||||||
RDEPENDS_${PN}-bash-completion = "bash-completion"
|
RDEPENDS:${PN}-bash-completion = "bash-completion"
|
||||||
|
|||||||
@@ -34,6 +34,6 @@ bin_package_do_install () {
|
|||||||
| tar --no-same-owner -xpf - -C ${D}
|
| tar --no-same-owner -xpf - -C ${D}
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} = "/"
|
FILES:${PN} = "/"
|
||||||
|
|
||||||
EXPORT_FUNCTIONS do_install
|
EXPORT_FUNCTIONS do_install
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
# The list of scripts which should be disabled.
|
# The list of scripts which should be disabled.
|
||||||
BINCONFIG ?= ""
|
BINCONFIG ?= ""
|
||||||
|
|
||||||
FILES_${PN}-dev += "${bindir}/*-config"
|
FILES:${PN}-dev += "${bindir}/*-config"
|
||||||
|
|
||||||
do_install_append () {
|
do_install:append () {
|
||||||
for x in ${BINCONFIG}; do
|
for x in ${BINCONFIG}; do
|
||||||
# Make the disabled script emit invalid parameters for those configure
|
# Make the disabled script emit invalid parameters for those configure
|
||||||
# scripts which call it without checking the return code.
|
# scripts which call it without checking the return code.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FILES_${PN}-dev += "${bindir}/*-config"
|
FILES:${PN}-dev += "${bindir}/*-config"
|
||||||
|
|
||||||
# The namespaces can clash here hence the two step replace
|
# The namespaces can clash here hence the two step replace
|
||||||
def get_binconfig_mangle(d):
|
def get_binconfig_mangle(d):
|
||||||
|
|||||||
@@ -45,14 +45,14 @@ BUILDHISTORY_PUSH_REPO ?= ""
|
|||||||
BUILDHISTORY_TAG ?= "build"
|
BUILDHISTORY_TAG ?= "build"
|
||||||
BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
|
BUILDHISTORY_PATH_PREFIX_STRIP ?= ""
|
||||||
|
|
||||||
SSTATEPOSTINSTFUNCS_append = " buildhistory_emit_pkghistory"
|
SSTATEPOSTINSTFUNCS:append = " buildhistory_emit_pkghistory"
|
||||||
# We want to avoid influencing the signatures of sstate tasks - first the function itself:
|
# We want to avoid influencing the signatures of sstate tasks - first the function itself:
|
||||||
sstate_install[vardepsexclude] += "buildhistory_emit_pkghistory"
|
sstate_install[vardepsexclude] += "buildhistory_emit_pkghistory"
|
||||||
# then the value added to SSTATEPOSTINSTFUNCS:
|
# then the value added to SSTATEPOSTINSTFUNCS:
|
||||||
SSTATEPOSTINSTFUNCS[vardepvalueexclude] .= "| buildhistory_emit_pkghistory"
|
SSTATEPOSTINSTFUNCS[vardepvalueexclude] .= "| buildhistory_emit_pkghistory"
|
||||||
|
|
||||||
# Similarly for our function that gets the output signatures
|
# Similarly for our function that gets the output signatures
|
||||||
SSTATEPOSTUNPACKFUNCS_append = " buildhistory_emit_outputsigs"
|
SSTATEPOSTUNPACKFUNCS:append = " buildhistory_emit_outputsigs"
|
||||||
sstate_installpkgdir[vardepsexclude] += "buildhistory_emit_outputsigs"
|
sstate_installpkgdir[vardepsexclude] += "buildhistory_emit_outputsigs"
|
||||||
SSTATEPOSTUNPACKFUNCS[vardepvalueexclude] .= "| buildhistory_emit_outputsigs"
|
SSTATEPOSTUNPACKFUNCS[vardepvalueexclude] .= "| buildhistory_emit_outputsigs"
|
||||||
|
|
||||||
@@ -676,17 +676,17 @@ IMAGE_POSTPROCESS_COMMAND[vardepvalueexclude] .= "| buildhistory_get_imageinfo ;
|
|||||||
IMAGE_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_imageinfo"
|
IMAGE_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_imageinfo"
|
||||||
|
|
||||||
# We want these to be the last run so that we get called after complementary package installation
|
# We want these to be the last run so that we get called after complementary package installation
|
||||||
POPULATE_SDK_POST_TARGET_COMMAND_append = " buildhistory_list_installed_sdk_target;"
|
POPULATE_SDK_POST_TARGET_COMMAND:append = " buildhistory_list_installed_sdk_target;"
|
||||||
POPULATE_SDK_POST_TARGET_COMMAND_append = " buildhistory_get_sdk_installed_target;"
|
POPULATE_SDK_POST_TARGET_COMMAND:append = " buildhistory_get_sdk_installed_target;"
|
||||||
POPULATE_SDK_POST_TARGET_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_sdk_target;| buildhistory_get_sdk_installed_target;"
|
POPULATE_SDK_POST_TARGET_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_sdk_target;| buildhistory_get_sdk_installed_target;"
|
||||||
POPULATE_SDK_POST_TARGET_COMMAND[vardepsexclude] += "buildhistory_list_installed_sdk_target buildhistory_get_sdk_installed_target"
|
POPULATE_SDK_POST_TARGET_COMMAND[vardepsexclude] += "buildhistory_list_installed_sdk_target buildhistory_get_sdk_installed_target"
|
||||||
|
|
||||||
POPULATE_SDK_POST_HOST_COMMAND_append = " buildhistory_list_installed_sdk_host;"
|
POPULATE_SDK_POST_HOST_COMMAND:append = " buildhistory_list_installed_sdk_host;"
|
||||||
POPULATE_SDK_POST_HOST_COMMAND_append = " buildhistory_get_sdk_installed_host;"
|
POPULATE_SDK_POST_HOST_COMMAND:append = " buildhistory_get_sdk_installed_host;"
|
||||||
POPULATE_SDK_POST_HOST_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_sdk_host;| buildhistory_get_sdk_installed_host;"
|
POPULATE_SDK_POST_HOST_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_sdk_host;| buildhistory_get_sdk_installed_host;"
|
||||||
POPULATE_SDK_POST_HOST_COMMAND[vardepsexclude] += "buildhistory_list_installed_sdk_host buildhistory_get_sdk_installed_host"
|
POPULATE_SDK_POST_HOST_COMMAND[vardepsexclude] += "buildhistory_list_installed_sdk_host buildhistory_get_sdk_installed_host"
|
||||||
|
|
||||||
SDK_POSTPROCESS_COMMAND_append = " buildhistory_get_sdkinfo ; buildhistory_get_extra_sdkinfo; "
|
SDK_POSTPROCESS_COMMAND:append = " buildhistory_get_sdkinfo ; buildhistory_get_extra_sdkinfo; "
|
||||||
SDK_POSTPROCESS_COMMAND[vardepvalueexclude] .= "| buildhistory_get_sdkinfo ; buildhistory_get_extra_sdkinfo; "
|
SDK_POSTPROCESS_COMMAND[vardepvalueexclude] .= "| buildhistory_get_sdkinfo ; buildhistory_get_extra_sdkinfo; "
|
||||||
SDK_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_sdkinfo buildhistory_get_extra_sdkinfo"
|
SDK_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_sdkinfo buildhistory_get_extra_sdkinfo"
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# Path to the CMake file to process.
|
# Path to the CMake file to process.
|
||||||
OECMAKE_SOURCEPATH ??= "${S}"
|
OECMAKE_SOURCEPATH ??= "${S}"
|
||||||
|
|
||||||
DEPENDS_prepend = "cmake-native "
|
DEPENDS:prepend = "cmake-native "
|
||||||
B = "${WORKDIR}/build"
|
B = "${WORKDIR}/build"
|
||||||
|
|
||||||
# What CMake generator to use.
|
# What CMake generator to use.
|
||||||
@@ -57,13 +57,13 @@ OECMAKE_PERLNATIVE_DIR ??= ""
|
|||||||
OECMAKE_EXTRA_ROOT_PATH ?= ""
|
OECMAKE_EXTRA_ROOT_PATH ?= ""
|
||||||
|
|
||||||
OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "ONLY"
|
OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "ONLY"
|
||||||
OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM_class-native = "BOTH"
|
OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM:class-native = "BOTH"
|
||||||
|
|
||||||
EXTRA_OECMAKE_append = " ${PACKAGECONFIG_CONFARGS}"
|
EXTRA_OECMAKE:append = " ${PACKAGECONFIG_CONFARGS}"
|
||||||
|
|
||||||
export CMAKE_BUILD_PARALLEL_LEVEL
|
export CMAKE_BUILD_PARALLEL_LEVEL
|
||||||
CMAKE_BUILD_PARALLEL_LEVEL_task-compile = "${@oe.utils.parallel_make(d, False)}"
|
CMAKE_BUILD_PARALLEL_LEVEL:task-compile = "${@oe.utils.parallel_make(d, False)}"
|
||||||
CMAKE_BUILD_PARALLEL_LEVEL_task-install = "${@oe.utils.parallel_make(d, True)}"
|
CMAKE_BUILD_PARALLEL_LEVEL:task-install = "${@oe.utils.parallel_make(d, True)}"
|
||||||
|
|
||||||
OECMAKE_TARGET_COMPILE ?= "all"
|
OECMAKE_TARGET_COMPILE ?= "all"
|
||||||
OECMAKE_TARGET_INSTALL ?= "install"
|
OECMAKE_TARGET_INSTALL ?= "install"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
#
|
#
|
||||||
# 3. It is easy to add a new type compression by editing
|
# 3. It is easy to add a new type compression by editing
|
||||||
# local.conf, such as:
|
# local.conf, such as:
|
||||||
# DOC_COMPRESS_LIST_append = ' abc'
|
# DOC_COMPRESS_LIST:append = ' abc'
|
||||||
# DOC_COMPRESS = 'abc'
|
# DOC_COMPRESS = 'abc'
|
||||||
# DOC_COMPRESS_CMD[abc] = 'abc compress cmd ***'
|
# DOC_COMPRESS_CMD[abc] = 'abc compress cmd ***'
|
||||||
# DOC_DECOMPRESS_CMD[abc] = 'abc decompress cmd ***'
|
# DOC_DECOMPRESS_CMD[abc] = 'abc decompress cmd ***'
|
||||||
@@ -225,7 +225,7 @@ python compress_doc_updatealternatives () {
|
|||||||
infodir = d.getVar("infodir")
|
infodir = d.getVar("infodir")
|
||||||
compress_mode = d.getVar('DOC_COMPRESS')
|
compress_mode = d.getVar('DOC_COMPRESS')
|
||||||
for pkg in (d.getVar('PACKAGES') or "").split():
|
for pkg in (d.getVar('PACKAGES') or "").split():
|
||||||
old_names = (d.getVar('ALTERNATIVE_%s' % pkg) or "").split()
|
old_names = (d.getVar('ALTERNATIVE:%s' % pkg) or "").split()
|
||||||
new_names = []
|
new_names = []
|
||||||
for old_name in old_names:
|
for old_name in old_names:
|
||||||
old_link = d.getVarFlag('ALTERNATIVE_LINK_NAME', old_name)
|
old_link = d.getVarFlag('ALTERNATIVE_LINK_NAME', old_name)
|
||||||
@@ -258,6 +258,6 @@ python compress_doc_updatealternatives () {
|
|||||||
new_names.append(new_name)
|
new_names.append(new_name)
|
||||||
|
|
||||||
if new_names:
|
if new_names:
|
||||||
d.setVar('ALTERNATIVE_%s' % pkg, ' '.join(new_names))
|
d.setVar('ALTERNATIVE:%s' % pkg, ' '.join(new_names))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
# cpan-base providers various perl related information needed for building
|
# cpan-base providers various perl related information needed for building
|
||||||
# cpan modules
|
# cpan modules
|
||||||
#
|
#
|
||||||
FILES_${PN} += "${libdir}/perl5 ${datadir}/perl5"
|
FILES:${PN} += "${libdir}/perl5 ${datadir}/perl5"
|
||||||
|
|
||||||
DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}"
|
DEPENDS += "${@["perl", "perl-native"][(bb.data.inherits_class('native', d))]}"
|
||||||
RDEPENDS_${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
|
RDEPENDS:${PN} += "${@["perl", ""][(bb.data.inherits_class('native', d))]}"
|
||||||
|
|
||||||
inherit perl-version
|
inherit perl-version
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ def is_target(d):
|
|||||||
return "no"
|
return "no"
|
||||||
|
|
||||||
PERLLIBDIRS = "${libdir}/perl5"
|
PERLLIBDIRS = "${libdir}/perl5"
|
||||||
PERLLIBDIRS_class-native = "${libdir}/perl5"
|
PERLLIBDIRS:class-native = "${libdir}/perl5"
|
||||||
|
|
||||||
def cpan_upstream_check_pattern(d):
|
def cpan_upstream_check_pattern(d):
|
||||||
for x in (d.getVar('SRC_URI') or '').split(' '):
|
for x in (d.getVar('SRC_URI') or '').split(' '):
|
||||||
|
|||||||
@@ -41,12 +41,12 @@ cpan_do_configure () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure_append_class-target() {
|
do_configure:append:class-target() {
|
||||||
find . -name Makefile | xargs sed -E -i \
|
find . -name Makefile | xargs sed -E -i \
|
||||||
-e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g'
|
-e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g'
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure_append_class-nativesdk() {
|
do_configure:append:class-nativesdk() {
|
||||||
find . -name Makefile | xargs sed -E -i \
|
find . -name Makefile | xargs sed -E -i \
|
||||||
-e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g'
|
-e 's:LD_RUN_PATH ?= ?"?[^"]*"?::g'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ STAGING_DIR_HOST = "${RECIPE_SYSROOT}"
|
|||||||
|
|
||||||
TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
|
TOOLCHAIN_OPTIONS = " --sysroot=${RECIPE_SYSROOT}"
|
||||||
|
|
||||||
PATH_append = ":${TMPDIR}/sysroots/${HOST_ARCH}/${bindir_cross}"
|
PATH:append = ":${TMPDIR}/sysroots/${HOST_ARCH}/${bindir_cross}"
|
||||||
PKGHIST_DIR = "${TMPDIR}/pkghistory/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/"
|
PKGHIST_DIR = "${TMPDIR}/pkghistory/${HOST_ARCH}-${SDKPKGSUFFIX}${HOST_VENDOR}-${HOST_OS}/"
|
||||||
|
|
||||||
HOST_ARCH = "${SDK_ARCH}"
|
HOST_ARCH = "${SDK_ARCH}"
|
||||||
@@ -129,7 +129,7 @@ LDFLAGS = "${BUILDSDK_LDFLAGS} \
|
|||||||
# We need chrpath >= 0.14 to ensure we can deal with 32 and 64 bit
|
# We need chrpath >= 0.14 to ensure we can deal with 32 and 64 bit
|
||||||
# binaries
|
# binaries
|
||||||
#
|
#
|
||||||
DEPENDS_append = " chrpath-replacement-native"
|
DEPENDS:append = " chrpath-replacement-native"
|
||||||
EXTRANATIVEPATH += "chrpath-native"
|
EXTRANATIVEPATH += "chrpath-native"
|
||||||
|
|
||||||
# Path mangling needed by the cross packaging
|
# Path mangling needed by the cross packaging
|
||||||
@@ -153,7 +153,7 @@ base_sbindir = "${bindir}"
|
|||||||
libdir = "${exec_prefix}/lib/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
|
libdir = "${exec_prefix}/lib/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
|
||||||
libexecdir = "${exec_prefix}/libexec/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
|
libexecdir = "${exec_prefix}/libexec/${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
|
||||||
|
|
||||||
FILES_${PN} = "${prefix}"
|
FILES:${PN} = "${prefix}"
|
||||||
|
|
||||||
export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${exec_prefix}/lib/pkgconfig"
|
export PKG_CONFIG_DIR = "${STAGING_DIR_HOST}${exec_prefix}/lib/pkgconfig"
|
||||||
export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
|
export PKG_CONFIG_SYSROOT_DIR = "${STAGING_DIR_HOST}"
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ EXCLUDE_FROM_WORLD = "1"
|
|||||||
CLASSOVERRIDE = "class-cross"
|
CLASSOVERRIDE = "class-cross"
|
||||||
PACKAGES = ""
|
PACKAGES = ""
|
||||||
PACKAGES_DYNAMIC = ""
|
PACKAGES_DYNAMIC = ""
|
||||||
PACKAGES_DYNAMIC_class-native = ""
|
PACKAGES_DYNAMIC:class-native = ""
|
||||||
|
|
||||||
HOST_ARCH = "${BUILD_ARCH}"
|
HOST_ARCH = "${BUILD_ARCH}"
|
||||||
HOST_VENDOR = "${BUILD_VENDOR}"
|
HOST_VENDOR = "${BUILD_VENDOR}"
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ python cve_check_write_rootfs_manifest () {
|
|||||||
bb.plain("Image CVE report stored in: %s" % manifest_name)
|
bb.plain("Image CVE report stored in: %s" % manifest_name)
|
||||||
}
|
}
|
||||||
|
|
||||||
ROOTFS_POSTPROCESS_COMMAND_prepend = "${@'cve_check_write_rootfs_manifest; ' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}"
|
ROOTFS_POSTPROCESS_COMMAND:prepend = "${@'cve_check_write_rootfs_manifest; ' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}"
|
||||||
do_rootfs[recrdeptask] += "${@'do_cve_check' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}"
|
do_rootfs[recrdeptask] += "${@'do_cve_check' if d.getVar('CVE_CHECK_CREATE_MANIFEST') == '1' else ''}"
|
||||||
|
|
||||||
def get_patches_cves(d):
|
def get_patches_cves(d):
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# depends are correct
|
# depends are correct
|
||||||
#
|
#
|
||||||
# Custom library package names can be defined setting
|
# Custom library package names can be defined setting
|
||||||
# DEBIANNAME_ + pkgname to the desired name.
|
# DEBIANNAME: + pkgname to the desired name.
|
||||||
#
|
#
|
||||||
# Better expressed as ensure all RDEPENDS package before we package
|
# Better expressed as ensure all RDEPENDS package before we package
|
||||||
# This means we can't have circular RDEPENDS/RRECOMMENDS
|
# This means we can't have circular RDEPENDS/RRECOMMENDS
|
||||||
@@ -51,11 +51,11 @@ python debian_package_name_hook () {
|
|||||||
return (s[stat.ST_MODE] & stat.S_IEXEC)
|
return (s[stat.ST_MODE] & stat.S_IEXEC)
|
||||||
|
|
||||||
def add_rprovides(pkg, d):
|
def add_rprovides(pkg, d):
|
||||||
newpkg = d.getVar('PKG_' + pkg)
|
newpkg = d.getVar('PKG:' + pkg)
|
||||||
if newpkg and newpkg != pkg:
|
if newpkg and newpkg != pkg:
|
||||||
provs = (d.getVar('RPROVIDES_' + pkg) or "").split()
|
provs = (d.getVar('RPROVIDES:' + pkg) or "").split()
|
||||||
if pkg not in provs:
|
if pkg not in provs:
|
||||||
d.appendVar('RPROVIDES_' + pkg, " " + pkg + " (=" + d.getVar("PKGV") + ")")
|
d.appendVar('RPROVIDES:' + pkg, " " + pkg + " (=" + d.getVar("PKGV") + ")")
|
||||||
|
|
||||||
def auto_libname(packages, orig_pkg):
|
def auto_libname(packages, orig_pkg):
|
||||||
p = lambda var: pathlib.PurePath(d.getVar(var))
|
p = lambda var: pathlib.PurePath(d.getVar(var))
|
||||||
@@ -110,10 +110,10 @@ python debian_package_name_hook () {
|
|||||||
if soname_result:
|
if soname_result:
|
||||||
(pkgname, devname) = soname_result
|
(pkgname, devname) = soname_result
|
||||||
for pkg in packages.split():
|
for pkg in packages.split():
|
||||||
if (d.getVar('PKG_' + pkg, False) or d.getVar('DEBIAN_NOAUTONAME_' + pkg, False)):
|
if (d.getVar('PKG:' + pkg, False) or d.getVar('DEBIAN_NOAUTONAME:' + pkg, False)):
|
||||||
add_rprovides(pkg, d)
|
add_rprovides(pkg, d)
|
||||||
continue
|
continue
|
||||||
debian_pn = d.getVar('DEBIANNAME_' + pkg, False)
|
debian_pn = d.getVar('DEBIANNAME:' + pkg, False)
|
||||||
if debian_pn:
|
if debian_pn:
|
||||||
newpkg = debian_pn
|
newpkg = debian_pn
|
||||||
elif pkg == orig_pkg:
|
elif pkg == orig_pkg:
|
||||||
@@ -126,7 +126,7 @@ python debian_package_name_hook () {
|
|||||||
newpkg = mlpre + newpkg
|
newpkg = mlpre + newpkg
|
||||||
if newpkg != pkg:
|
if newpkg != pkg:
|
||||||
bb.note("debian: renaming %s to %s" % (pkg, newpkg))
|
bb.note("debian: renaming %s to %s" % (pkg, newpkg))
|
||||||
d.setVar('PKG_' + pkg, newpkg)
|
d.setVar('PKG:' + pkg, newpkg)
|
||||||
add_rprovides(pkg, d)
|
add_rprovides(pkg, d)
|
||||||
else:
|
else:
|
||||||
add_rprovides(orig_pkg, d)
|
add_rprovides(orig_pkg, d)
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ PROVIDES = "virtual/dtb"
|
|||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
SYSROOT_DIRS += "/boot/devicetree"
|
SYSROOT_DIRS += "/boot/devicetree"
|
||||||
FILES_${PN} = "/boot/devicetree/*.dtb /boot/devicetree/*.dtbo"
|
FILES:${PN} = "/boot/devicetree/*.dtb /boot/devicetree/*.dtbo"
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
S = "${WORKDIR}"
|
||||||
B = "${WORKDIR}/build"
|
B = "${WORKDIR}/build"
|
||||||
|
|||||||
@@ -4,8 +4,8 @@
|
|||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# BBCLASSEXTEND = "devupstream:target"
|
# BBCLASSEXTEND = "devupstream:target"
|
||||||
# SRC_URI_class-devupstream = "git://git.example.com/example"
|
# SRC_URI:class-devupstream = "git://git.example.com/example"
|
||||||
# SRCREV_class-devupstream = "abcdef"
|
# SRCREV:class-devupstream = "abcdef"
|
||||||
#
|
#
|
||||||
# If the first entry in SRC_URI is a git: URL then S is rewritten to
|
# If the first entry in SRC_URI is a git: URL then S is rewritten to
|
||||||
# WORKDIR/git.
|
# WORKDIR/git.
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# This makes it simpler to write .bbappends that only change the
|
# This makes it simpler to write .bbappends that only change the
|
||||||
# task signatures of the recipe if the change is really enabled,
|
# task signatures of the recipe if the change is really enabled,
|
||||||
# for example with:
|
# for example with:
|
||||||
# do_install_append_df-my-feature () { ... }
|
# do_install:append_df-my-feature () { ... }
|
||||||
# where "my-feature" is a DISTRO_FEATURE.
|
# where "my-feature" is a DISTRO_FEATURE.
|
||||||
#
|
#
|
||||||
# The class is meant to be used in a layer.conf or distro
|
# The class is meant to be used in a layer.conf or distro
|
||||||
@@ -22,8 +22,8 @@ DISTRO_FEATURES_OVERRIDES ?= ""
|
|||||||
DISTRO_FEATURES_OVERRIDES[doc] = "A space-separated list of <feature> entries. \
|
DISTRO_FEATURES_OVERRIDES[doc] = "A space-separated list of <feature> entries. \
|
||||||
Each entry is added to OVERRIDES as df-<feature> if <feature> is in DISTRO_FEATURES."
|
Each entry is added to OVERRIDES as df-<feature> if <feature> is in DISTRO_FEATURES."
|
||||||
|
|
||||||
DISTRO_FEATURES_FILTER_NATIVE_append = " ${DISTRO_FEATURES_OVERRIDES}"
|
DISTRO_FEATURES_FILTER_NATIVE:append = " ${DISTRO_FEATURES_OVERRIDES}"
|
||||||
DISTRO_FEATURES_FILTER_NATIVESDK_append = " ${DISTRO_FEATURES_OVERRIDES}"
|
DISTRO_FEATURES_FILTER_NATIVESDK:append = " ${DISTRO_FEATURES_OVERRIDES}"
|
||||||
|
|
||||||
# If DISTRO_FEATURES_OVERRIDES or DISTRO_FEATURES show up in a task
|
# If DISTRO_FEATURES_OVERRIDES or DISTRO_FEATURES show up in a task
|
||||||
# signature because of this line, then the task dependency on
|
# signature because of this line, then the task dependency on
|
||||||
|
|||||||
@@ -13,12 +13,12 @@ export CCSHARED = "-fPIC -DPIC"
|
|||||||
# the python executable
|
# the python executable
|
||||||
export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
|
export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
|
||||||
|
|
||||||
FILES_${PN} += "${libdir}/* ${libdir}/${PYTHON_DIR}/*"
|
FILES:${PN} += "${libdir}/* ${libdir}/${PYTHON_DIR}/*"
|
||||||
|
|
||||||
FILES_${PN}-staticdev += "\
|
FILES:${PN}-staticdev += "\
|
||||||
${PYTHON_SITEPACKAGES_DIR}/*.a \
|
${PYTHON_SITEPACKAGES_DIR}/*.a \
|
||||||
"
|
"
|
||||||
FILES_${PN}-dev += "\
|
FILES:${PN}-dev += "\
|
||||||
${datadir}/pkgconfig \
|
${datadir}/pkgconfig \
|
||||||
${libdir}/pkgconfig \
|
${libdir}/pkgconfig \
|
||||||
${PYTHON_SITEPACKAGES_DIR}/*.la \
|
${PYTHON_SITEPACKAGES_DIR}/*.la \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
DEPENDS_append_class-target = " ${PYTHON_PN}-native ${PYTHON_PN}"
|
DEPENDS:append:class-target = " ${PYTHON_PN}-native ${PYTHON_PN}"
|
||||||
DEPENDS_append_class-nativesdk = " ${PYTHON_PN}-native ${PYTHON_PN}"
|
DEPENDS:append:class-nativesdk = " ${PYTHON_PN}-native ${PYTHON_PN}"
|
||||||
RDEPENDS_${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}"
|
RDEPENDS:${PN} += "${@['', '${PYTHON_PN}-core']['${CLASSOVERRIDE}' == 'class-target']}"
|
||||||
|
|
||||||
inherit distutils-common-base python3native python3targetconfig
|
inherit distutils-common-base python3native python3targetconfig
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ DISTUTILS_INSTALL_ARGS ?= "--root=${D} \
|
|||||||
--install-data=${datadir}"
|
--install-data=${datadir}"
|
||||||
|
|
||||||
DISTUTILS_PYTHON = "python3"
|
DISTUTILS_PYTHON = "python3"
|
||||||
DISTUTILS_PYTHON_class-native = "nativepython3"
|
DISTUTILS_PYTHON:class-native = "nativepython3"
|
||||||
|
|
||||||
DISTUTILS_SETUP_PATH ?= "${S}"
|
DISTUTILS_SETUP_PATH ?= "${S}"
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# called "myrecipe" you would do:
|
# called "myrecipe" you would do:
|
||||||
#
|
#
|
||||||
# INHERIT += "externalsrc"
|
# INHERIT += "externalsrc"
|
||||||
# EXTERNALSRC_pn-myrecipe = "/path/to/my/source/tree"
|
# EXTERNALSRC:pn-myrecipe = "/path/to/my/source/tree"
|
||||||
#
|
#
|
||||||
# In order to make this class work for both target and native versions (or with
|
# In order to make this class work for both target and native versions (or with
|
||||||
# multilibs/cross or other BBCLASSEXTEND variants), B is set to point to a separate
|
# multilibs/cross or other BBCLASSEXTEND variants), B is set to point to a separate
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
# the default, but the build directory can be set to the source directory if
|
# the default, but the build directory can be set to the source directory if
|
||||||
# circumstances dictate by setting EXTERNALSRC_BUILD to the same value, e.g.:
|
# circumstances dictate by setting EXTERNALSRC_BUILD to the same value, e.g.:
|
||||||
#
|
#
|
||||||
# EXTERNALSRC_BUILD_pn-myrecipe = "/path/to/my/source/tree"
|
# EXTERNALSRC_BUILD:pn-myrecipe = "/path/to/my/source/tree"
|
||||||
#
|
#
|
||||||
|
|
||||||
SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
|
SRCTREECOVEREDTASKS ?= "do_patch do_unpack do_fetch"
|
||||||
@@ -45,11 +45,11 @@ python () {
|
|||||||
if bpn == d.getVar('PN') or not classextend:
|
if bpn == d.getVar('PN') or not classextend:
|
||||||
if (externalsrc or
|
if (externalsrc or
|
||||||
('native' in classextend and
|
('native' in classextend and
|
||||||
d.getVar('EXTERNALSRC_pn-%s-native' % bpn)) or
|
d.getVar('EXTERNALSRC:pn-%s-native' % bpn)) or
|
||||||
('nativesdk' in classextend and
|
('nativesdk' in classextend and
|
||||||
d.getVar('EXTERNALSRC_pn-nativesdk-%s' % bpn)) or
|
d.getVar('EXTERNALSRC:pn-nativesdk-%s' % bpn)) or
|
||||||
('cross' in classextend and
|
('cross' in classextend and
|
||||||
d.getVar('EXTERNALSRC_pn-%s-cross' % bpn))):
|
d.getVar('EXTERNALSRC:pn-%s-cross' % bpn))):
|
||||||
d.setVar('BB_DONT_CACHE', '1')
|
d.setVar('BB_DONT_CACHE', '1')
|
||||||
|
|
||||||
if externalsrc:
|
if externalsrc:
|
||||||
|
|||||||
@@ -14,10 +14,10 @@
|
|||||||
|
|
||||||
inherit useradd_base
|
inherit useradd_base
|
||||||
|
|
||||||
PACKAGE_INSTALL_append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}"
|
PACKAGE_INSTALL:append = " ${@['', 'base-passwd shadow'][bool(d.getVar('EXTRA_USERS_PARAMS'))]}"
|
||||||
|
|
||||||
# Image level user / group settings
|
# Image level user / group settings
|
||||||
ROOTFS_POSTPROCESS_COMMAND_append = " set_user_group;"
|
ROOTFS_POSTPROCESS_COMMAND:append = " set_user_group;"
|
||||||
|
|
||||||
# Image level user / group settings
|
# Image level user / group settings
|
||||||
set_user_group () {
|
set_user_group () {
|
||||||
|
|||||||
@@ -35,23 +35,23 @@ python () {
|
|||||||
deps = d.getVar("FONT_EXTRA_RDEPENDS")
|
deps = d.getVar("FONT_EXTRA_RDEPENDS")
|
||||||
|
|
||||||
for pkg in font_pkgs:
|
for pkg in font_pkgs:
|
||||||
if deps: d.appendVar('RDEPENDS_' + pkg, ' '+deps)
|
if deps: d.appendVar('RDEPENDS:' + pkg, ' '+deps)
|
||||||
}
|
}
|
||||||
|
|
||||||
python add_fontcache_postinsts() {
|
python add_fontcache_postinsts() {
|
||||||
for pkg in d.getVar('FONT_PACKAGES').split():
|
for pkg in d.getVar('FONT_PACKAGES').split():
|
||||||
bb.note("adding fonts postinst and postrm scripts to %s" % pkg)
|
bb.note("adding fonts postinst and postrm scripts to %s" % pkg)
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst')
|
postinst = d.getVar('pkg_postinst:%s' % pkg) or d.getVar('pkg_postinst')
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('fontcache_common')
|
postinst += d.getVar('fontcache_common')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
|
|
||||||
postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm')
|
postrm = d.getVar('pkg_postrm:%s' % pkg) or d.getVar('pkg_postrm')
|
||||||
if not postrm:
|
if not postrm:
|
||||||
postrm = '#!/bin/sh\n'
|
postrm = '#!/bin/sh\n'
|
||||||
postrm += d.getVar('fontcache_common')
|
postrm += d.getVar('fontcache_common')
|
||||||
d.setVar('pkg_postrm_%s' % pkg, postrm)
|
d.setVar('pkg_postrm:%s' % pkg, postrm)
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGEFUNCS =+ "add_fontcache_postinsts"
|
PACKAGEFUNCS =+ "add_fontcache_postinsts"
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ for SCHEMA in ${SCHEMA_FILES}; do
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_append () {
|
python populate_packages:append () {
|
||||||
import re
|
import re
|
||||||
packages = d.getVar('PACKAGES').split()
|
packages = d.getVar('PACKAGES').split()
|
||||||
pkgdest = d.getVar('PKGDEST')
|
pkgdest = d.getVar('PKGDEST')
|
||||||
@@ -57,15 +57,15 @@ python populate_packages_append () {
|
|||||||
if schemas != []:
|
if schemas != []:
|
||||||
bb.note("adding gconf postinst and prerm scripts to %s" % pkg)
|
bb.note("adding gconf postinst and prerm scripts to %s" % pkg)
|
||||||
d.setVar('SCHEMA_FILES', " ".join(schemas))
|
d.setVar('SCHEMA_FILES', " ".join(schemas))
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('gconf_postinst')
|
postinst += d.getVar('gconf_postinst')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
prerm = d.getVar('pkg_prerm_%s' % pkg)
|
prerm = d.getVar('pkg_prerm:%s' % pkg)
|
||||||
if not prerm:
|
if not prerm:
|
||||||
prerm = '#!/bin/sh\n'
|
prerm = '#!/bin/sh\n'
|
||||||
prerm += d.getVar('gconf_prerm')
|
prerm += d.getVar('gconf_prerm')
|
||||||
d.setVar('pkg_prerm_%s' % pkg, prerm)
|
d.setVar('pkg_prerm:%s' % pkg, prerm)
|
||||||
d.appendVar("RDEPENDS_%s" % pkg, ' ' + d.getVar('MLPREFIX', False) + 'gconf')
|
d.appendVar("RDEPENDS:%s" % pkg, ' ' + d.getVar('MLPREFIX', False) + 'gconf')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,10 +13,10 @@ def gettext_oeconf(d):
|
|||||||
return '--disable-nls'
|
return '--disable-nls'
|
||||||
return "--enable-nls"
|
return "--enable-nls"
|
||||||
|
|
||||||
BASEDEPENDS_append = " ${@gettext_dependencies(d)}"
|
BASEDEPENDS:append = " ${@gettext_dependencies(d)}"
|
||||||
EXTRA_OECONF_append = " ${@gettext_oeconf(d)}"
|
EXTRA_OECONF:append = " ${@gettext_oeconf(d)}"
|
||||||
|
|
||||||
# Without this, msgfmt from gettext-native will not find ITS files
|
# Without this, msgfmt from gettext-native will not find ITS files
|
||||||
# provided by target recipes (for example, polkit.its).
|
# provided by target recipes (for example, polkit.its).
|
||||||
GETTEXTDATADIRS_append_class-target = ":${STAGING_DATADIR}/gettext"
|
GETTEXTDATADIRS:append:class-target = ":${STAGING_DATADIR}/gettext"
|
||||||
export GETTEXTDATADIRS
|
export GETTEXTDATADIRS
|
||||||
|
|||||||
@@ -7,8 +7,8 @@
|
|||||||
GIDOCGEN_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'True', 'False', d)}"
|
GIDOCGEN_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'True', 'False', d)}"
|
||||||
# When building native recipes, disable gi-docgen, as it is not necessary,
|
# When building native recipes, disable gi-docgen, as it is not necessary,
|
||||||
# pulls in additional dependencies, and makes build times longer
|
# pulls in additional dependencies, and makes build times longer
|
||||||
GIDOCGEN_ENABLED_class-native = "False"
|
GIDOCGEN_ENABLED:class-native = "False"
|
||||||
GIDOCGEN_ENABLED_class-nativesdk = "False"
|
GIDOCGEN_ENABLED:class-nativesdk = "False"
|
||||||
|
|
||||||
# meson: default option name to enable/disable gi-docgen. This matches most
|
# meson: default option name to enable/disable gi-docgen. This matches most
|
||||||
# projects' configuration. In doubts - check meson_options.txt in project's
|
# projects' configuration. In doubts - check meson_options.txt in project's
|
||||||
@@ -18,7 +18,7 @@ GIDOCGEN_MESON_ENABLE_FLAG ?= 'true'
|
|||||||
GIDOCGEN_MESON_DISABLE_FLAG ?= 'false'
|
GIDOCGEN_MESON_DISABLE_FLAG ?= 'false'
|
||||||
|
|
||||||
# Auto enable/disable based on GIDOCGEN_ENABLED
|
# Auto enable/disable based on GIDOCGEN_ENABLED
|
||||||
EXTRA_OEMESON_prepend = "-D${GIDOCGEN_MESON_OPTION}=${@bb.utils.contains('GIDOCGEN_ENABLED', 'True', '${GIDOCGEN_MESON_ENABLE_FLAG}', '${GIDOCGEN_MESON_DISABLE_FLAG}', d)} "
|
EXTRA_OEMESON:prepend = "-D${GIDOCGEN_MESON_OPTION}=${@bb.utils.contains('GIDOCGEN_ENABLED', 'True', '${GIDOCGEN_MESON_ENABLE_FLAG}', '${GIDOCGEN_MESON_DISABLE_FLAG}', d)} "
|
||||||
|
|
||||||
DEPENDS_append = "${@' gi-docgen-native gi-docgen' if d.getVar('GIDOCGEN_ENABLED') == 'True' else ''}"
|
DEPENDS:append = "${@' gi-docgen-native gi-docgen' if d.getVar('GIDOCGEN_ENABLED') == 'True' else ''}"
|
||||||
|
|
||||||
|
|||||||
@@ -17,22 +17,22 @@ else
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_append () {
|
python populate_packages:append () {
|
||||||
packages = d.getVar('GIO_MODULE_PACKAGES').split()
|
packages = d.getVar('GIO_MODULE_PACKAGES').split()
|
||||||
|
|
||||||
for pkg in packages:
|
for pkg in packages:
|
||||||
bb.note("adding gio-module-cache postinst and postrm scripts to %s" % pkg)
|
bb.note("adding gio-module-cache postinst and postrm scripts to %s" % pkg)
|
||||||
|
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('gio_module_cache_common')
|
postinst += d.getVar('gio_module_cache_common')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
|
|
||||||
postrm = d.getVar('pkg_postrm_%s' % pkg)
|
postrm = d.getVar('pkg_postrm:%s' % pkg)
|
||||||
if not postrm:
|
if not postrm:
|
||||||
postrm = '#!/bin/sh\n'
|
postrm = '#!/bin/sh\n'
|
||||||
postrm += d.getVar('gio_module_cache_common')
|
postrm += d.getVar('gio_module_cache_common')
|
||||||
d.setVar('pkg_postrm_%s' % pkg, postrm)
|
d.setVar('pkg_postrm:%s' % pkg, postrm)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
#
|
#
|
||||||
# Copyright 2018 (C) O.S. Systems Software LTDA.
|
# Copyright 2018 (C) O.S. Systems Software LTDA.
|
||||||
|
|
||||||
DEPENDS_append = " glide-native"
|
DEPENDS:append = " glide-native"
|
||||||
|
|
||||||
do_compile_prepend() {
|
do_compile:prepend() {
|
||||||
( cd ${B}/src/${GO_IMPORT} && glide install )
|
( cd ${B}/src/${GO_IMPORT} && glide install )
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ SECTION ?= "x11/gnome"
|
|||||||
GNOMEBN ?= "${BPN}"
|
GNOMEBN ?= "${BPN}"
|
||||||
SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive"
|
SRC_URI = "${GNOME_MIRROR}/${GNOMEBN}/${@gnome_verdir("${PV}")}/${GNOMEBN}-${PV}.tar.${GNOME_COMPRESS_TYPE};name=archive"
|
||||||
|
|
||||||
FILES_${PN} += "${datadir}/application-registry \
|
FILES:${PN} += "${datadir}/application-registry \
|
||||||
${datadir}/mime-info \
|
${datadir}/mime-info \
|
||||||
${datadir}/mime/packages \
|
${datadir}/mime/packages \
|
||||||
${datadir}/mime/application \
|
${datadir}/mime/application \
|
||||||
@@ -19,12 +19,12 @@ FILES_${PN} += "${datadir}/application-registry \
|
|||||||
${datadir}/icons \
|
${datadir}/icons \
|
||||||
"
|
"
|
||||||
|
|
||||||
FILES_${PN}-doc += "${datadir}/devhelp"
|
FILES:${PN}-doc += "${datadir}/devhelp"
|
||||||
|
|
||||||
GNOMEBASEBUILDCLASS ??= "autotools"
|
GNOMEBASEBUILDCLASS ??= "autotools"
|
||||||
inherit ${GNOMEBASEBUILDCLASS} pkgconfig
|
inherit ${GNOMEBASEBUILDCLASS} pkgconfig
|
||||||
|
|
||||||
do_install_append() {
|
do_install:append() {
|
||||||
rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
|
rm -rf ${D}${localstatedir}/lib/scrollkeeper/*
|
||||||
rm -rf ${D}${localstatedir}/scrollkeeper/*
|
rm -rf ${D}${localstatedir}/scrollkeeper/*
|
||||||
rm -f ${D}${datadir}/applications/*.cache
|
rm -f ${D}${datadir}/applications/*.cache
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
# The '-modcacherw' option ensures we have write access to the cached objects so
|
# The '-modcacherw' option ensures we have write access to the cached objects so
|
||||||
# we avoid errors during clean task as well as when removing the TMPDIR.
|
# we avoid errors during clean task as well as when removing the TMPDIR.
|
||||||
GOBUILDFLAGS_append = " -modcacherw"
|
GOBUILDFLAGS:append = " -modcacherw"
|
||||||
|
|
||||||
inherit go
|
inherit go
|
||||||
|
|
||||||
|
|||||||
@@ -50,5 +50,5 @@ do_install_ptest_base() {
|
|||||||
chown -R root:root ${D}${PTEST_PATH}
|
chown -R root:root ${D}${PTEST_PATH}
|
||||||
}
|
}
|
||||||
|
|
||||||
INSANE_SKIP_${PN}-ptest += "ldflags"
|
INSANE_SKIP:${PN}-ptest += "ldflags"
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ inherit goarch
|
|||||||
|
|
||||||
GO_PARALLEL_BUILD ?= "${@oe.utils.parallel_make_argument(d, '-p %d')}"
|
GO_PARALLEL_BUILD ?= "${@oe.utils.parallel_make_argument(d, '-p %d')}"
|
||||||
|
|
||||||
GOROOT_class-native = "${STAGING_LIBDIR_NATIVE}/go"
|
GOROOT:class-native = "${STAGING_LIBDIR_NATIVE}/go"
|
||||||
GOROOT_class-nativesdk = "${STAGING_DIR_TARGET}${libdir}/go"
|
GOROOT:class-nativesdk = "${STAGING_DIR_TARGET}${libdir}/go"
|
||||||
GOROOT = "${STAGING_LIBDIR}/go"
|
GOROOT = "${STAGING_LIBDIR}/go"
|
||||||
export GOROOT
|
export GOROOT
|
||||||
export GOROOT_FINAL = "${libdir}/go"
|
export GOROOT_FINAL = "${libdir}/go"
|
||||||
@@ -15,42 +15,42 @@ export GOHOSTARCH="${BUILD_GOARCH}"
|
|||||||
export GOHOSTOS="${BUILD_GOOS}"
|
export GOHOSTOS="${BUILD_GOOS}"
|
||||||
|
|
||||||
GOARM[export] = "0"
|
GOARM[export] = "0"
|
||||||
GOARM_arm_class-target = "${TARGET_GOARM}"
|
GOARM:arm:class-target = "${TARGET_GOARM}"
|
||||||
GOARM_arm_class-target[export] = "1"
|
GOARM:arm:class-target[export] = "1"
|
||||||
|
|
||||||
GO386[export] = "0"
|
GO386[export] = "0"
|
||||||
GO386_x86_class-target = "${TARGET_GO386}"
|
GO386:x86:class-target = "${TARGET_GO386}"
|
||||||
GO386_x86_class-target[export] = "1"
|
GO386:x86:class-target[export] = "1"
|
||||||
|
|
||||||
GOMIPS[export] = "0"
|
GOMIPS[export] = "0"
|
||||||
GOMIPS_mips_class-target = "${TARGET_GOMIPS}"
|
GOMIPS:mips:class-target = "${TARGET_GOMIPS}"
|
||||||
GOMIPS_mips_class-target[export] = "1"
|
GOMIPS:mips:class-target[export] = "1"
|
||||||
|
|
||||||
DEPENDS_GOLANG_class-target = "virtual/${TUNE_PKGARCH}-go virtual/${TARGET_PREFIX}go-runtime"
|
DEPENDS_GOLANG:class-target = "virtual/${TUNE_PKGARCH}-go virtual/${TARGET_PREFIX}go-runtime"
|
||||||
DEPENDS_GOLANG_class-native = "go-native"
|
DEPENDS_GOLANG:class-native = "go-native"
|
||||||
DEPENDS_GOLANG_class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime"
|
DEPENDS_GOLANG:class-nativesdk = "virtual/${TARGET_PREFIX}go-crosssdk virtual/${TARGET_PREFIX}go-runtime"
|
||||||
|
|
||||||
DEPENDS_append = " ${DEPENDS_GOLANG}"
|
DEPENDS:append = " ${DEPENDS_GOLANG}"
|
||||||
|
|
||||||
GO_LINKSHARED ?= "${@'-linkshared' if d.getVar('GO_DYNLINK') else ''}"
|
GO_LINKSHARED ?= "${@'-linkshared' if d.getVar('GO_DYNLINK') else ''}"
|
||||||
GO_RPATH_LINK = "${@'-Wl,-rpath-link=${STAGING_DIR_TARGET}${libdir}/go/pkg/${TARGET_GOTUPLE}_dynlink' if d.getVar('GO_DYNLINK') else ''}"
|
GO_RPATH_LINK = "${@'-Wl,-rpath-link=${STAGING_DIR_TARGET}${libdir}/go/pkg/${TARGET_GOTUPLE}_dynlink' if d.getVar('GO_DYNLINK') else ''}"
|
||||||
GO_RPATH = "${@'-r ${libdir}/go/pkg/${TARGET_GOTUPLE}_dynlink' if d.getVar('GO_DYNLINK') else ''}"
|
GO_RPATH = "${@'-r ${libdir}/go/pkg/${TARGET_GOTUPLE}_dynlink' if d.getVar('GO_DYNLINK') else ''}"
|
||||||
GO_RPATH_class-native = "${@'-r ${STAGING_LIBDIR_NATIVE}/go/pkg/${TARGET_GOTUPLE}_dynlink' if d.getVar('GO_DYNLINK') else ''}"
|
GO_RPATH:class-native = "${@'-r ${STAGING_LIBDIR_NATIVE}/go/pkg/${TARGET_GOTUPLE}_dynlink' if d.getVar('GO_DYNLINK') else ''}"
|
||||||
GO_RPATH_LINK_class-native = "${@'-Wl,-rpath-link=${STAGING_LIBDIR_NATIVE}/go/pkg/${TARGET_GOTUPLE}_dynlink' if d.getVar('GO_DYNLINK') else ''}"
|
GO_RPATH_LINK:class-native = "${@'-Wl,-rpath-link=${STAGING_LIBDIR_NATIVE}/go/pkg/${TARGET_GOTUPLE}_dynlink' if d.getVar('GO_DYNLINK') else ''}"
|
||||||
GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${GO_RPATH_LINK} ${LDFLAGS}"
|
GO_EXTLDFLAGS ?= "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS} ${GO_RPATH_LINK} ${LDFLAGS}"
|
||||||
GO_LINKMODE ?= ""
|
GO_LINKMODE ?= ""
|
||||||
GO_LINKMODE_class-nativesdk = "--linkmode=external"
|
GO_LINKMODE:class-nativesdk = "--linkmode=external"
|
||||||
GO_LINKMODE_class-native = "--linkmode=external"
|
GO_LINKMODE:class-native = "--linkmode=external"
|
||||||
GO_LDFLAGS ?= '-ldflags="${GO_RPATH} ${GO_LINKMODE} -extldflags '${GO_EXTLDFLAGS}'"'
|
GO_LDFLAGS ?= '-ldflags="${GO_RPATH} ${GO_LINKMODE} -extldflags '${GO_EXTLDFLAGS}'"'
|
||||||
export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -trimpath"
|
export GOBUILDFLAGS ?= "-v ${GO_LDFLAGS} -trimpath"
|
||||||
export GOPATH_OMIT_IN_ACTIONID ?= "1"
|
export GOPATH_OMIT_IN_ACTIONID ?= "1"
|
||||||
export GOPTESTBUILDFLAGS ?= "${GOBUILDFLAGS} -c"
|
export GOPTESTBUILDFLAGS ?= "${GOBUILDFLAGS} -c"
|
||||||
export GOPTESTFLAGS ?= ""
|
export GOPTESTFLAGS ?= ""
|
||||||
GOBUILDFLAGS_prepend_task-compile = "${GO_PARALLEL_BUILD} "
|
GOBUILDFLAGS:prepend:task-compile = "${GO_PARALLEL_BUILD} "
|
||||||
|
|
||||||
export GO = "${HOST_PREFIX}go"
|
export GO = "${HOST_PREFIX}go"
|
||||||
GOTOOLDIR = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go/pkg/tool/${BUILD_GOTUPLE}"
|
GOTOOLDIR = "${STAGING_LIBDIR_NATIVE}/${TARGET_SYS}/go/pkg/tool/${BUILD_GOTUPLE}"
|
||||||
GOTOOLDIR_class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}"
|
GOTOOLDIR:class-native = "${STAGING_LIBDIR_NATIVE}/go/pkg/tool/${BUILD_GOTUPLE}"
|
||||||
export GOTOOLDIR
|
export GOTOOLDIR
|
||||||
|
|
||||||
export CGO_ENABLED ?= "1"
|
export CGO_ENABLED ?= "1"
|
||||||
@@ -140,17 +140,17 @@ go_stage_testdata() {
|
|||||||
|
|
||||||
EXPORT_FUNCTIONS do_unpack do_configure do_compile do_install
|
EXPORT_FUNCTIONS do_unpack do_configure do_compile do_install
|
||||||
|
|
||||||
FILES_${PN}-dev = "${libdir}/go/src"
|
FILES:${PN}-dev = "${libdir}/go/src"
|
||||||
FILES_${PN}-staticdev = "${libdir}/go/pkg"
|
FILES:${PN}-staticdev = "${libdir}/go/pkg"
|
||||||
|
|
||||||
INSANE_SKIP_${PN} += "ldflags"
|
INSANE_SKIP:${PN} += "ldflags"
|
||||||
|
|
||||||
# Add -buildmode=pie to GOBUILDFLAGS to satisfy "textrel" QA checking, but mips
|
# Add -buildmode=pie to GOBUILDFLAGS to satisfy "textrel" QA checking, but mips
|
||||||
# doesn't support -buildmode=pie, so skip the QA checking for mips/rv32 and its
|
# doesn't support -buildmode=pie, so skip the QA checking for mips/rv32 and its
|
||||||
# variants.
|
# variants.
|
||||||
python() {
|
python() {
|
||||||
if 'mips' in d.getVar('TARGET_ARCH') or 'riscv32' in d.getVar('TARGET_ARCH'):
|
if 'mips' in d.getVar('TARGET_ARCH') or 'riscv32' in d.getVar('TARGET_ARCH'):
|
||||||
d.appendVar('INSANE_SKIP_%s' % d.getVar('PN'), " textrel")
|
d.appendVar('INSANE_SKIP:%s' % d.getVar('PN'), " textrel")
|
||||||
else:
|
else:
|
||||||
d.appendVar('GOBUILDFLAGS', ' -buildmode=pie')
|
d.appendVar('GOBUILDFLAGS', ' -buildmode=pie')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,54 +6,54 @@ HOST_GOARCH = "${@go_map_arch(d.getVar('HOST_ARCH'), d)}"
|
|||||||
HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d)}"
|
HOST_GOARM = "${@go_map_arm(d.getVar('HOST_ARCH'), d)}"
|
||||||
HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
HOST_GO386 = "${@go_map_386(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
||||||
HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
HOST_GOMIPS = "${@go_map_mips(d.getVar('HOST_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
||||||
HOST_GOARM_class-native = "7"
|
HOST_GOARM:class-native = "7"
|
||||||
HOST_GO386_class-native = "sse2"
|
HOST_GO386:class-native = "sse2"
|
||||||
HOST_GOMIPS_class-native = "hardfloat"
|
HOST_GOMIPS:class-native = "hardfloat"
|
||||||
HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}"
|
HOST_GOTUPLE = "${HOST_GOOS}_${HOST_GOARCH}"
|
||||||
TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}"
|
TARGET_GOOS = "${@go_map_os(d.getVar('TARGET_OS'), d)}"
|
||||||
TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}"
|
TARGET_GOARCH = "${@go_map_arch(d.getVar('TARGET_ARCH'), d)}"
|
||||||
TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d)}"
|
TARGET_GOARM = "${@go_map_arm(d.getVar('TARGET_ARCH'), d)}"
|
||||||
TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
TARGET_GO386 = "${@go_map_386(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
||||||
TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
TARGET_GOMIPS = "${@go_map_mips(d.getVar('TARGET_ARCH'), d.getVar('TUNE_FEATURES'), d)}"
|
||||||
TARGET_GOARM_class-native = "7"
|
TARGET_GOARM:class-native = "7"
|
||||||
TARGET_GO386_class-native = "sse2"
|
TARGET_GO386:class-native = "sse2"
|
||||||
TARGET_GOMIPS_class-native = "hardfloat"
|
TARGET_GOMIPS:class-native = "hardfloat"
|
||||||
TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
|
TARGET_GOTUPLE = "${TARGET_GOOS}_${TARGET_GOARCH}"
|
||||||
GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}"
|
GO_BUILD_BINDIR = "${@['bin/${HOST_GOTUPLE}','bin'][d.getVar('BUILD_GOTUPLE') == d.getVar('HOST_GOTUPLE')]}"
|
||||||
|
|
||||||
# Use the MACHINEOVERRIDES to map ARM CPU architecture passed to GO via GOARM.
|
# Use the MACHINEOVERRIDES to map ARM CPU architecture passed to GO via GOARM.
|
||||||
# This is combined with *_ARCH to set HOST_GOARM and TARGET_GOARM.
|
# This is combined with *_ARCH to set HOST_GOARM and TARGET_GOARM.
|
||||||
BASE_GOARM = ''
|
BASE_GOARM = ''
|
||||||
BASE_GOARM_armv7ve = '7'
|
BASE_GOARM:armv7ve = '7'
|
||||||
BASE_GOARM_armv7a = '7'
|
BASE_GOARM:armv7a = '7'
|
||||||
BASE_GOARM_armv6 = '6'
|
BASE_GOARM:armv6 = '6'
|
||||||
BASE_GOARM_armv5 = '5'
|
BASE_GOARM:armv5 = '5'
|
||||||
|
|
||||||
# Go supports dynamic linking on a limited set of architectures.
|
# Go supports dynamic linking on a limited set of architectures.
|
||||||
# See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go
|
# See the supportsDynlink function in go/src/cmd/compile/internal/gc/main.go
|
||||||
GO_DYNLINK = ""
|
GO_DYNLINK = ""
|
||||||
GO_DYNLINK_arm = "1"
|
GO_DYNLINK:arm = "1"
|
||||||
GO_DYNLINK_aarch64 = "1"
|
GO_DYNLINK:aarch64 = "1"
|
||||||
GO_DYNLINK_x86 = "1"
|
GO_DYNLINK:x86 = "1"
|
||||||
GO_DYNLINK_x86-64 = "1"
|
GO_DYNLINK:x86-64 = "1"
|
||||||
GO_DYNLINK_powerpc64 = "1"
|
GO_DYNLINK:powerpc64 = "1"
|
||||||
GO_DYNLINK_powerpc64le = "1"
|
GO_DYNLINK:powerpc64le = "1"
|
||||||
GO_DYNLINK_class-native = ""
|
GO_DYNLINK:class-native = ""
|
||||||
GO_DYNLINK_class-nativesdk = ""
|
GO_DYNLINK:class-nativesdk = ""
|
||||||
|
|
||||||
# define here because everybody inherits this class
|
# define here because everybody inherits this class
|
||||||
#
|
#
|
||||||
COMPATIBLE_HOST_linux-gnux32 = "null"
|
COMPATIBLE_HOST:linux-gnux32 = "null"
|
||||||
COMPATIBLE_HOST_linux-muslx32 = "null"
|
COMPATIBLE_HOST:linux-muslx32 = "null"
|
||||||
COMPATIBLE_HOST_powerpc = "null"
|
COMPATIBLE_HOST:powerpc = "null"
|
||||||
COMPATIBLE_HOST_powerpc64 = "null"
|
COMPATIBLE_HOST:powerpc64 = "null"
|
||||||
COMPATIBLE_HOST_mipsarchn32 = "null"
|
COMPATIBLE_HOST:mipsarchn32 = "null"
|
||||||
|
|
||||||
ARM_INSTRUCTION_SET_armv4 = "arm"
|
ARM_INSTRUCTION_SET:armv4 = "arm"
|
||||||
ARM_INSTRUCTION_SET_armv5 = "arm"
|
ARM_INSTRUCTION_SET:armv5 = "arm"
|
||||||
ARM_INSTRUCTION_SET_armv6 = "arm"
|
ARM_INSTRUCTION_SET:armv6 = "arm"
|
||||||
|
|
||||||
TUNE_CCARGS_remove = "-march=mips32r2"
|
TUNE_CCARGS:remove = "-march=mips32r2"
|
||||||
SECURITY_NOPIE_CFLAGS ??= ""
|
SECURITY_NOPIE_CFLAGS ??= ""
|
||||||
|
|
||||||
# go can't be built with ccache:
|
# go can't be built with ccache:
|
||||||
|
|||||||
@@ -15,29 +15,29 @@ GIR_MESON_ENABLE_FLAG ?= 'true'
|
|||||||
GIR_MESON_DISABLE_FLAG ?= 'false'
|
GIR_MESON_DISABLE_FLAG ?= 'false'
|
||||||
|
|
||||||
# Auto enable/disable based on GI_DATA_ENABLED
|
# Auto enable/disable based on GI_DATA_ENABLED
|
||||||
EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "
|
EXTRA_OECONF:prepend:class-target = "${@bb.utils.contains('GI_DATA_ENABLED', 'True', '--enable-introspection', '--disable-introspection', d)} "
|
||||||
EXTRA_OEMESON_prepend_class-target = "-D${GIR_MESON_OPTION}=${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GIR_MESON_ENABLE_FLAG}', '${GIR_MESON_DISABLE_FLAG}', d)} "
|
EXTRA_OEMESON:prepend:class-target = "-D${GIR_MESON_OPTION}=${@bb.utils.contains('GI_DATA_ENABLED', 'True', '${GIR_MESON_ENABLE_FLAG}', '${GIR_MESON_DISABLE_FLAG}', d)} "
|
||||||
|
|
||||||
# When building native recipes, disable introspection, as it is not necessary,
|
# When building native recipes, disable introspection, as it is not necessary,
|
||||||
# pulls in additional dependencies, and makes build times longer
|
# pulls in additional dependencies, and makes build times longer
|
||||||
EXTRA_OECONF_prepend_class-native = "--disable-introspection "
|
EXTRA_OECONF:prepend:class-native = "--disable-introspection "
|
||||||
EXTRA_OECONF_prepend_class-nativesdk = "--disable-introspection "
|
EXTRA_OECONF:prepend:class-nativesdk = "--disable-introspection "
|
||||||
EXTRA_OEMESON_prepend_class-native = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} "
|
EXTRA_OEMESON:prepend:class-native = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} "
|
||||||
EXTRA_OEMESON_prepend_class-nativesdk = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} "
|
EXTRA_OEMESON:prepend:class-nativesdk = "-D${GIR_MESON_OPTION}=${GIR_MESON_DISABLE_FLAG} "
|
||||||
|
|
||||||
# Generating introspection data depends on a combination of native and target
|
# Generating introspection data depends on a combination of native and target
|
||||||
# introspection tools, and qemu to run the target tools.
|
# introspection tools, and qemu to run the target tools.
|
||||||
DEPENDS_append_class-target = " gobject-introspection gobject-introspection-native qemu-native prelink-native"
|
DEPENDS:append:class-target = " gobject-introspection gobject-introspection-native qemu-native prelink-native"
|
||||||
|
|
||||||
# Even though introspection is disabled on -native, gobject-introspection package is still
|
# Even though introspection is disabled on -native, gobject-introspection package is still
|
||||||
# needed for m4 macros.
|
# needed for m4 macros.
|
||||||
DEPENDS_append_class-native = " gobject-introspection-native"
|
DEPENDS:append:class-native = " gobject-introspection-native"
|
||||||
DEPENDS_append_class-nativesdk = " gobject-introspection-native"
|
DEPENDS:append:class-nativesdk = " gobject-introspection-native"
|
||||||
|
|
||||||
# This is used by introspection tools to find .gir includes
|
# This is used by introspection tools to find .gir includes
|
||||||
export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
|
export XDG_DATA_DIRS = "${STAGING_DATADIR}:${STAGING_LIBDIR}"
|
||||||
|
|
||||||
do_configure_prepend_class-target () {
|
do_configure:prepend:class-target () {
|
||||||
# introspection.m4 pre-packaged with upstream tarballs does not yet
|
# introspection.m4 pre-packaged with upstream tarballs does not yet
|
||||||
# have our fixes
|
# have our fixes
|
||||||
mkdir -p ${S}/m4
|
mkdir -p ${S}/m4
|
||||||
@@ -46,8 +46,8 @@ do_configure_prepend_class-target () {
|
|||||||
|
|
||||||
# .typelib files are needed at runtime and so they go to the main package (so
|
# .typelib files are needed at runtime and so they go to the main package (so
|
||||||
# they'll be together with libraries they support).
|
# they'll be together with libraries they support).
|
||||||
FILES_${PN}_append = " ${libdir}/girepository-*/*.typelib"
|
FILES:${PN}:append = " ${libdir}/girepository-*/*.typelib"
|
||||||
|
|
||||||
# .gir files go to dev package, as they're needed for developing (but not for
|
# .gir files go to dev package, as they're needed for developing (but not for
|
||||||
# running) things that depends on introspection.
|
# running) things that depends on introspection.
|
||||||
FILES_${PN}-dev_append = " ${datadir}/gir-*/*.gir ${libdir}/gir-*/*.gir"
|
FILES:${PN}-dev:append = " ${datadir}/gir-*/*.gir ${libdir}/gir-*/*.gir"
|
||||||
|
|||||||
@@ -13,30 +13,30 @@ python __anonymous() {
|
|||||||
pkg = d.getVar("GSETTINGS_PACKAGE")
|
pkg = d.getVar("GSETTINGS_PACKAGE")
|
||||||
if pkg:
|
if pkg:
|
||||||
d.appendVar("PACKAGE_WRITE_DEPS", " glib-2.0-native")
|
d.appendVar("PACKAGE_WRITE_DEPS", " glib-2.0-native")
|
||||||
d.appendVar("RDEPENDS_" + pkg, " ${MLPREFIX}glib-2.0-utils")
|
d.appendVar("RDEPENDS:" + pkg, " ${MLPREFIX}glib-2.0-utils")
|
||||||
d.appendVar("FILES_" + pkg, " ${datadir}/glib-2.0/schemas")
|
d.appendVar("FILES:" + pkg, " ${datadir}/glib-2.0/schemas")
|
||||||
}
|
}
|
||||||
|
|
||||||
gsettings_postinstrm () {
|
gsettings_postinstrm () {
|
||||||
glib-compile-schemas $D${datadir}/glib-2.0/schemas
|
glib-compile-schemas $D${datadir}/glib-2.0/schemas
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_append () {
|
python populate_packages:append () {
|
||||||
pkg = d.getVar('GSETTINGS_PACKAGE')
|
pkg = d.getVar('GSETTINGS_PACKAGE')
|
||||||
if pkg:
|
if pkg:
|
||||||
bb.note("adding gsettings postinst scripts to %s" % pkg)
|
bb.note("adding gsettings postinst scripts to %s" % pkg)
|
||||||
|
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst')
|
postinst = d.getVar('pkg_postinst:%s' % pkg) or d.getVar('pkg_postinst')
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('gsettings_postinstrm')
|
postinst += d.getVar('gsettings_postinstrm')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
|
|
||||||
bb.note("adding gsettings postrm scripts to %s" % pkg)
|
bb.note("adding gsettings postrm scripts to %s" % pkg)
|
||||||
|
|
||||||
postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm')
|
postrm = d.getVar('pkg_postrm:%s' % pkg) or d.getVar('pkg_postrm')
|
||||||
if not postrm:
|
if not postrm:
|
||||||
postrm = '#!/bin/sh\n'
|
postrm = '#!/bin/sh\n'
|
||||||
postrm += d.getVar('gsettings_postinstrm')
|
postrm += d.getVar('gsettings_postinstrm')
|
||||||
d.setVar('pkg_postrm_%s' % pkg, postrm)
|
d.setVar('pkg_postrm:%s' % pkg, postrm)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#
|
#
|
||||||
# It should be used in recipes to determine whether gtk-doc based documentation should be built,
|
# It should be used in recipes to determine whether gtk-doc based documentation should be built,
|
||||||
# so that qemu use can be avoided when necessary.
|
# so that qemu use can be avoided when necessary.
|
||||||
GTKDOC_ENABLED_class-native = "False"
|
GTKDOC_ENABLED:class-native = "False"
|
||||||
GTKDOC_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', \
|
GTKDOC_ENABLED ?= "${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', \
|
||||||
bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}"
|
bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d), 'False', d)}"
|
||||||
|
|
||||||
@@ -19,20 +19,20 @@ GTKDOC_MESON_ENABLE_FLAG ?= 'true'
|
|||||||
GTKDOC_MESON_DISABLE_FLAG ?= 'false'
|
GTKDOC_MESON_DISABLE_FLAG ?= 'false'
|
||||||
|
|
||||||
# Auto enable/disable based on GTKDOC_ENABLED
|
# Auto enable/disable based on GTKDOC_ENABLED
|
||||||
EXTRA_OECONF_prepend_class-target = "${@bb.utils.contains('GTKDOC_ENABLED', 'True', '--enable-gtk-doc --enable-gtk-doc-html --disable-gtk-doc-pdf', \
|
EXTRA_OECONF:prepend:class-target = "${@bb.utils.contains('GTKDOC_ENABLED', 'True', '--enable-gtk-doc --enable-gtk-doc-html --disable-gtk-doc-pdf', \
|
||||||
'--disable-gtk-doc', d)} "
|
'--disable-gtk-doc', d)} "
|
||||||
EXTRA_OEMESON_prepend_class-target = "-D${GTKDOC_MESON_OPTION}=${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_MESON_ENABLE_FLAG}', '${GTKDOC_MESON_DISABLE_FLAG}', d)} "
|
EXTRA_OEMESON:prepend:class-target = "-D${GTKDOC_MESON_OPTION}=${@bb.utils.contains('GTKDOC_ENABLED', 'True', '${GTKDOC_MESON_ENABLE_FLAG}', '${GTKDOC_MESON_DISABLE_FLAG}', d)} "
|
||||||
|
|
||||||
# When building native recipes, disable gtkdoc, as it is not necessary,
|
# When building native recipes, disable gtkdoc, as it is not necessary,
|
||||||
# pulls in additional dependencies, and makes build times longer
|
# pulls in additional dependencies, and makes build times longer
|
||||||
EXTRA_OECONF_prepend_class-native = "--disable-gtk-doc "
|
EXTRA_OECONF:prepend:class-native = "--disable-gtk-doc "
|
||||||
EXTRA_OECONF_prepend_class-nativesdk = "--disable-gtk-doc "
|
EXTRA_OECONF:prepend:class-nativesdk = "--disable-gtk-doc "
|
||||||
EXTRA_OEMESON_prepend_class-native = "-D${GTKDOC_MESON_OPTION}=${GTKDOC_MESON_DISABLE_FLAG} "
|
EXTRA_OEMESON:prepend:class-native = "-D${GTKDOC_MESON_OPTION}=${GTKDOC_MESON_DISABLE_FLAG} "
|
||||||
EXTRA_OEMESON_prepend_class-nativesdk = "-D${GTKDOC_MESON_OPTION}=${GTKDOC_MESON_DISABLE_FLAG} "
|
EXTRA_OEMESON:prepend:class-nativesdk = "-D${GTKDOC_MESON_OPTION}=${GTKDOC_MESON_DISABLE_FLAG} "
|
||||||
|
|
||||||
# Even though gtkdoc is disabled on -native, gtk-doc package is still
|
# Even though gtkdoc is disabled on -native, gtk-doc package is still
|
||||||
# needed for m4 macros.
|
# needed for m4 macros.
|
||||||
DEPENDS_append = " gtk-doc-native"
|
DEPENDS:append = " gtk-doc-native"
|
||||||
|
|
||||||
# The documentation directory, where the infrastructure will be copied.
|
# The documentation directory, where the infrastructure will be copied.
|
||||||
# gtkdocize has a default of "." so to handle out-of-tree builds set this to $S.
|
# gtkdocize has a default of "." so to handle out-of-tree builds set this to $S.
|
||||||
@@ -41,15 +41,15 @@ GTKDOC_DOCDIR ?= "${S}"
|
|||||||
export STAGING_DIR_HOST
|
export STAGING_DIR_HOST
|
||||||
|
|
||||||
inherit python3native pkgconfig qemu
|
inherit python3native pkgconfig qemu
|
||||||
DEPENDS_append = "${@' qemu-native' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}"
|
DEPENDS:append = "${@' qemu-native' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}"
|
||||||
|
|
||||||
do_configure_prepend () {
|
do_configure:prepend () {
|
||||||
# Need to use ||true as this is only needed if configure.ac both exists
|
# Need to use ||true as this is only needed if configure.ac both exists
|
||||||
# and uses GTK_DOC_CHECK.
|
# and uses GTK_DOC_CHECK.
|
||||||
gtkdocize --srcdir ${S} --docdir ${GTKDOC_DOCDIR} || true
|
gtkdocize --srcdir ${S} --docdir ${GTKDOC_DOCDIR} || true
|
||||||
}
|
}
|
||||||
|
|
||||||
do_compile_prepend_class-target () {
|
do_compile:prepend:class-target () {
|
||||||
if [ ${GTKDOC_ENABLED} = True ]; then
|
if [ ${GTKDOC_ENABLED} = True ]; then
|
||||||
# Write out a qemu wrapper that will be given to gtkdoc-scangobj so that it
|
# Write out a qemu wrapper that will be given to gtkdoc-scangobj so that it
|
||||||
# can run target helper binaries through that.
|
# can run target helper binaries through that.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
FILES_${PN} += "${datadir}/icons/hicolor"
|
FILES:${PN} += "${datadir}/icons/hicolor"
|
||||||
|
|
||||||
#gtk+3 reqiure GTK3DISTROFEATURES, DEPENDS on it make all the
|
#gtk+3 reqiure GTK3DISTROFEATURES, DEPENDS on it make all the
|
||||||
#recipes inherit this class require GTK3DISTROFEATURES
|
#recipes inherit this class require GTK3DISTROFEATURES
|
||||||
@@ -45,7 +45,7 @@ else
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_append () {
|
python populate_packages:append () {
|
||||||
packages = d.getVar('PACKAGES').split()
|
packages = d.getVar('PACKAGES').split()
|
||||||
pkgdest = d.getVar('PKGDEST')
|
pkgdest = d.getVar('PKGDEST')
|
||||||
|
|
||||||
@@ -56,29 +56,29 @@ python populate_packages_append () {
|
|||||||
|
|
||||||
bb.note("adding hicolor-icon-theme dependency to %s" % pkg)
|
bb.note("adding hicolor-icon-theme dependency to %s" % pkg)
|
||||||
rdepends = ' ' + d.getVar('MLPREFIX', False) + "hicolor-icon-theme"
|
rdepends = ' ' + d.getVar('MLPREFIX', False) + "hicolor-icon-theme"
|
||||||
d.appendVar('RDEPENDS_%s' % pkg, rdepends)
|
d.appendVar('RDEPENDS:%s' % pkg, rdepends)
|
||||||
|
|
||||||
#gtk_icon_cache_postinst depend on gdk-pixbuf and gtk+3
|
#gtk_icon_cache_postinst depend on gdk-pixbuf and gtk+3
|
||||||
bb.note("adding gdk-pixbuf dependency to %s" % pkg)
|
bb.note("adding gdk-pixbuf dependency to %s" % pkg)
|
||||||
rdepends = ' ' + d.getVar('MLPREFIX', False) + "gdk-pixbuf"
|
rdepends = ' ' + d.getVar('MLPREFIX', False) + "gdk-pixbuf"
|
||||||
d.appendVar('RDEPENDS_%s' % pkg, rdepends)
|
d.appendVar('RDEPENDS:%s' % pkg, rdepends)
|
||||||
|
|
||||||
bb.note("adding gtk+3 dependency to %s" % pkg)
|
bb.note("adding gtk+3 dependency to %s" % pkg)
|
||||||
rdepends = ' ' + d.getVar('MLPREFIX', False) + "gtk+3"
|
rdepends = ' ' + d.getVar('MLPREFIX', False) + "gtk+3"
|
||||||
d.appendVar('RDEPENDS_%s' % pkg, rdepends)
|
d.appendVar('RDEPENDS:%s' % pkg, rdepends)
|
||||||
|
|
||||||
bb.note("adding gtk-icon-cache postinst and postrm scripts to %s" % pkg)
|
bb.note("adding gtk-icon-cache postinst and postrm scripts to %s" % pkg)
|
||||||
|
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('gtk_icon_cache_postinst')
|
postinst += d.getVar('gtk_icon_cache_postinst')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
|
|
||||||
postrm = d.getVar('pkg_postrm_%s' % pkg)
|
postrm = d.getVar('pkg_postrm:%s' % pkg)
|
||||||
if not postrm:
|
if not postrm:
|
||||||
postrm = '#!/bin/sh\n'
|
postrm = '#!/bin/sh\n'
|
||||||
postrm += d.getVar('gtk_icon_cache_postrm')
|
postrm += d.getVar('gtk_icon_cache_postrm')
|
||||||
d.setVar('pkg_postrm_%s' % pkg, postrm)
|
d.setVar('pkg_postrm:%s' % pkg, postrm)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,23 +47,23 @@ else
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_append () {
|
python populate_packages:append () {
|
||||||
gtkimmodules_pkgs = d.getVar('GTKIMMODULES_PACKAGES').split()
|
gtkimmodules_pkgs = d.getVar('GTKIMMODULES_PACKAGES').split()
|
||||||
|
|
||||||
for pkg in gtkimmodules_pkgs:
|
for pkg in gtkimmodules_pkgs:
|
||||||
bb.note("adding gtk-immodule-cache postinst and postrm scripts to %s" % pkg)
|
bb.note("adding gtk-immodule-cache postinst and postrm scripts to %s" % pkg)
|
||||||
|
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('gtk_immodule_cache_postinst')
|
postinst += d.getVar('gtk_immodule_cache_postinst')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
|
|
||||||
postrm = d.getVar('pkg_postrm_%s' % pkg)
|
postrm = d.getVar('pkg_postrm:%s' % pkg)
|
||||||
if not postrm:
|
if not postrm:
|
||||||
postrm = '#!/bin/sh\n'
|
postrm = '#!/bin/sh\n'
|
||||||
postrm += d.getVar('gtk_immodule_cache_postrm')
|
postrm += d.getVar('gtk_immodule_cache_postrm')
|
||||||
d.setVar('pkg_postrm_%s' % pkg, postrm)
|
d.setVar('pkg_postrm:%s' % pkg, postrm)
|
||||||
}
|
}
|
||||||
|
|
||||||
python __anonymous() {
|
python __anonymous() {
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ HOSTTOOLS_NONFATAL += "icecc patchelf"
|
|||||||
#
|
#
|
||||||
# A useful thing to do for testing Icecream changes locally is to add a
|
# A useful thing to do for testing Icecream changes locally is to add a
|
||||||
# subversion in local.conf:
|
# subversion in local.conf:
|
||||||
# ICECC_ENV_VERSION_append = "-my-ver-1"
|
# ICECC_ENV_VERSION:append = "-my-ver-1"
|
||||||
ICECC_ENV_VERSION = "2"
|
ICECC_ENV_VERSION = "2"
|
||||||
|
|
||||||
# Default to disabling the caret workaround, If set to "1" in local.conf, icecc
|
# Default to disabling the caret workaround, If set to "1" in local.conf, icecc
|
||||||
@@ -105,7 +105,7 @@ def get_icecc_dep(d):
|
|||||||
return "icecc-create-env-native"
|
return "icecc-create-env-native"
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
DEPENDS_prepend = "${@get_icecc_dep(d)} "
|
DEPENDS:prepend = "${@get_icecc_dep(d)} "
|
||||||
|
|
||||||
get_cross_kernel_cc[vardepsexclude] += "KERNEL_CC"
|
get_cross_kernel_cc[vardepsexclude] += "KERNEL_CC"
|
||||||
def get_cross_kernel_cc(bb,d):
|
def get_cross_kernel_cc(bb,d):
|
||||||
@@ -428,28 +428,28 @@ set_icecc_env() {
|
|||||||
bbnote "Using icecc tarball: $ICECC_VERSION"
|
bbnote "Using icecc tarball: $ICECC_VERSION"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure_prepend() {
|
do_configure:prepend() {
|
||||||
set_icecc_env
|
set_icecc_env
|
||||||
}
|
}
|
||||||
|
|
||||||
do_compile_prepend() {
|
do_compile:prepend() {
|
||||||
set_icecc_env
|
set_icecc_env
|
||||||
}
|
}
|
||||||
|
|
||||||
do_compile_kernelmodules_prepend() {
|
do_compile_kernelmodules:prepend() {
|
||||||
set_icecc_env
|
set_icecc_env
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_prepend() {
|
do_install:prepend() {
|
||||||
set_icecc_env
|
set_icecc_env
|
||||||
}
|
}
|
||||||
|
|
||||||
# IceCream is not (currently) supported in the extensible SDK
|
# IceCream is not (currently) supported in the extensible SDK
|
||||||
ICECC_SDK_HOST_TASK = "nativesdk-icecc-toolchain"
|
ICECC_SDK_HOST_TASK = "nativesdk-icecc-toolchain"
|
||||||
ICECC_SDK_HOST_TASK_task-populate-sdk-ext = ""
|
ICECC_SDK_HOST_TASK:task-populate-sdk-ext = ""
|
||||||
|
|
||||||
# Don't include IceCream in uninative tarball
|
# Don't include IceCream in uninative tarball
|
||||||
ICECC_SDK_HOST_TASK_pn-uninative-tarball = ""
|
ICECC_SDK_HOST_TASK:pn-uninative-tarball = ""
|
||||||
|
|
||||||
# Add the toolchain scripts to the SDK
|
# Add the toolchain scripts to the SDK
|
||||||
TOOLCHAIN_HOST_TASK_append = " ${ICECC_SDK_HOST_TASK}"
|
TOOLCHAIN_HOST_TASK:append = " ${ICECC_SDK_HOST_TASK}"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
IMAGE_PREPROCESS_COMMAND_append = " combine_dbg_image; "
|
IMAGE_PREPROCESS_COMMAND:append = " combine_dbg_image; "
|
||||||
|
|
||||||
combine_dbg_image () {
|
combine_dbg_image () {
|
||||||
if [ "${IMAGE_GEN_DEBUGFS}" = "1" -a -e ${IMAGE_ROOTFS}-dbg ]; then
|
if [ "${IMAGE_GEN_DEBUGFS}" = "1" -a -e ${IMAGE_ROOTFS}-dbg ]; then
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
do_rootfs[depends] += "prelink-native:do_populate_sysroot"
|
do_rootfs[depends] += "prelink-native:do_populate_sysroot"
|
||||||
|
|
||||||
IMAGE_PREPROCESS_COMMAND_append_libc-glibc = " prelink_setup; prelink_image; "
|
IMAGE_PREPROCESS_COMMAND:append:libc-glibc = " prelink_setup; prelink_image; "
|
||||||
|
|
||||||
python prelink_setup () {
|
python prelink_setup () {
|
||||||
oe.utils.write_ld_so_conf(d)
|
oe.utils.write_ld_so_conf(d)
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ PACKAGES = ""
|
|||||||
DEPENDS += "${@' '.join(["%s-qemuwrapper-cross" % m for m in d.getVar("MULTILIB_VARIANTS").split()])} qemuwrapper-cross depmodwrapper-cross cross-localedef-native"
|
DEPENDS += "${@' '.join(["%s-qemuwrapper-cross" % m for m in d.getVar("MULTILIB_VARIANTS").split()])} qemuwrapper-cross depmodwrapper-cross cross-localedef-native"
|
||||||
RDEPENDS += "${PACKAGE_INSTALL} ${LINGUAS_INSTALL} ${IMAGE_INSTALL_DEBUGFS}"
|
RDEPENDS += "${PACKAGE_INSTALL} ${LINGUAS_INSTALL} ${IMAGE_INSTALL_DEBUGFS}"
|
||||||
RRECOMMENDS += "${PACKAGE_INSTALL_ATTEMPTONLY}"
|
RRECOMMENDS += "${PACKAGE_INSTALL_ATTEMPTONLY}"
|
||||||
PATH_prepend = "${@":".join(all_multilib_tune_values(d, 'STAGING_BINDIR_CROSS').split())}:"
|
PATH:prepend = "${@":".join(all_multilib_tune_values(d, 'STAGING_BINDIR_CROSS').split())}:"
|
||||||
|
|
||||||
INHIBIT_DEFAULT_DEPS = "1"
|
INHIBIT_DEFAULT_DEPS = "1"
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ PID = "${@os.getpid()}"
|
|||||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||||
|
|
||||||
LDCONFIGDEPEND ?= "ldconfig-native:do_populate_sysroot"
|
LDCONFIGDEPEND ?= "ldconfig-native:do_populate_sysroot"
|
||||||
LDCONFIGDEPEND_libc-musl = ""
|
LDCONFIGDEPEND:libc-musl = ""
|
||||||
|
|
||||||
# This is needed to have depmod data in PKGDATA_DIR,
|
# This is needed to have depmod data in PKGDATA_DIR,
|
||||||
# but if you're building small initramfs image
|
# but if you're building small initramfs image
|
||||||
@@ -273,7 +273,7 @@ fakeroot python do_image_complete () {
|
|||||||
}
|
}
|
||||||
do_image_complete[dirs] = "${TOPDIR}"
|
do_image_complete[dirs] = "${TOPDIR}"
|
||||||
SSTATETASKS += "do_image_complete"
|
SSTATETASKS += "do_image_complete"
|
||||||
SSTATE_SKIP_CREATION_task-image-complete = '1'
|
SSTATE_SKIP_CREATION:task-image-complete = '1'
|
||||||
do_image_complete[sstate-inputdirs] = "${IMGDEPLOYDIR}"
|
do_image_complete[sstate-inputdirs] = "${IMGDEPLOYDIR}"
|
||||||
do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
|
do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
|
||||||
do_image_complete[stamp-extra-info] = "${MACHINE_ARCH}"
|
do_image_complete[stamp-extra-info] = "${MACHINE_ARCH}"
|
||||||
@@ -314,7 +314,7 @@ fakeroot python do_image_qa () {
|
|||||||
addtask do_image_qa after do_rootfs before do_image
|
addtask do_image_qa after do_rootfs before do_image
|
||||||
|
|
||||||
SSTATETASKS += "do_image_qa"
|
SSTATETASKS += "do_image_qa"
|
||||||
SSTATE_SKIP_CREATION_task-image-qa = '1'
|
SSTATE_SKIP_CREATION:task-image-qa = '1'
|
||||||
do_image_qa[sstate-inputdirs] = ""
|
do_image_qa[sstate-inputdirs] = ""
|
||||||
do_image_qa[sstate-outputdirs] = ""
|
do_image_qa[sstate-outputdirs] = ""
|
||||||
python do_image_qa_setscene () {
|
python do_image_qa_setscene () {
|
||||||
@@ -431,21 +431,21 @@ python () {
|
|||||||
localdata.delVar('DATETIME')
|
localdata.delVar('DATETIME')
|
||||||
localdata.delVar('DATE')
|
localdata.delVar('DATE')
|
||||||
localdata.delVar('TMPDIR')
|
localdata.delVar('TMPDIR')
|
||||||
vardepsexclude = (d.getVarFlag('IMAGE_CMD_' + realt, 'vardepsexclude', True) or '').split()
|
vardepsexclude = (d.getVarFlag('IMAGE_CMD:' + realt, 'vardepsexclude', True) or '').split()
|
||||||
for dep in vardepsexclude:
|
for dep in vardepsexclude:
|
||||||
localdata.delVar(dep)
|
localdata.delVar(dep)
|
||||||
|
|
||||||
image_cmd = localdata.getVar("IMAGE_CMD")
|
image_cmd = localdata.getVar("IMAGE_CMD")
|
||||||
vardeps.add('IMAGE_CMD_' + realt)
|
vardeps.add('IMAGE_CMD:' + realt)
|
||||||
if image_cmd:
|
if image_cmd:
|
||||||
cmds.append("\t" + image_cmd)
|
cmds.append("\t" + image_cmd)
|
||||||
else:
|
else:
|
||||||
bb.fatal("No IMAGE_CMD defined for IMAGE_FSTYPES entry '%s' - possibly invalid type name or missing support class" % t)
|
bb.fatal("No IMAGE_CMD defined for IMAGE_FSTYPES entry '%s' - possibly invalid type name or missing support class" % t)
|
||||||
cmds.append(localdata.expand("\tcd ${IMGDEPLOYDIR}"))
|
cmds.append(localdata.expand("\tcd ${IMGDEPLOYDIR}"))
|
||||||
|
|
||||||
# Since a copy of IMAGE_CMD_xxx will be inlined within do_image_xxx,
|
# Since a copy of IMAGE_CMD:xxx will be inlined within do_image_xxx,
|
||||||
# prevent a redundant copy of IMAGE_CMD_xxx being emitted as a function.
|
# prevent a redundant copy of IMAGE_CMD:xxx being emitted as a function.
|
||||||
d.delVarFlag('IMAGE_CMD_' + realt, 'func')
|
d.delVarFlag('IMAGE_CMD:' + realt, 'func')
|
||||||
|
|
||||||
rm_tmp_images = set()
|
rm_tmp_images = set()
|
||||||
def gen_conversion_cmds(bt):
|
def gen_conversion_cmds(bt):
|
||||||
@@ -667,6 +667,6 @@ systemd_preset_all () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
IMAGE_PREPROCESS_COMMAND_append = " ${@ 'systemd_preset_all;' if bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d) and not bb.utils.contains('IMAGE_FEATURES', 'stateless-rootfs', True, False, d) else ''} reproducible_final_image_task; "
|
IMAGE_PREPROCESS_COMMAND:append = " ${@ 'systemd_preset_all;' if bb.utils.contains('DISTRO_FEATURES', 'systemd', True, False, d) and not bb.utils.contains('IMAGE_FEATURES', 'stateless-rootfs', True, False, d) else ''} reproducible_final_image_task; "
|
||||||
|
|
||||||
CVE_PRODUCT = ""
|
CVE_PRODUCT = ""
|
||||||
|
|||||||
@@ -56,9 +56,9 @@ ZIP_COMPRESSION_LEVEL ?= "-9"
|
|||||||
ZSTD_COMPRESSION_LEVEL ?= "-3"
|
ZSTD_COMPRESSION_LEVEL ?= "-3"
|
||||||
|
|
||||||
JFFS2_SUM_EXTRA_ARGS ?= ""
|
JFFS2_SUM_EXTRA_ARGS ?= ""
|
||||||
IMAGE_CMD_jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 ${EXTRA_IMAGECMD}"
|
IMAGE_CMD:jffs2 = "mkfs.jffs2 --root=${IMAGE_ROOTFS} --faketime --output=${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.jffs2 ${EXTRA_IMAGECMD}"
|
||||||
|
|
||||||
IMAGE_CMD_cramfs = "mkfs.cramfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.cramfs ${EXTRA_IMAGECMD}"
|
IMAGE_CMD:cramfs = "mkfs.cramfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.cramfs ${EXTRA_IMAGECMD}"
|
||||||
|
|
||||||
oe_mkext234fs () {
|
oe_mkext234fs () {
|
||||||
fstype=$1
|
fstype=$1
|
||||||
@@ -88,12 +88,12 @@ oe_mkext234fs () {
|
|||||||
fsck.$fstype -pvfD ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype || [ $? -le 3 ]
|
fsck.$fstype -pvfD ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.$fstype || [ $? -le 3 ]
|
||||||
}
|
}
|
||||||
|
|
||||||
IMAGE_CMD_ext2 = "oe_mkext234fs ext2 ${EXTRA_IMAGECMD}"
|
IMAGE_CMD:ext2 = "oe_mkext234fs ext2 ${EXTRA_IMAGECMD}"
|
||||||
IMAGE_CMD_ext3 = "oe_mkext234fs ext3 ${EXTRA_IMAGECMD}"
|
IMAGE_CMD:ext3 = "oe_mkext234fs ext3 ${EXTRA_IMAGECMD}"
|
||||||
IMAGE_CMD_ext4 = "oe_mkext234fs ext4 ${EXTRA_IMAGECMD}"
|
IMAGE_CMD:ext4 = "oe_mkext234fs ext4 ${EXTRA_IMAGECMD}"
|
||||||
|
|
||||||
MIN_BTRFS_SIZE ?= "16384"
|
MIN_BTRFS_SIZE ?= "16384"
|
||||||
IMAGE_CMD_btrfs () {
|
IMAGE_CMD:btrfs () {
|
||||||
size=${ROOTFS_SIZE}
|
size=${ROOTFS_SIZE}
|
||||||
if [ ${size} -lt ${MIN_BTRFS_SIZE} ] ; then
|
if [ ${size} -lt ${MIN_BTRFS_SIZE} ] ; then
|
||||||
size=${MIN_BTRFS_SIZE}
|
size=${MIN_BTRFS_SIZE}
|
||||||
@@ -103,22 +103,22 @@ IMAGE_CMD_btrfs () {
|
|||||||
mkfs.btrfs ${EXTRA_IMAGECMD} -r ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.btrfs
|
mkfs.btrfs ${EXTRA_IMAGECMD} -r ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.btrfs
|
||||||
}
|
}
|
||||||
|
|
||||||
IMAGE_CMD_squashfs = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs ${EXTRA_IMAGECMD} -noappend"
|
IMAGE_CMD:squashfs = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs ${EXTRA_IMAGECMD} -noappend"
|
||||||
IMAGE_CMD_squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-xz ${EXTRA_IMAGECMD} -noappend -comp xz"
|
IMAGE_CMD:squashfs-xz = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-xz ${EXTRA_IMAGECMD} -noappend -comp xz"
|
||||||
IMAGE_CMD_squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lzo ${EXTRA_IMAGECMD} -noappend -comp lzo"
|
IMAGE_CMD:squashfs-lzo = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lzo ${EXTRA_IMAGECMD} -noappend -comp lzo"
|
||||||
IMAGE_CMD_squashfs-lz4 = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lz4 ${EXTRA_IMAGECMD} -noappend -comp lz4"
|
IMAGE_CMD:squashfs-lz4 = "mksquashfs ${IMAGE_ROOTFS} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.squashfs-lz4 ${EXTRA_IMAGECMD} -noappend -comp lz4"
|
||||||
|
|
||||||
IMAGE_CMD_erofs = "mkfs.erofs ${EXTRA_IMAGECMD} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs ${IMAGE_ROOTFS}"
|
IMAGE_CMD:erofs = "mkfs.erofs ${EXTRA_IMAGECMD} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs ${IMAGE_ROOTFS}"
|
||||||
IMAGE_CMD_erofs-lz4 = "mkfs.erofs -zlz4 ${EXTRA_IMAGECMD} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4 ${IMAGE_ROOTFS}"
|
IMAGE_CMD:erofs-lz4 = "mkfs.erofs -zlz4 ${EXTRA_IMAGECMD} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4 ${IMAGE_ROOTFS}"
|
||||||
IMAGE_CMD_erofs-lz4hc = "mkfs.erofs -zlz4hc ${EXTRA_IMAGECMD} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4hc ${IMAGE_ROOTFS}"
|
IMAGE_CMD:erofs-lz4hc = "mkfs.erofs -zlz4hc ${EXTRA_IMAGECMD} ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.erofs-lz4hc ${IMAGE_ROOTFS}"
|
||||||
|
|
||||||
|
|
||||||
IMAGE_CMD_TAR ?= "tar"
|
IMAGE_CMD_TAR ?= "tar"
|
||||||
# ignore return code 1 "file changed as we read it" as other tasks(e.g. do_image_wic) may be hardlinking rootfs
|
# ignore return code 1 "file changed as we read it" as other tasks(e.g. do_image_wic) may be hardlinking rootfs
|
||||||
IMAGE_CMD_tar = "${IMAGE_CMD_TAR} --sort=name --format=posix --numeric-owner -cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . || [ $? -eq 1 ]"
|
IMAGE_CMD:tar = "${IMAGE_CMD_TAR} --sort=name --format=posix --numeric-owner -cf ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.tar -C ${IMAGE_ROOTFS} . || [ $? -eq 1 ]"
|
||||||
|
|
||||||
do_image_cpio[cleandirs] += "${WORKDIR}/cpio_append"
|
do_image_cpio[cleandirs] += "${WORKDIR}/cpio_append"
|
||||||
IMAGE_CMD_cpio () {
|
IMAGE_CMD:cpio () {
|
||||||
(cd ${IMAGE_ROOTFS} && find . | sort | cpio --reproducible -o -H newc >${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.cpio)
|
(cd ${IMAGE_ROOTFS} && find . | sort | cpio --reproducible -o -H newc >${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.cpio)
|
||||||
# We only need the /init symlink if we're building the real
|
# We only need the /init symlink if we're building the real
|
||||||
# image. The -dbg image doesn't need it! By being clever
|
# image. The -dbg image doesn't need it! By being clever
|
||||||
@@ -184,7 +184,7 @@ multiubi_mkfs() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
IMAGE_CMD_multiubi () {
|
IMAGE_CMD:multiubi () {
|
||||||
# Split MKUBIFS_ARGS_<name> and UBINIZE_ARGS_<name>
|
# Split MKUBIFS_ARGS_<name> and UBINIZE_ARGS_<name>
|
||||||
for name in ${MULTIUBI_BUILD}; do
|
for name in ${MULTIUBI_BUILD}; do
|
||||||
eval local mkubifs_args=\"\$MKUBIFS_ARGS_${name}\"
|
eval local mkubifs_args=\"\$MKUBIFS_ARGS_${name}\"
|
||||||
@@ -194,15 +194,15 @@ IMAGE_CMD_multiubi () {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
IMAGE_CMD_ubi () {
|
IMAGE_CMD:ubi () {
|
||||||
multiubi_mkfs "${MKUBIFS_ARGS}" "${UBINIZE_ARGS}"
|
multiubi_mkfs "${MKUBIFS_ARGS}" "${UBINIZE_ARGS}"
|
||||||
}
|
}
|
||||||
IMAGE_TYPEDEP_ubi = "ubifs"
|
IMAGE_TYPEDEP_ubi = "ubifs"
|
||||||
|
|
||||||
IMAGE_CMD_ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ubifs ${MKUBIFS_ARGS}"
|
IMAGE_CMD:ubifs = "mkfs.ubifs -r ${IMAGE_ROOTFS} -o ${IMGDEPLOYDIR}/${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.ubifs ${MKUBIFS_ARGS}"
|
||||||
|
|
||||||
MIN_F2FS_SIZE ?= "524288"
|
MIN_F2FS_SIZE ?= "524288"
|
||||||
IMAGE_CMD_f2fs () {
|
IMAGE_CMD:f2fs () {
|
||||||
# We need to add additional smarts here form devices smaller than 1.5G
|
# We need to add additional smarts here form devices smaller than 1.5G
|
||||||
# Need to scale appropriately between 40M -> 1.5G as the "overprovision
|
# Need to scale appropriately between 40M -> 1.5G as the "overprovision
|
||||||
# ratio" goes down as the device gets bigger (70% -> 4.5%), below about
|
# ratio" goes down as the device gets bigger (70% -> 4.5%), below about
|
||||||
@@ -224,14 +224,14 @@ inherit siteinfo kernel-arch image-artifact-names
|
|||||||
|
|
||||||
JFFS2_ENDIANNESS ?= "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-l', '-b', d)}"
|
JFFS2_ENDIANNESS ?= "${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', '-l', '-b', d)}"
|
||||||
JFFS2_ERASEBLOCK ?= "0x40000"
|
JFFS2_ERASEBLOCK ?= "0x40000"
|
||||||
EXTRA_IMAGECMD_jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers"
|
EXTRA_IMAGECMD:jffs2 ?= "--pad ${JFFS2_ENDIANNESS} --eraseblock=${JFFS2_ERASEBLOCK} --no-cleanmarkers"
|
||||||
|
|
||||||
# Change these if you want default mkfs behavior (i.e. create minimal inode number)
|
# Change these if you want default mkfs behavior (i.e. create minimal inode number)
|
||||||
EXTRA_IMAGECMD_ext2 ?= "-i 4096"
|
EXTRA_IMAGECMD:ext2 ?= "-i 4096"
|
||||||
EXTRA_IMAGECMD_ext3 ?= "-i 4096"
|
EXTRA_IMAGECMD:ext3 ?= "-i 4096"
|
||||||
EXTRA_IMAGECMD_ext4 ?= "-i 4096"
|
EXTRA_IMAGECMD:ext4 ?= "-i 4096"
|
||||||
EXTRA_IMAGECMD_btrfs ?= "-n 4096 --shrink"
|
EXTRA_IMAGECMD:btrfs ?= "-n 4096 --shrink"
|
||||||
EXTRA_IMAGECMD_f2fs ?= ""
|
EXTRA_IMAGECMD:f2fs ?= ""
|
||||||
|
|
||||||
do_image_cpio[depends] += "cpio-native:do_populate_sysroot"
|
do_image_cpio[depends] += "cpio-native:do_populate_sysroot"
|
||||||
do_image_jffs2[depends] += "mtd-utils-native:do_populate_sysroot"
|
do_image_jffs2[depends] += "mtd-utils-native:do_populate_sysroot"
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ def wks_search(files, search_path):
|
|||||||
|
|
||||||
WIC_CREATE_EXTRA_ARGS ?= ""
|
WIC_CREATE_EXTRA_ARGS ?= ""
|
||||||
|
|
||||||
IMAGE_CMD_wic () {
|
IMAGE_CMD:wic () {
|
||||||
out="${IMGDEPLOYDIR}/${IMAGE_NAME}"
|
out="${IMGDEPLOYDIR}/${IMAGE_NAME}"
|
||||||
build_wic="${WORKDIR}/build-wic"
|
build_wic="${WORKDIR}/build-wic"
|
||||||
tmp_wic="${WORKDIR}/tmp-wic"
|
tmp_wic="${WORKDIR}/tmp-wic"
|
||||||
@@ -42,7 +42,7 @@ IMAGE_CMD_wic () {
|
|||||||
BUILDDIR="${TOPDIR}" PSEUDO_UNLOAD=1 wic create "$wks" --vars "${STAGING_DIR}/${MACHINE}/imgdata/" -e "${IMAGE_BASENAME}" -o "$build_wic/" -w "$tmp_wic" ${WIC_CREATE_EXTRA_ARGS}
|
BUILDDIR="${TOPDIR}" PSEUDO_UNLOAD=1 wic create "$wks" --vars "${STAGING_DIR}/${MACHINE}/imgdata/" -e "${IMAGE_BASENAME}" -o "$build_wic/" -w "$tmp_wic" ${WIC_CREATE_EXTRA_ARGS}
|
||||||
mv "$build_wic/$(basename "${wks%.wks}")"*.direct "$out${IMAGE_NAME_SUFFIX}.wic"
|
mv "$build_wic/$(basename "${wks%.wks}")"*.direct "$out${IMAGE_NAME_SUFFIX}.wic"
|
||||||
}
|
}
|
||||||
IMAGE_CMD_wic[vardepsexclude] = "WKS_FULL_PATH WKS_FILES TOPDIR"
|
IMAGE_CMD:wic[vardepsexclude] = "WKS_FULL_PATH WKS_FILES TOPDIR"
|
||||||
do_image_wic[cleandirs] = "${WORKDIR}/build-wic"
|
do_image_wic[cleandirs] = "${WORKDIR}/build-wic"
|
||||||
|
|
||||||
PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/build-wic"
|
PSEUDO_IGNORE_PATHS .= ",${WORKDIR}/build-wic"
|
||||||
@@ -60,9 +60,9 @@ do_image_wic[deptask] += "do_image_complete"
|
|||||||
WKS_FILE_DEPENDS_DEFAULT = '${@bb.utils.contains_any("BUILD_ARCH", [ 'x86_64', 'i686' ], "syslinux-native", "",d)}'
|
WKS_FILE_DEPENDS_DEFAULT = '${@bb.utils.contains_any("BUILD_ARCH", [ 'x86_64', 'i686' ], "syslinux-native", "",d)}'
|
||||||
WKS_FILE_DEPENDS_DEFAULT += "bmap-tools-native cdrtools-native btrfs-tools-native squashfs-tools-native e2fsprogs-native"
|
WKS_FILE_DEPENDS_DEFAULT += "bmap-tools-native cdrtools-native btrfs-tools-native squashfs-tools-native e2fsprogs-native"
|
||||||
WKS_FILE_DEPENDS_BOOTLOADERS = ""
|
WKS_FILE_DEPENDS_BOOTLOADERS = ""
|
||||||
WKS_FILE_DEPENDS_BOOTLOADERS_x86 = "syslinux grub-efi systemd-boot"
|
WKS_FILE_DEPENDS_BOOTLOADERS:x86 = "syslinux grub-efi systemd-boot"
|
||||||
WKS_FILE_DEPENDS_BOOTLOADERS_x86-64 = "syslinux grub-efi systemd-boot"
|
WKS_FILE_DEPENDS_BOOTLOADERS:x86-64 = "syslinux grub-efi systemd-boot"
|
||||||
WKS_FILE_DEPENDS_BOOTLOADERS_x86-x32 = "syslinux grub-efi"
|
WKS_FILE_DEPENDS_BOOTLOADERS:x86-x32 = "syslinux grub-efi"
|
||||||
|
|
||||||
WKS_FILE_DEPENDS ??= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}"
|
WKS_FILE_DEPENDS ??= "${WKS_FILE_DEPENDS_DEFAULT} ${WKS_FILE_DEPENDS_BOOTLOADERS}"
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch pkgconfig la \
|
|||||||
useless-rpaths rpaths staticdev \
|
useless-rpaths rpaths staticdev \
|
||||||
"
|
"
|
||||||
# Add usrmerge QA check based on distro feature
|
# Add usrmerge QA check based on distro feature
|
||||||
ERROR_QA_append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"
|
ERROR_QA:append = "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', ' usrmerge', '', d)}"
|
||||||
|
|
||||||
FAKEROOT_QA = "host-user-contaminated"
|
FAKEROOT_QA = "host-user-contaminated"
|
||||||
FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \
|
FAKEROOT_QA[doc] = "QA tests which need to run under fakeroot. If any \
|
||||||
@@ -246,7 +246,7 @@ def package_qa_check_mime_xdg(path, name, d, elf, messages):
|
|||||||
pkgname = name
|
pkgname = name
|
||||||
if name == d.getVar('PN'):
|
if name == d.getVar('PN'):
|
||||||
pkgname = '${PN}'
|
pkgname = '${PN}'
|
||||||
wstr += "If yes: add \'inhert mime-xdg\' and \'MIME_XDG_PACKAGES += \"%s\"\' / if no add \'INSANE_SKIP_%s += \"mime-xdg\"\' to recipe." % (pkgname, pkgname)
|
wstr += "If yes: add \'inhert mime-xdg\' and \'MIME_XDG_PACKAGES += \"%s\"\' / if no add \'INSANE_SKIP:%s += \"mime-xdg\"\' to recipe." % (pkgname, pkgname)
|
||||||
package_qa_add_message(messages, "mime-xdg", wstr)
|
package_qa_add_message(messages, "mime-xdg", wstr)
|
||||||
if mime_type_found:
|
if mime_type_found:
|
||||||
package_qa_add_message(messages, "mime-xdg", "package contains desktop file with key 'MimeType' but does not inhert mime-xdg: %s path '%s'" % \
|
package_qa_add_message(messages, "mime-xdg", "package contains desktop file with key 'MimeType' but does not inhert mime-xdg: %s path '%s'" % \
|
||||||
@@ -279,7 +279,7 @@ def package_qa_check_libdir(d):
|
|||||||
# Skip subdirectories for any packages with libdir in INSANE_SKIP
|
# Skip subdirectories for any packages with libdir in INSANE_SKIP
|
||||||
skippackages = []
|
skippackages = []
|
||||||
for package in dirs:
|
for package in dirs:
|
||||||
if 'libdir' in (d.getVar('INSANE_SKIP_' + package) or "").split():
|
if 'libdir' in (d.getVar('INSANE_SKIP:' + package) or "").split():
|
||||||
bb.note("Package %s skipping libdir QA test" % (package))
|
bb.note("Package %s skipping libdir QA test" % (package))
|
||||||
skippackages.append(package)
|
skippackages.append(package)
|
||||||
elif d.getVar('PACKAGE_DEBUG_SPLIT_STYLE') == 'debug-file-directory' and package.endswith("-dbg"):
|
elif d.getVar('PACKAGE_DEBUG_SPLIT_STYLE') == 'debug-file-directory' and package.endswith("-dbg"):
|
||||||
@@ -483,7 +483,7 @@ def package_qa_check_xorg_driver_abi(path, name, d, elf, messages):
|
|||||||
driverdir = d.expand("${libdir}/xorg/modules/drivers/")
|
driverdir = d.expand("${libdir}/xorg/modules/drivers/")
|
||||||
if driverdir in path and path.endswith(".so"):
|
if driverdir in path and path.endswith(".so"):
|
||||||
mlprefix = d.getVar('MLPREFIX') or ''
|
mlprefix = d.getVar('MLPREFIX') or ''
|
||||||
for rdep in bb.utils.explode_deps(d.getVar('RDEPENDS_' + name) or ""):
|
for rdep in bb.utils.explode_deps(d.getVar('RDEPENDS:' + name) or ""):
|
||||||
if rdep.startswith("%sxorg-abi-" % mlprefix):
|
if rdep.startswith("%sxorg-abi-" % mlprefix):
|
||||||
return
|
return
|
||||||
package_qa_add_message(messages, "xorg-driver-abi", "Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path)))
|
package_qa_add_message(messages, "xorg-driver-abi", "Package %s contains Xorg driver (%s) but no xorg-abi- dependencies" % (name, os.path.basename(path)))
|
||||||
@@ -795,7 +795,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
|
|||||||
|
|
||||||
# The python is not a package, but python-core provides it, so
|
# The python is not a package, but python-core provides it, so
|
||||||
# skip checking /usr/bin/python if python is in the rdeps, in
|
# skip checking /usr/bin/python if python is in the rdeps, in
|
||||||
# case there is a RDEPENDS_pkg = "python" in the recipe.
|
# case there is a RDEPENDS:pkg = "python" in the recipe.
|
||||||
for py in [ d.getVar('MLPREFIX') + "python", "python" ]:
|
for py in [ d.getVar('MLPREFIX') + "python", "python" ]:
|
||||||
if py in done:
|
if py in done:
|
||||||
filerdepends.pop("/usr/bin/python",None)
|
filerdepends.pop("/usr/bin/python",None)
|
||||||
@@ -808,7 +808,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
|
|||||||
# For Saving the FILERPROVIDES, RPROVIDES and FILES_INFO
|
# For Saving the FILERPROVIDES, RPROVIDES and FILES_INFO
|
||||||
rdep_data = oe.packagedata.read_subpkgdata(rdep, d)
|
rdep_data = oe.packagedata.read_subpkgdata(rdep, d)
|
||||||
for key in rdep_data:
|
for key in rdep_data:
|
||||||
if key.startswith("FILERPROVIDES_") or key.startswith("RPROVIDES_"):
|
if key.startswith("FILERPROVIDES_") or key.startswith("RPROVIDES:"):
|
||||||
for subkey in bb.utils.explode_deps(rdep_data[key]):
|
for subkey in bb.utils.explode_deps(rdep_data[key]):
|
||||||
filerdepends.pop(subkey,None)
|
filerdepends.pop(subkey,None)
|
||||||
# Add the files list to the rprovides
|
# Add the files list to the rprovides
|
||||||
@@ -821,7 +821,7 @@ def package_qa_check_rdepends(pkg, pkgdest, skip, taskdeps, packages, d):
|
|||||||
break
|
break
|
||||||
if filerdepends:
|
if filerdepends:
|
||||||
for key in filerdepends:
|
for key in filerdepends:
|
||||||
error_msg = "%s contained in package %s requires %s, but no providers found in RDEPENDS_%s?" % \
|
error_msg = "%s contained in package %s requires %s, but no providers found in RDEPENDS:%s?" % \
|
||||||
(filerdepends[key].replace("_%s" % pkg, "").replace("@underscore@", "_"), pkg, key, pkg)
|
(filerdepends[key].replace("_%s" % pkg, "").replace("@underscore@", "_"), pkg, key, pkg)
|
||||||
package_qa_handle_error("file-rdeps", error_msg, d)
|
package_qa_handle_error("file-rdeps", error_msg, d)
|
||||||
package_qa_check_rdepends[vardepsexclude] = "OVERRIDES"
|
package_qa_check_rdepends[vardepsexclude] = "OVERRIDES"
|
||||||
@@ -903,7 +903,7 @@ def package_qa_check_unlisted_pkg_lics(package, d, messages):
|
|||||||
"""
|
"""
|
||||||
Check that all licenses for a package are among the licenses for the recipe.
|
Check that all licenses for a package are among the licenses for the recipe.
|
||||||
"""
|
"""
|
||||||
pkg_lics = d.getVar('LICENSE_' + package)
|
pkg_lics = d.getVar('LICENSE:' + package)
|
||||||
if not pkg_lics:
|
if not pkg_lics:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@@ -913,7 +913,7 @@ def package_qa_check_unlisted_pkg_lics(package, d, messages):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
package_qa_add_message(messages, "unlisted-pkg-lics",
|
package_qa_add_message(messages, "unlisted-pkg-lics",
|
||||||
"LICENSE_%s includes licenses (%s) that are not "
|
"LICENSE:%s includes licenses (%s) that are not "
|
||||||
"listed in LICENSE" % (package, ' '.join(unlisted)))
|
"listed in LICENSE" % (package, ' '.join(unlisted)))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
@@ -996,8 +996,8 @@ def package_qa_check_missing_update_alternatives(pn, d, messages):
|
|||||||
# Look at all packages and find out if any of those sets ALTERNATIVE variable
|
# Look at all packages and find out if any of those sets ALTERNATIVE variable
|
||||||
# without inheriting update-alternatives class
|
# without inheriting update-alternatives class
|
||||||
for pkg in (d.getVar('PACKAGES') or '').split():
|
for pkg in (d.getVar('PACKAGES') or '').split():
|
||||||
if d.getVar('ALTERNATIVE_%s' % pkg) and not bb.data.inherits_class('update-alternatives', d):
|
if d.getVar('ALTERNATIVE:%s' % pkg) and not bb.data.inherits_class('update-alternatives', d):
|
||||||
package_qa_handle_error("missing-update-alternatives", "%s: recipe defines ALTERNATIVE_%s but doesn't inherit update-alternatives. This might fail during do_rootfs later!" % (pn, pkg), d)
|
package_qa_handle_error("missing-update-alternatives", "%s: recipe defines ALTERNATIVE:%s but doesn't inherit update-alternatives. This might fail during do_rootfs later!" % (pn, pkg), d)
|
||||||
|
|
||||||
# The PACKAGE FUNC to scan each package
|
# The PACKAGE FUNC to scan each package
|
||||||
python do_package_qa () {
|
python do_package_qa () {
|
||||||
@@ -1066,7 +1066,7 @@ python do_package_qa () {
|
|||||||
|
|
||||||
for package in packages:
|
for package in packages:
|
||||||
skip = set((d.getVar('INSANE_SKIP') or "").split() +
|
skip = set((d.getVar('INSANE_SKIP') or "").split() +
|
||||||
(d.getVar('INSANE_SKIP_' + package) or "").split())
|
(d.getVar('INSANE_SKIP:' + package) or "").split())
|
||||||
if skip:
|
if skip:
|
||||||
bb.note("Package %s skipping QA tests: %s" % (package, str(skip)))
|
bb.note("Package %s skipping QA tests: %s" % (package, str(skip)))
|
||||||
|
|
||||||
@@ -1108,7 +1108,7 @@ addtask do_package_qa after do_packagedata do_package before do_build
|
|||||||
python() {
|
python() {
|
||||||
pkgs = (d.getVar('PACKAGES') or '').split()
|
pkgs = (d.getVar('PACKAGES') or '').split()
|
||||||
for pkg in pkgs:
|
for pkg in pkgs:
|
||||||
d.appendVarFlag("do_package_qa", "vardeps", " INSANE_SKIP_{}".format(pkg))
|
d.appendVarFlag("do_package_qa", "vardeps", " INSANE_SKIP:{}".format(pkg))
|
||||||
}
|
}
|
||||||
|
|
||||||
SSTATETASKS += "do_package_qa"
|
SSTATETASKS += "do_package_qa"
|
||||||
@@ -1309,8 +1309,8 @@ python () {
|
|||||||
msg = "FILESEXTRAPATHS-variable, must always use _prepend (or _append)\n"
|
msg = "FILESEXTRAPATHS-variable, must always use _prepend (or _append)\n"
|
||||||
msg += "type of assignment, and don't forget the colon.\n"
|
msg += "type of assignment, and don't forget the colon.\n"
|
||||||
msg += "Please assign it with the format of:\n"
|
msg += "Please assign it with the format of:\n"
|
||||||
msg += " FILESEXTRAPATHS_append := \":${THISDIR}/Your_Files_Path\" or\n"
|
msg += " FILESEXTRAPATHS:append := \":${THISDIR}/Your_Files_Path\" or\n"
|
||||||
msg += " FILESEXTRAPATHS_prepend := \"${THISDIR}/Your_Files_Path:\"\n"
|
msg += " FILESEXTRAPATHS:prepend := \"${THISDIR}/Your_Files_Path:\"\n"
|
||||||
msg += "in your bbappend file\n\n"
|
msg += "in your bbappend file\n\n"
|
||||||
msg += "Your incorrect assignment is:\n"
|
msg += "Your incorrect assignment is:\n"
|
||||||
msg += "%s\n" % extrapaths
|
msg += "%s\n" % extrapaths
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ python () {
|
|||||||
d.appendVar("PACKAGES", " ${KERNEL_PACKAGE_NAME}-image-zimage-bundle")
|
d.appendVar("PACKAGES", " ${KERNEL_PACKAGE_NAME}-image-zimage-bundle")
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-devicetree = "/${KERNEL_IMAGEDEST}/*.dtb /${KERNEL_IMAGEDEST}/*.dtbo"
|
FILES:${KERNEL_PACKAGE_NAME}-devicetree = "/${KERNEL_IMAGEDEST}/*.dtb /${KERNEL_IMAGEDEST}/*.dtbo"
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-image-zimage-bundle = "/${KERNEL_IMAGEDEST}/zImage-*.dtb.bin"
|
FILES:${KERNEL_PACKAGE_NAME}-image-zimage-bundle = "/${KERNEL_IMAGEDEST}/zImage-*.dtb.bin"
|
||||||
|
|
||||||
# Generate kernel+devicetree bundle
|
# Generate kernel+devicetree bundle
|
||||||
KERNEL_DEVICETREE_BUNDLE ?= "0"
|
KERNEL_DEVICETREE_BUNDLE ?= "0"
|
||||||
@@ -33,7 +33,7 @@ get_real_dtb_path_in_kernel () {
|
|||||||
echo "$dtb_path"
|
echo "$dtb_path"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_configure_append() {
|
do_configure:append() {
|
||||||
if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then
|
if [ "${KERNEL_DEVICETREE_BUNDLE}" = "1" ]; then
|
||||||
if echo ${KERNEL_IMAGETYPE_FOR_MAKE} | grep -q 'zImage'; then
|
if echo ${KERNEL_IMAGETYPE_FOR_MAKE} | grep -q 'zImage'; then
|
||||||
case "${ARCH}" in
|
case "${ARCH}" in
|
||||||
@@ -55,7 +55,7 @@ do_configure_append() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
do_compile_append() {
|
do_compile:append() {
|
||||||
if [ -n "${KERNEL_DTC_FLAGS}" ]; then
|
if [ -n "${KERNEL_DTC_FLAGS}" ]; then
|
||||||
export DTC_FLAGS="${KERNEL_DTC_FLAGS}"
|
export DTC_FLAGS="${KERNEL_DTC_FLAGS}"
|
||||||
fi
|
fi
|
||||||
@@ -66,7 +66,7 @@ do_compile_append() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append() {
|
do_install:append() {
|
||||||
for dtbf in ${KERNEL_DEVICETREE}; do
|
for dtbf in ${KERNEL_DEVICETREE}; do
|
||||||
dtb=`normalize_dtb "$dtbf"`
|
dtb=`normalize_dtb "$dtbf"`
|
||||||
dtb_ext=${dtb##*.}
|
dtb_ext=${dtb##*.}
|
||||||
@@ -76,7 +76,7 @@ do_install_append() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
do_deploy_append() {
|
do_deploy:append() {
|
||||||
for dtbf in ${KERNEL_DEVICETREE}; do
|
for dtbf in ${KERNEL_DEVICETREE}; do
|
||||||
dtb=`normalize_dtb "$dtbf"`
|
dtb=`normalize_dtb "$dtbf"`
|
||||||
dtb_ext=${dtb##*.}
|
dtb_ext=${dtb##*.}
|
||||||
|
|||||||
@@ -697,7 +697,7 @@ do_kernel_generate_rsa_keys() {
|
|||||||
addtask kernel_generate_rsa_keys before do_assemble_fitimage after do_compile
|
addtask kernel_generate_rsa_keys before do_assemble_fitimage after do_compile
|
||||||
|
|
||||||
kernel_do_deploy[vardepsexclude] = "DATETIME"
|
kernel_do_deploy[vardepsexclude] = "DATETIME"
|
||||||
kernel_do_deploy_append() {
|
kernel_do_deploy:append() {
|
||||||
# Update deploy directory
|
# Update deploy directory
|
||||||
if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage"; then
|
if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage"; then
|
||||||
|
|
||||||
|
|||||||
@@ -97,9 +97,9 @@ python __anonymous () {
|
|||||||
|
|
||||||
for type in imagetypes.split():
|
for type in imagetypes.split():
|
||||||
typelower = type.lower()
|
typelower = type.lower()
|
||||||
preinst_append = preinst.replace('KERNEL_IMAGETYPE', type)
|
preinst:append = preinst.replace('KERNEL_IMAGETYPE', type)
|
||||||
postinst_prepend = postinst.replace('KERNEL_IMAGETYPE', type)
|
postinst:prepend = postinst.replace('KERNEL_IMAGETYPE', type)
|
||||||
d.setVar('pkg_preinst_kernel-image-' + typelower + '_append', preinst_append)
|
d.setVar('pkg_preinst:kernel-image-' + typelower + '_append', preinst:append)
|
||||||
d.setVar('pkg_postinst_kernel-image-' + typelower + '_prepend', postinst_prepend)
|
d.setVar('pkg_postinst:kernel-image-' + typelower + '_prepend', postinst:prepend)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
pkg_postinst_modules () {
|
pkg_postinst:modules () {
|
||||||
if [ -z "$D" ]; then
|
if [ -z "$D" ]; then
|
||||||
depmod -a ${KERNEL_VERSION}
|
depmod -a ${KERNEL_VERSION}
|
||||||
else
|
else
|
||||||
@@ -8,7 +8,7 @@ else
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postrm_modules () {
|
pkg_postrm:modules () {
|
||||||
if [ -z "$D" ]; then
|
if [ -z "$D" ]; then
|
||||||
depmod -a ${KERNEL_VERSION}
|
depmod -a ${KERNEL_VERSION}
|
||||||
else
|
else
|
||||||
@@ -24,11 +24,11 @@ fi
|
|||||||
|
|
||||||
PACKAGE_WRITE_DEPS += "kmod-native depmodwrapper-cross"
|
PACKAGE_WRITE_DEPS += "kmod-native depmodwrapper-cross"
|
||||||
|
|
||||||
do_install_append() {
|
do_install:append() {
|
||||||
install -d ${D}${sysconfdir}/modules-load.d/ ${D}${sysconfdir}/modprobe.d/
|
install -d ${D}${sysconfdir}/modules-load.d/ ${D}${sysconfdir}/modprobe.d/
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGESPLITFUNCS_prepend = "split_kernel_module_packages "
|
PACKAGESPLITFUNCS:prepend = "split_kernel_module_packages "
|
||||||
|
|
||||||
KERNEL_MODULES_META_PACKAGE ?= "${@ d.getVar("KERNEL_PACKAGE_NAME") or "kernel" }-modules"
|
KERNEL_MODULES_META_PACKAGE ?= "${@ d.getVar("KERNEL_PACKAGE_NAME") or "kernel" }-modules"
|
||||||
|
|
||||||
@@ -100,11 +100,11 @@ python split_kernel_module_packages () {
|
|||||||
else:
|
else:
|
||||||
f.write('%s\n' % basename)
|
f.write('%s\n' % basename)
|
||||||
f.close()
|
f.close()
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
bb.fatal("pkg_postinst_%s not defined" % pkg)
|
bb.fatal("pkg_postinst:%s not defined" % pkg)
|
||||||
postinst += d.getVar('autoload_postinst_fragment') % (autoload or basename)
|
postinst += d.getVar('autoload_postinst_fragment') % (autoload or basename)
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
|
|
||||||
# Write out any modconf fragment
|
# Write out any modconf fragment
|
||||||
modconflist = (d.getVar("KERNEL_MODULE_PROBECONF") or "").split()
|
modconflist = (d.getVar("KERNEL_MODULE_PROBECONF") or "").split()
|
||||||
@@ -117,19 +117,19 @@ python split_kernel_module_packages () {
|
|||||||
elif modconf:
|
elif modconf:
|
||||||
bb.error("Please ensure module %s is listed in KERNEL_MODULE_PROBECONF since module_conf_%s is set" % (basename, basename))
|
bb.error("Please ensure module %s is listed in KERNEL_MODULE_PROBECONF since module_conf_%s is set" % (basename, basename))
|
||||||
|
|
||||||
files = d.getVar('FILES_%s' % pkg)
|
files = d.getVar('FILES:%s' % pkg)
|
||||||
files = "%s /etc/modules-load.d/%s.conf /etc/modprobe.d/%s.conf" % (files, basename, basename)
|
files = "%s /etc/modules-load.d/%s.conf /etc/modprobe.d/%s.conf" % (files, basename, basename)
|
||||||
d.setVar('FILES_%s' % pkg, files)
|
d.setVar('FILES:%s' % pkg, files)
|
||||||
|
|
||||||
conffiles = d.getVar('CONFFILES_%s' % pkg)
|
conffiles = d.getVar('CONFFILES:%s' % pkg)
|
||||||
conffiles = "%s /etc/modules-load.d/%s.conf /etc/modprobe.d/%s.conf" % (conffiles, basename, basename)
|
conffiles = "%s /etc/modules-load.d/%s.conf /etc/modprobe.d/%s.conf" % (conffiles, basename, basename)
|
||||||
d.setVar('CONFFILES_%s' % pkg, conffiles)
|
d.setVar('CONFFILES:%s' % pkg, conffiles)
|
||||||
|
|
||||||
if "description" in vals:
|
if "description" in vals:
|
||||||
old_desc = d.getVar('DESCRIPTION_' + pkg) or ""
|
old_desc = d.getVar('DESCRIPTION:' + pkg) or ""
|
||||||
d.setVar('DESCRIPTION_' + pkg, old_desc + "; " + vals["description"])
|
d.setVar('DESCRIPTION:' + pkg, old_desc + "; " + vals["description"])
|
||||||
|
|
||||||
rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS_' + pkg) or "")
|
rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS:' + pkg) or "")
|
||||||
modinfo_deps = []
|
modinfo_deps = []
|
||||||
if "depends" in vals and vals["depends"] != "":
|
if "depends" in vals and vals["depends"] != "":
|
||||||
for dep in vals["depends"].split(","):
|
for dep in vals["depends"].split(","):
|
||||||
@@ -139,16 +139,16 @@ python split_kernel_module_packages () {
|
|||||||
for dep in modinfo_deps:
|
for dep in modinfo_deps:
|
||||||
if not dep in rdepends:
|
if not dep in rdepends:
|
||||||
rdepends[dep] = []
|
rdepends[dep] = []
|
||||||
d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
|
d.setVar('RDEPENDS:' + pkg, bb.utils.join_deps(rdepends, commasep=False))
|
||||||
|
|
||||||
# Avoid automatic -dev recommendations for modules ending with -dev.
|
# Avoid automatic -dev recommendations for modules ending with -dev.
|
||||||
d.setVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs', 1)
|
d.setVarFlag('RRECOMMENDS:' + pkg, 'nodeprrecs', 1)
|
||||||
|
|
||||||
# Provide virtual package without postfix
|
# Provide virtual package without postfix
|
||||||
providevirt = d.getVar('KERNEL_MODULE_PROVIDE_VIRTUAL')
|
providevirt = d.getVar('KERNEL_MODULE_PROVIDE_VIRTUAL')
|
||||||
if providevirt == "1":
|
if providevirt == "1":
|
||||||
postfix = format.split('%s')[1]
|
postfix = format.split('%s')[1]
|
||||||
d.setVar('RPROVIDES_' + pkg, pkg.replace(postfix, ''))
|
d.setVar('RPROVIDES:' + pkg, pkg.replace(postfix, ''))
|
||||||
|
|
||||||
kernel_package_name = d.getVar("KERNEL_PACKAGE_NAME") or "kernel"
|
kernel_package_name = d.getVar("KERNEL_PACKAGE_NAME") or "kernel"
|
||||||
kernel_version = d.getVar("KERNEL_VERSION")
|
kernel_version = d.getVar("KERNEL_VERSION")
|
||||||
@@ -159,13 +159,13 @@ python split_kernel_module_packages () {
|
|||||||
module_pattern_suffix = d.getVar('KERNEL_MODULE_PACKAGE_SUFFIX')
|
module_pattern_suffix = d.getVar('KERNEL_MODULE_PACKAGE_SUFFIX')
|
||||||
module_pattern = module_pattern_prefix + kernel_package_name + '-module-%s' + module_pattern_suffix
|
module_pattern = module_pattern_prefix + kernel_package_name + '-module-%s' + module_pattern_suffix
|
||||||
|
|
||||||
postinst = d.getVar('pkg_postinst_modules')
|
postinst = d.getVar('pkg_postinst:modules')
|
||||||
postrm = d.getVar('pkg_postrm_modules')
|
postrm = d.getVar('pkg_postrm:modules')
|
||||||
|
|
||||||
modules = do_split_packages(d, root='${nonarch_base_libdir}/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='%s-%s' % (kernel_package_name, kernel_version))
|
modules = do_split_packages(d, root='${nonarch_base_libdir}/modules', file_regex=module_regex, output_pattern=module_pattern, description='%s kernel module', postinst=postinst, postrm=postrm, recursive=True, hook=frob_metadata, extra_depends='%s-%s' % (kernel_package_name, kernel_version))
|
||||||
if modules:
|
if modules:
|
||||||
metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE')
|
metapkg = d.getVar('KERNEL_MODULES_META_PACKAGE')
|
||||||
d.appendVar('RDEPENDS_' + metapkg, ' '+' '.join(modules))
|
d.appendVar('RDEPENDS:' + metapkg, ' '+' '.join(modules))
|
||||||
|
|
||||||
# If modules-load.d and modprobe.d are empty at this point, remove them to
|
# If modules-load.d and modprobe.d are empty at this point, remove them to
|
||||||
# avoid warnings. removedirs only raises an OSError if an empty
|
# avoid warnings. removedirs only raises an OSError if an empty
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ python do_config_analysis() {
|
|||||||
env['srctree'] = s
|
env['srctree'] = s
|
||||||
|
|
||||||
# read specific symbols from the kernel recipe or from local.conf
|
# read specific symbols from the kernel recipe or from local.conf
|
||||||
# i.e.: CONFIG_ANALYSIS_pn-linux-yocto-dev = 'NF_CONNTRACK LOCALVERSION'
|
# i.e.: CONFIG_ANALYSIS:pn-linux-yocto-dev = 'NF_CONNTRACK LOCALVERSION'
|
||||||
config = d.getVar( 'CONFIG_ANALYSIS' )
|
config = d.getVar( 'CONFIG_ANALYSIS' )
|
||||||
if not config:
|
if not config:
|
||||||
config = [ "" ]
|
config = [ "" ]
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ python __anonymous () {
|
|||||||
kpn = d.getVar("KERNEL_PACKAGE_NAME")
|
kpn = d.getVar("KERNEL_PACKAGE_NAME")
|
||||||
|
|
||||||
# XXX Remove this after bug 11905 is resolved
|
# XXX Remove this after bug 11905 is resolved
|
||||||
# FILES_${KERNEL_PACKAGE_NAME}-dev doesn't expand correctly
|
# FILES:${KERNEL_PACKAGE_NAME}-dev doesn't expand correctly
|
||||||
if kpn == pn:
|
if kpn == pn:
|
||||||
bb.warn("Some packages (E.g. *-dev) might be missing due to "
|
bb.warn("Some packages (E.g. *-dev) might be missing due to "
|
||||||
"bug 11905 (variable KERNEL_PACKAGE_NAME == PN)")
|
"bug 11905 (variable KERNEL_PACKAGE_NAME == PN)")
|
||||||
@@ -96,11 +96,11 @@ python __anonymous () {
|
|||||||
continue
|
continue
|
||||||
typelower = type.lower()
|
typelower = type.lower()
|
||||||
d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower))
|
d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower))
|
||||||
d.setVar('FILES_' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type)
|
d.setVar('FILES:' + kname + '-image-' + typelower, '/' + imagedest + '/' + type + '-${KERNEL_VERSION_NAME}' + ' /' + imagedest + '/' + type)
|
||||||
d.appendVar('RDEPENDS_%s-image' % kname, ' %s-image-%s' % (kname, typelower))
|
d.appendVar('RDEPENDS:%s-image' % kname, ' %s-image-%s' % (kname, typelower))
|
||||||
d.setVar('PKG_%s-image-%s' % (kname,typelower), '%s-image-%s-${KERNEL_VERSION_PKG_NAME}' % (kname, typelower))
|
d.setVar('PKG:%s-image-%s' % (kname,typelower), '%s-image-%s-${KERNEL_VERSION_PKG_NAME}' % (kname, typelower))
|
||||||
d.setVar('ALLOW_EMPTY_%s-image-%s' % (kname, typelower), '1')
|
d.setVar('ALLOW_EMPTY:%s-image-%s' % (kname, typelower), '1')
|
||||||
d.setVar('pkg_postinst_%s-image-%s' % (kname,typelower), """set +e
|
d.setVar('pkg_postinst:%s-image-%s' % (kname,typelower), """set +e
|
||||||
if [ -n "$D" ]; then
|
if [ -n "$D" ]; then
|
||||||
ln -sf %s-${KERNEL_VERSION} $D/${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1
|
ln -sf %s-${KERNEL_VERSION} $D/${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1
|
||||||
else
|
else
|
||||||
@@ -112,7 +112,7 @@ else
|
|||||||
fi
|
fi
|
||||||
set -e
|
set -e
|
||||||
""" % (type, type, type, type, type, type, type))
|
""" % (type, type, type, type, type, type, type))
|
||||||
d.setVar('pkg_postrm_%s-image-%s' % (kname,typelower), """set +e
|
d.setVar('pkg_postrm:%s-image-%s' % (kname,typelower), """set +e
|
||||||
if [ -f "${KERNEL_IMAGEDEST}/%s" -o -L "${KERNEL_IMAGEDEST}/%s" ]; then
|
if [ -f "${KERNEL_IMAGEDEST}/%s" -o -L "${KERNEL_IMAGEDEST}/%s" ]; then
|
||||||
rm -f ${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1
|
rm -f ${KERNEL_IMAGEDEST}/%s > /dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
@@ -303,7 +303,7 @@ do_bundle_initramfs () {
|
|||||||
}
|
}
|
||||||
do_bundle_initramfs[dirs] = "${B}"
|
do_bundle_initramfs[dirs] = "${B}"
|
||||||
|
|
||||||
python do_devshell_prepend () {
|
python do_devshell:prepend () {
|
||||||
os.environ["LDFLAGS"] = ''
|
os.environ["LDFLAGS"] = ''
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -591,7 +591,7 @@ kernel_do_configure() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy defconfig to .config if .config does not exist. This allows
|
# Copy defconfig to .config if .config does not exist. This allows
|
||||||
# recipes to manage the .config themselves in do_configure_prepend().
|
# recipes to manage the .config themselves in do_configure:prepend().
|
||||||
if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
|
if [ -f "${WORKDIR}/defconfig" ] && [ ! -f "${B}/.config" ]; then
|
||||||
cp "${WORKDIR}/defconfig" "${B}/.config"
|
cp "${WORKDIR}/defconfig" "${B}/.config"
|
||||||
fi
|
fi
|
||||||
@@ -608,34 +608,34 @@ addtask savedefconfig after do_configure
|
|||||||
|
|
||||||
inherit cml1
|
inherit cml1
|
||||||
|
|
||||||
KCONFIG_CONFIG_COMMAND_append = " LD='${KERNEL_LD}' HOSTLDFLAGS='${BUILD_LDFLAGS}'"
|
KCONFIG_CONFIG_COMMAND:append = " LD='${KERNEL_LD}' HOSTLDFLAGS='${BUILD_LDFLAGS}'"
|
||||||
|
|
||||||
EXPORT_FUNCTIONS do_compile do_install do_configure
|
EXPORT_FUNCTIONS do_compile do_install do_configure
|
||||||
|
|
||||||
# kernel-base becomes kernel-${KERNEL_VERSION}
|
# kernel-base becomes kernel-${KERNEL_VERSION}
|
||||||
# kernel-image becomes kernel-image-${KERNEL_VERSION}
|
# kernel-image becomes kernel-image-${KERNEL_VERSION}
|
||||||
PACKAGES = "${KERNEL_PACKAGE_NAME} ${KERNEL_PACKAGE_NAME}-base ${KERNEL_PACKAGE_NAME}-vmlinux ${KERNEL_PACKAGE_NAME}-image ${KERNEL_PACKAGE_NAME}-dev ${KERNEL_PACKAGE_NAME}-modules"
|
PACKAGES = "${KERNEL_PACKAGE_NAME} ${KERNEL_PACKAGE_NAME}-base ${KERNEL_PACKAGE_NAME}-vmlinux ${KERNEL_PACKAGE_NAME}-image ${KERNEL_PACKAGE_NAME}-dev ${KERNEL_PACKAGE_NAME}-modules"
|
||||||
FILES_${PN} = ""
|
FILES:${PN} = ""
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-base = "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.order ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"
|
FILES:${KERNEL_PACKAGE_NAME}-base = "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.order ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-image = ""
|
FILES:${KERNEL_PACKAGE_NAME}-image = ""
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH} ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"
|
FILES:${KERNEL_PACKAGE_NAME}-dev = "/boot/System.map* /boot/Module.symvers* /boot/config* ${KERNEL_SRC_PATH} ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/build"
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-vmlinux = "/boot/vmlinux-${KERNEL_VERSION_NAME}"
|
FILES:${KERNEL_PACKAGE_NAME}-vmlinux = "/boot/vmlinux-${KERNEL_VERSION_NAME}"
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-modules = ""
|
FILES:${KERNEL_PACKAGE_NAME}-modules = ""
|
||||||
RDEPENDS_${KERNEL_PACKAGE_NAME} = "${KERNEL_PACKAGE_NAME}-base"
|
RDEPENDS:${KERNEL_PACKAGE_NAME} = "${KERNEL_PACKAGE_NAME}-base"
|
||||||
# Allow machines to override this dependency if kernel image files are
|
# Allow machines to override this dependency if kernel image files are
|
||||||
# not wanted in images as standard
|
# not wanted in images as standard
|
||||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base ?= "${KERNEL_PACKAGE_NAME}-image"
|
RDEPENDS:${KERNEL_PACKAGE_NAME}-base ?= "${KERNEL_PACKAGE_NAME}-image"
|
||||||
PKG_${KERNEL_PACKAGE_NAME}-image = "${KERNEL_PACKAGE_NAME}-image-${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}"
|
PKG:${KERNEL_PACKAGE_NAME}-image = "${KERNEL_PACKAGE_NAME}-image-${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}"
|
||||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-image += "${@oe.utils.conditional('KERNEL_IMAGETYPE', 'vmlinux', '${KERNEL_PACKAGE_NAME}-vmlinux', '', d)}"
|
RDEPENDS:${KERNEL_PACKAGE_NAME}-image += "${@oe.utils.conditional('KERNEL_IMAGETYPE', 'vmlinux', '${KERNEL_PACKAGE_NAME}-vmlinux', '', d)}"
|
||||||
PKG_${KERNEL_PACKAGE_NAME}-base = "${KERNEL_PACKAGE_NAME}-${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}"
|
PKG:${KERNEL_PACKAGE_NAME}-base = "${KERNEL_PACKAGE_NAME}-${@legitimize_package_name(d.getVar('KERNEL_VERSION'))}"
|
||||||
RPROVIDES_${KERNEL_PACKAGE_NAME}-base += "${KERNEL_PACKAGE_NAME}-${KERNEL_VERSION}"
|
RPROVIDES:${KERNEL_PACKAGE_NAME}-base += "${KERNEL_PACKAGE_NAME}-${KERNEL_VERSION}"
|
||||||
ALLOW_EMPTY_${KERNEL_PACKAGE_NAME} = "1"
|
ALLOW_EMPTY:${KERNEL_PACKAGE_NAME} = "1"
|
||||||
ALLOW_EMPTY_${KERNEL_PACKAGE_NAME}-base = "1"
|
ALLOW_EMPTY:${KERNEL_PACKAGE_NAME}-base = "1"
|
||||||
ALLOW_EMPTY_${KERNEL_PACKAGE_NAME}-image = "1"
|
ALLOW_EMPTY:${KERNEL_PACKAGE_NAME}-image = "1"
|
||||||
ALLOW_EMPTY_${KERNEL_PACKAGE_NAME}-modules = "1"
|
ALLOW_EMPTY:${KERNEL_PACKAGE_NAME}-modules = "1"
|
||||||
DESCRIPTION_${KERNEL_PACKAGE_NAME}-modules = "Kernel modules meta package"
|
DESCRIPTION:${KERNEL_PACKAGE_NAME}-modules = "Kernel modules meta package"
|
||||||
|
|
||||||
pkg_postinst_${KERNEL_PACKAGE_NAME}-base () {
|
pkg_postinst:${KERNEL_PACKAGE_NAME}-base () {
|
||||||
if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then
|
if [ ! -e "$D/lib/modules/${KERNEL_VERSION}" ]; then
|
||||||
mkdir -p $D/lib/modules/${KERNEL_VERSION}
|
mkdir -p $D/lib/modules/${KERNEL_VERSION}
|
||||||
fi
|
fi
|
||||||
@@ -646,7 +646,7 @@ pkg_postinst_${KERNEL_PACKAGE_NAME}-base () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGESPLITFUNCS_prepend = "split_kernel_packages "
|
PACKAGESPLITFUNCS:prepend = "split_kernel_packages "
|
||||||
|
|
||||||
python split_kernel_packages () {
|
python split_kernel_packages () {
|
||||||
do_split_packages(d, root='${nonarch_base_libdir}/firmware', file_regex=r'^(.*)\.(bin|fw|cis|csp|dsp)$', output_pattern='${KERNEL_PACKAGE_NAME}-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
|
do_split_packages(d, root='${nonarch_base_libdir}/firmware', file_regex=r'^(.*)\.(bin|fw|cis|csp|dsp)$', output_pattern='${KERNEL_PACKAGE_NAME}-firmware-%s', description='Firmware for %s', recursive=True, extra_depends='')
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ python __anonymous () {
|
|||||||
# try to fix disable charsets/locales/locale-code compile fail
|
# try to fix disable charsets/locales/locale-code compile fail
|
||||||
PACKAGE_NO_GCONV ?= "0"
|
PACKAGE_NO_GCONV ?= "0"
|
||||||
|
|
||||||
OVERRIDES_append = ":${TARGET_ARCH}-${TARGET_OS}"
|
OVERRIDES:append = ":${TARGET_ARCH}-${TARGET_OS}"
|
||||||
|
|
||||||
locale_base_postinst_ontarget() {
|
locale_base_postinst_ontarget() {
|
||||||
localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s
|
localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s %s
|
||||||
@@ -129,9 +129,9 @@ python package_do_split_gconvs () {
|
|||||||
deps.append(dp)
|
deps.append(dp)
|
||||||
f.close()
|
f.close()
|
||||||
if deps != []:
|
if deps != []:
|
||||||
d.setVar('RDEPENDS_%s' % pkg, " ".join(deps))
|
d.setVar('RDEPENDS:%s' % pkg, " ".join(deps))
|
||||||
if bpn != 'glibc':
|
if bpn != 'glibc':
|
||||||
d.setVar('RPROVIDES_%s' % pkg, pkg.replace(bpn, 'glibc'))
|
d.setVar('RPROVIDES:%s' % pkg, pkg.replace(bpn, 'glibc'))
|
||||||
|
|
||||||
do_split_packages(d, gconv_libdir, file_regex=r'^(.*)\.so$', output_pattern=bpn+'-gconv-%s', \
|
do_split_packages(d, gconv_libdir, file_regex=r'^(.*)\.so$', output_pattern=bpn+'-gconv-%s', \
|
||||||
description='gconv module for character set %s', hook=calc_gconv_deps, \
|
description='gconv module for character set %s', hook=calc_gconv_deps, \
|
||||||
@@ -151,9 +151,9 @@ python package_do_split_gconvs () {
|
|||||||
deps.append(dp)
|
deps.append(dp)
|
||||||
f.close()
|
f.close()
|
||||||
if deps != []:
|
if deps != []:
|
||||||
d.setVar('RDEPENDS_%s' % pkg, " ".join(deps))
|
d.setVar('RDEPENDS:%s' % pkg, " ".join(deps))
|
||||||
if bpn != 'glibc':
|
if bpn != 'glibc':
|
||||||
d.setVar('RPROVIDES_%s' % pkg, pkg.replace(bpn, 'glibc'))
|
d.setVar('RPROVIDES:%s' % pkg, pkg.replace(bpn, 'glibc'))
|
||||||
|
|
||||||
do_split_packages(d, charmap_dir, file_regex=r'^(.*)\.gz$', output_pattern=bpn+'-charmap-%s', \
|
do_split_packages(d, charmap_dir, file_regex=r'^(.*)\.gz$', output_pattern=bpn+'-charmap-%s', \
|
||||||
description='character map for %s encoding', hook=calc_charmap_deps, extra_depends='')
|
description='character map for %s encoding', hook=calc_charmap_deps, extra_depends='')
|
||||||
@@ -172,9 +172,9 @@ python package_do_split_gconvs () {
|
|||||||
deps.append(dp)
|
deps.append(dp)
|
||||||
f.close()
|
f.close()
|
||||||
if deps != []:
|
if deps != []:
|
||||||
d.setVar('RDEPENDS_%s' % pkg, " ".join(deps))
|
d.setVar('RDEPENDS:%s' % pkg, " ".join(deps))
|
||||||
if bpn != 'glibc':
|
if bpn != 'glibc':
|
||||||
d.setVar('RPROVIDES_%s' % pkg, pkg.replace(bpn, 'glibc'))
|
d.setVar('RPROVIDES:%s' % pkg, pkg.replace(bpn, 'glibc'))
|
||||||
|
|
||||||
do_split_packages(d, locales_dir, file_regex=r'(.*)', output_pattern=bpn+'-localedata-%s', \
|
do_split_packages(d, locales_dir, file_regex=r'(.*)', output_pattern=bpn+'-localedata-%s', \
|
||||||
description='locale definition for %s', hook=calc_locale_deps, extra_depends='')
|
description='locale definition for %s', hook=calc_locale_deps, extra_depends='')
|
||||||
@@ -210,11 +210,11 @@ python package_do_split_gconvs () {
|
|||||||
supported[locale] = charset
|
supported[locale] = charset
|
||||||
|
|
||||||
def output_locale_source(name, pkgname, locale, encoding):
|
def output_locale_source(name, pkgname, locale, encoding):
|
||||||
d.setVar('RDEPENDS_%s' % pkgname, '%slocaledef %s-localedata-%s %s-charmap-%s' % \
|
d.setVar('RDEPENDS:%s' % pkgname, '%slocaledef %s-localedata-%s %s-charmap-%s' % \
|
||||||
(mlprefix, mlprefix+bpn, legitimize_package_name(locale), mlprefix+bpn, legitimize_package_name(encoding)))
|
(mlprefix, mlprefix+bpn, legitimize_package_name(locale), mlprefix+bpn, legitimize_package_name(encoding)))
|
||||||
d.setVar('pkg_postinst_ontarget_%s' % pkgname, d.getVar('locale_base_postinst_ontarget') \
|
d.setVar('pkg_postinst_ontarget:%s' % pkgname, d.getVar('locale_base_postinst_ontarget') \
|
||||||
% (locale, encoding, locale))
|
% (locale, encoding, locale))
|
||||||
d.setVar('pkg_postrm_%s' % pkgname, d.getVar('locale_base_postrm') % \
|
d.setVar('pkg_postrm:%s' % pkgname, d.getVar('locale_base_postrm') % \
|
||||||
(locale, encoding, locale))
|
(locale, encoding, locale))
|
||||||
|
|
||||||
def output_locale_binary_rdepends(name, pkgname, locale, encoding):
|
def output_locale_binary_rdepends(name, pkgname, locale, encoding):
|
||||||
@@ -222,8 +222,8 @@ python package_do_split_gconvs () {
|
|||||||
lcsplit = d.getVar('GLIBC_SPLIT_LC_PACKAGES')
|
lcsplit = d.getVar('GLIBC_SPLIT_LC_PACKAGES')
|
||||||
if lcsplit and int(lcsplit):
|
if lcsplit and int(lcsplit):
|
||||||
d.appendVar('PACKAGES', ' ' + dep)
|
d.appendVar('PACKAGES', ' ' + dep)
|
||||||
d.setVar('ALLOW_EMPTY_%s' % dep, '1')
|
d.setVar('ALLOW_EMPTY:%s' % dep, '1')
|
||||||
d.setVar('RDEPENDS_%s' % pkgname, mlprefix + dep)
|
d.setVar('RDEPENDS:%s' % pkgname, mlprefix + dep)
|
||||||
|
|
||||||
commands = {}
|
commands = {}
|
||||||
|
|
||||||
@@ -293,13 +293,13 @@ python package_do_split_gconvs () {
|
|||||||
|
|
||||||
def output_locale(name, locale, encoding):
|
def output_locale(name, locale, encoding):
|
||||||
pkgname = d.getVar('MLPREFIX', False) + 'locale-base-' + legitimize_package_name(name)
|
pkgname = d.getVar('MLPREFIX', False) + 'locale-base-' + legitimize_package_name(name)
|
||||||
d.setVar('ALLOW_EMPTY_%s' % pkgname, '1')
|
d.setVar('ALLOW_EMPTY:%s' % pkgname, '1')
|
||||||
d.setVar('PACKAGES', '%s %s' % (pkgname, d.getVar('PACKAGES')))
|
d.setVar('PACKAGES', '%s %s' % (pkgname, d.getVar('PACKAGES')))
|
||||||
rprovides = ' %svirtual-locale-%s' % (mlprefix, legitimize_package_name(name))
|
rprovides = ' %svirtual-locale-%s' % (mlprefix, legitimize_package_name(name))
|
||||||
m = re.match(r"(.*)_(.*)", name)
|
m = re.match(r"(.*)_(.*)", name)
|
||||||
if m:
|
if m:
|
||||||
rprovides += ' %svirtual-locale-%s' % (mlprefix, m.group(1))
|
rprovides += ' %svirtual-locale-%s' % (mlprefix, m.group(1))
|
||||||
d.setVar('RPROVIDES_%s' % pkgname, rprovides)
|
d.setVar('RPROVIDES:%s' % pkgname, rprovides)
|
||||||
|
|
||||||
if use_bin == "compile":
|
if use_bin == "compile":
|
||||||
output_locale_binary_rdepends(name, pkgname, locale, encoding)
|
output_locale_binary_rdepends(name, pkgname, locale, encoding)
|
||||||
@@ -343,7 +343,7 @@ python package_do_split_gconvs () {
|
|||||||
def metapkg_hook(file, pkg, pattern, format, basename):
|
def metapkg_hook(file, pkg, pattern, format, basename):
|
||||||
name = basename.split('/', 1)[0]
|
name = basename.split('/', 1)[0]
|
||||||
metapkg = legitimize_package_name('%s-binary-localedata-%s' % (mlprefix+bpn, name))
|
metapkg = legitimize_package_name('%s-binary-localedata-%s' % (mlprefix+bpn, name))
|
||||||
d.appendVar('RDEPENDS_%s' % metapkg, ' ' + pkg)
|
d.appendVar('RDEPENDS:%s' % metapkg, ' ' + pkg)
|
||||||
|
|
||||||
if use_bin == "compile":
|
if use_bin == "compile":
|
||||||
makefile = oe.path.join(d.getVar("WORKDIR"), "locale-tree", "Makefile")
|
makefile = oe.path.join(d.getVar("WORKDIR"), "locale-tree", "Makefile")
|
||||||
@@ -379,6 +379,6 @@ python package_do_split_gconvs () {
|
|||||||
|
|
||||||
# We want to do this indirection so that we can safely 'return'
|
# We want to do this indirection so that we can safely 'return'
|
||||||
# from the called function even though we're prepending
|
# from the called function even though we're prepending
|
||||||
python populate_packages_prepend () {
|
python populate_packages:prepend () {
|
||||||
bb.build.exec_func('package_do_split_gconvs', d)
|
bb.build.exec_func('package_do_split_gconvs', d)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
LICENSE_DIRECTORY ??= "${DEPLOY_DIR}/licenses"
|
LICENSE_DIRECTORY ??= "${DEPLOY_DIR}/licenses"
|
||||||
LICSSTATEDIR = "${WORKDIR}/license-destdir/"
|
LICSSTATEDIR = "${WORKDIR}/license-destdir/"
|
||||||
|
|
||||||
# Create extra package with license texts and add it to RRECOMMENDS_${PN}
|
# Create extra package with license texts and add it to RRECOMMENDS:${PN}
|
||||||
LICENSE_CREATE_PACKAGE[type] = "boolean"
|
LICENSE_CREATE_PACKAGE[type] = "boolean"
|
||||||
LICENSE_CREATE_PACKAGE ??= "0"
|
LICENSE_CREATE_PACKAGE ??= "0"
|
||||||
LICENSE_PACKAGE_SUFFIX ??= "-lic"
|
LICENSE_PACKAGE_SUFFIX ??= "-lic"
|
||||||
@@ -32,8 +32,8 @@ python do_populate_lic() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
PSEUDO_IGNORE_PATHS .= ",${@','.join(((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' + (d.getVar('LICENSE_PATH') or '')).split())}"
|
PSEUDO_IGNORE_PATHS .= ",${@','.join(((d.getVar('COMMON_LICENSE_DIR') or '') + ' ' + (d.getVar('LICENSE_PATH') or '')).split())}"
|
||||||
# it would be better to copy them in do_install_append, but find_license_filesa is python
|
# it would be better to copy them in do_install:append, but find_license_filesa is python
|
||||||
python perform_packagecopy_prepend () {
|
python perform_packagecopy:prepend () {
|
||||||
enabled = oe.data.typed_value('LICENSE_CREATE_PACKAGE', d)
|
enabled = oe.data.typed_value('LICENSE_CREATE_PACKAGE', d)
|
||||||
if d.getVar('CLASSOVERRIDE') == 'class-target' and enabled:
|
if d.getVar('CLASSOVERRIDE') == 'class-target' and enabled:
|
||||||
lic_files_paths = find_license_files(d)
|
lic_files_paths = find_license_files(d)
|
||||||
@@ -62,7 +62,7 @@ def add_package_and_files(d):
|
|||||||
else:
|
else:
|
||||||
# first in PACKAGES to be sure that nothing else gets LICENSE_FILES_DIRECTORY
|
# first in PACKAGES to be sure that nothing else gets LICENSE_FILES_DIRECTORY
|
||||||
d.setVar('PACKAGES', "%s %s" % (pn_lic, packages))
|
d.setVar('PACKAGES', "%s %s" % (pn_lic, packages))
|
||||||
d.setVar('FILES_' + pn_lic, files)
|
d.setVar('FILES:' + pn_lic, files)
|
||||||
|
|
||||||
def copy_license_files(lic_files_paths, destdir):
|
def copy_license_files(lic_files_paths, destdir):
|
||||||
import shutil
|
import shutil
|
||||||
@@ -324,7 +324,7 @@ def incompatible_license(d, dont_want_licenses, package=None):
|
|||||||
as canonical (SPDX) names.
|
as canonical (SPDX) names.
|
||||||
"""
|
"""
|
||||||
import oe.license
|
import oe.license
|
||||||
license = d.getVar("LICENSE_%s" % package) if package else None
|
license = d.getVar("LICENSE:%s" % package) if package else None
|
||||||
if not license:
|
if not license:
|
||||||
license = d.getVar('LICENSE')
|
license = d.getVar('LICENSE')
|
||||||
|
|
||||||
@@ -419,7 +419,7 @@ SSTATETASKS += "do_populate_lic"
|
|||||||
do_populate_lic[sstate-inputdirs] = "${LICSSTATEDIR}"
|
do_populate_lic[sstate-inputdirs] = "${LICSSTATEDIR}"
|
||||||
do_populate_lic[sstate-outputdirs] = "${LICENSE_DIRECTORY}/"
|
do_populate_lic[sstate-outputdirs] = "${LICENSE_DIRECTORY}/"
|
||||||
|
|
||||||
IMAGE_CLASSES_append = " license_image"
|
IMAGE_CLASSES:append = " license_image"
|
||||||
|
|
||||||
python do_populate_lic_setscene () {
|
python do_populate_lic_setscene () {
|
||||||
sstate_setscene(d)
|
sstate_setscene(d)
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ python license_create_manifest() {
|
|||||||
|
|
||||||
pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
|
pkg_dic[pkg_name] = oe.packagedata.read_pkgdatafile(pkg_info)
|
||||||
if not "LICENSE" in pkg_dic[pkg_name].keys():
|
if not "LICENSE" in pkg_dic[pkg_name].keys():
|
||||||
pkg_lic_name = "LICENSE_" + pkg_name
|
pkg_lic_name = "LICENSE:" + pkg_name
|
||||||
pkg_dic[pkg_name]["LICENSE"] = pkg_dic[pkg_name][pkg_lic_name]
|
pkg_dic[pkg_name]["LICENSE"] = pkg_dic[pkg_name][pkg_lic_name]
|
||||||
|
|
||||||
rootfs_license_manifest = os.path.join(d.getVar('LICENSE_DIRECTORY'),
|
rootfs_license_manifest = os.path.join(d.getVar('LICENSE_DIRECTORY'),
|
||||||
@@ -269,7 +269,7 @@ def get_deployed_files(man_file):
|
|||||||
dep_files.append(os.path.basename(f))
|
dep_files.append(os.path.basename(f))
|
||||||
return dep_files
|
return dep_files
|
||||||
|
|
||||||
ROOTFS_POSTPROCESS_COMMAND_prepend = "write_package_manifest; license_create_manifest; "
|
ROOTFS_POSTPROCESS_COMMAND:prepend = "write_package_manifest; license_create_manifest; "
|
||||||
do_rootfs[recrdeptask] += "do_populate_lic"
|
do_rootfs[recrdeptask] += "do_populate_lic"
|
||||||
|
|
||||||
python do_populate_lic_deploy() {
|
python do_populate_lic_deploy() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ python __anonymous () {
|
|||||||
|
|
||||||
# set an empty package of kernel-devicetree
|
# set an empty package of kernel-devicetree
|
||||||
d.appendVar('PACKAGES', ' %s-devicetree' % kname)
|
d.appendVar('PACKAGES', ' %s-devicetree' % kname)
|
||||||
d.setVar('ALLOW_EMPTY_%s-devicetree' % kname, '1')
|
d.setVar('ALLOW_EMPTY:%s-devicetree' % kname, '1')
|
||||||
|
|
||||||
# Merge KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE into KERNEL_IMAGETYPES
|
# Merge KERNEL_IMAGETYPE and KERNEL_ALT_IMAGETYPE into KERNEL_IMAGETYPES
|
||||||
type = d.getVar('KERNEL_IMAGETYPE') or ""
|
type = d.getVar('KERNEL_IMAGETYPE') or ""
|
||||||
@@ -21,6 +21,6 @@ python __anonymous () {
|
|||||||
for type in types.split():
|
for type in types.split():
|
||||||
typelower = type.lower()
|
typelower = type.lower()
|
||||||
d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower))
|
d.appendVar('PACKAGES', ' %s-image-%s' % (kname, typelower))
|
||||||
d.setVar('ALLOW_EMPTY_%s-image-%s' % (kname, typelower), '1')
|
d.setVar('ALLOW_EMPTY:%s-image-%s' % (kname, typelower), '1')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# depending on whether 'api-documentation' is in DISTRO_FEATURES. Such building
|
# depending on whether 'api-documentation' is in DISTRO_FEATURES. Such building
|
||||||
# tends to pull in the entire XML stack and other tools, so it's not enabled
|
# tends to pull in the entire XML stack and other tools, so it's not enabled
|
||||||
# by default.
|
# by default.
|
||||||
PACKAGECONFIG_append_class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}"
|
PACKAGECONFIG:append:class-target = " ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'manpages', '', d)}"
|
||||||
|
|
||||||
inherit qemu
|
inherit qemu
|
||||||
|
|
||||||
@@ -10,9 +10,9 @@ inherit qemu
|
|||||||
MAN_PKG ?= "${PN}-doc"
|
MAN_PKG ?= "${PN}-doc"
|
||||||
|
|
||||||
# only add man-db to RDEPENDS when manual files are built and installed
|
# only add man-db to RDEPENDS when manual files are built and installed
|
||||||
RDEPENDS_${MAN_PKG} += "${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'man-db', '', d)}"
|
RDEPENDS:${MAN_PKG} += "${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'man-db', '', d)}"
|
||||||
|
|
||||||
pkg_postinst_append_${MAN_PKG} () {
|
pkg_postinst:append_${MAN_PKG} () {
|
||||||
# only update manual page index caches when manual files are built and installed
|
# only update manual page index caches when manual files are built and installed
|
||||||
if ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'true', 'false', d)}; then
|
if ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'true', 'false', d)}; then
|
||||||
if test -n "$D"; then
|
if test -n "$D"; then
|
||||||
@@ -36,7 +36,7 @@ pkg_postinst_append_${MAN_PKG} () {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_postrm_append_${MAN_PKG} () {
|
pkg_postrm:append_${MAN_PKG} () {
|
||||||
# only update manual page index caches when manual files are built and installed
|
# only update manual page index caches when manual files are built and installed
|
||||||
if ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'true', 'false', d)}; then
|
if ${@bb.utils.contains('PACKAGECONFIG', 'manpages', 'true', 'false', d)}; then
|
||||||
mandb -q
|
mandb -q
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
inherit python3native meson-routines
|
inherit python3native meson-routines
|
||||||
|
|
||||||
DEPENDS_append = " meson-native ninja-native"
|
DEPENDS:append = " meson-native ninja-native"
|
||||||
|
|
||||||
# As Meson enforces out-of-tree builds we can just use cleandirs
|
# As Meson enforces out-of-tree builds we can just use cleandirs
|
||||||
B = "${WORKDIR}/build"
|
B = "${WORKDIR}/build"
|
||||||
@@ -29,11 +29,11 @@ MESONOPTS = " --prefix ${prefix} \
|
|||||||
--wrap-mode nodownload \
|
--wrap-mode nodownload \
|
||||||
--native-file ${WORKDIR}/meson.native"
|
--native-file ${WORKDIR}/meson.native"
|
||||||
|
|
||||||
EXTRA_OEMESON_append = " ${PACKAGECONFIG_CONFARGS}"
|
EXTRA_OEMESON:append = " ${PACKAGECONFIG_CONFARGS}"
|
||||||
|
|
||||||
MESON_CROSS_FILE = ""
|
MESON_CROSS_FILE = ""
|
||||||
MESON_CROSS_FILE_class-target = "--cross-file ${WORKDIR}/meson.cross"
|
MESON_CROSS_FILE:class-target = "--cross-file ${WORKDIR}/meson.cross"
|
||||||
MESON_CROSS_FILE_class-nativesdk = "--cross-file ${WORKDIR}/meson.cross"
|
MESON_CROSS_FILE:class-nativesdk = "--cross-file ${WORKDIR}/meson.cross"
|
||||||
|
|
||||||
addtask write_config before do_configure
|
addtask write_config before do_configure
|
||||||
do_write_config[vardeps] += "CC CXX LD AR NM STRIP READELF CFLAGS CXXFLAGS LDFLAGS"
|
do_write_config[vardeps] += "CC CXX LD AR NM STRIP READELF CFLAGS CXXFLAGS LDFLAGS"
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ else
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_append () {
|
python populate_packages:append () {
|
||||||
packages = d.getVar('PACKAGES').split()
|
packages = d.getVar('PACKAGES').split()
|
||||||
pkgdest = d.getVar('PKGDEST')
|
pkgdest = d.getVar('PKGDEST')
|
||||||
desktop_base = d.getVar('DESKTOPDIR')
|
desktop_base = d.getVar('DESKTOPDIR')
|
||||||
@@ -59,16 +59,16 @@ python populate_packages_append () {
|
|||||||
break
|
break
|
||||||
if desktops_with_mime_found:
|
if desktops_with_mime_found:
|
||||||
bb.note("adding mime-xdg postinst and postrm scripts to %s" % pkg)
|
bb.note("adding mime-xdg postinst and postrm scripts to %s" % pkg)
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('mime_xdg_postinst')
|
postinst += d.getVar('mime_xdg_postinst')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
postrm = d.getVar('pkg_postrm_%s' % pkg)
|
postrm = d.getVar('pkg_postrm:%s' % pkg)
|
||||||
if not postrm:
|
if not postrm:
|
||||||
postrm = '#!/bin/sh\n'
|
postrm = '#!/bin/sh\n'
|
||||||
postrm += d.getVar('mime_xdg_postrm')
|
postrm += d.getVar('mime_xdg_postrm')
|
||||||
d.setVar('pkg_postrm_%s' % pkg, postrm)
|
d.setVar('pkg_postrm:%s' % pkg, postrm)
|
||||||
bb.note("adding desktop-file-utils dependency to %s" % pkg)
|
bb.note("adding desktop-file-utils dependency to %s" % pkg)
|
||||||
d.appendVar('RDEPENDS_' + pkg, " " + d.getVar('MLPREFIX')+"desktop-file-utils")
|
d.appendVar('RDEPENDS:' + pkg, " " + d.getVar('MLPREFIX')+"desktop-file-utils")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ fi
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_append () {
|
python populate_packages:append () {
|
||||||
packages = d.getVar('PACKAGES').split()
|
packages = d.getVar('PACKAGES').split()
|
||||||
pkgdest = d.getVar('PKGDEST')
|
pkgdest = d.getVar('PKGDEST')
|
||||||
mimedir = d.getVar('MIMEDIR')
|
mimedir = d.getVar('MIMEDIR')
|
||||||
@@ -54,17 +54,17 @@ python populate_packages_append () {
|
|||||||
break
|
break
|
||||||
if mimes_types_found:
|
if mimes_types_found:
|
||||||
bb.note("adding mime postinst and postrm scripts to %s" % pkg)
|
bb.note("adding mime postinst and postrm scripts to %s" % pkg)
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('mime_postinst')
|
postinst += d.getVar('mime_postinst')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
postrm = d.getVar('pkg_postrm_%s' % pkg)
|
postrm = d.getVar('pkg_postrm:%s' % pkg)
|
||||||
if not postrm:
|
if not postrm:
|
||||||
postrm = '#!/bin/sh\n'
|
postrm = '#!/bin/sh\n'
|
||||||
postrm += d.getVar('mime_postrm')
|
postrm += d.getVar('mime_postrm')
|
||||||
d.setVar('pkg_postrm_%s' % pkg, postrm)
|
d.setVar('pkg_postrm:%s' % pkg, postrm)
|
||||||
if pkg != 'shared-mime-info-data':
|
if pkg != 'shared-mime-info-data':
|
||||||
bb.note("adding shared-mime-info-data dependency to %s" % pkg)
|
bb.note("adding shared-mime-info-data dependency to %s" % pkg)
|
||||||
d.appendVar('RDEPENDS_' + pkg, " " + d.getVar('MLPREFIX')+"shared-mime-info-data")
|
d.appendVar('RDEPENDS:' + pkg, " " + d.getVar('MLPREFIX')+"shared-mime-info-data")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ python __anonymous () {
|
|||||||
d.setVar('KBUILD_EXTRA_SYMBOLS', " ".join(extra_symbols))
|
d.setVar('KBUILD_EXTRA_SYMBOLS', " ".join(extra_symbols))
|
||||||
}
|
}
|
||||||
|
|
||||||
python do_devshell_prepend () {
|
python do_devshell:prepend () {
|
||||||
os.environ['CFLAGS'] = ''
|
os.environ['CFLAGS'] = ''
|
||||||
os.environ['CPPFLAGS'] = ''
|
os.environ['CPPFLAGS'] = ''
|
||||||
os.environ['CXXFLAGS'] = ''
|
os.environ['CXXFLAGS'] = ''
|
||||||
@@ -70,5 +70,5 @@ EXPORT_FUNCTIONS do_compile do_install
|
|||||||
|
|
||||||
# add all splitted modules to PN RDEPENDS, PN can be empty now
|
# add all splitted modules to PN RDEPENDS, PN can be empty now
|
||||||
KERNEL_MODULES_META_PACKAGE = "${PN}"
|
KERNEL_MODULES_META_PACKAGE = "${PN}"
|
||||||
FILES_${PN} = ""
|
FILES:${PN} = ""
|
||||||
ALLOW_EMPTY_${PN} = "1"
|
ALLOW_EMPTY:${PN} = "1"
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ def reset_alternative_priority(d):
|
|||||||
bb.debug(1, '%s: Setting ALTERNATIVE_PRIORITY_%s to %s' % (pkg, pkg, reset_priority))
|
bb.debug(1, '%s: Setting ALTERNATIVE_PRIORITY_%s to %s' % (pkg, pkg, reset_priority))
|
||||||
d.setVar('ALTERNATIVE_PRIORITY_%s' % pkg, reset_priority)
|
d.setVar('ALTERNATIVE_PRIORITY_%s' % pkg, reset_priority)
|
||||||
|
|
||||||
for alt_name in (d.getVar('ALTERNATIVE_%s' % pkg) or "").split():
|
for alt_name in (d.getVar('ALTERNATIVE:%s' % pkg) or "").split():
|
||||||
# ALTERNATIVE_PRIORITY_pkg[tool] = priority
|
# ALTERNATIVE_PRIORITY_pkg[tool] = priority
|
||||||
alt_priority_pkg_name = d.getVarFlag('ALTERNATIVE_PRIORITY_%s' % pkg, alt_name)
|
alt_priority_pkg_name = d.getVarFlag('ALTERNATIVE_PRIORITY_%s' % pkg, alt_name)
|
||||||
# ALTERNATIVE_PRIORITY[tool] = priority
|
# ALTERNATIVE_PRIORITY[tool] = priority
|
||||||
@@ -191,7 +191,7 @@ def reset_alternative_priority(d):
|
|||||||
bb.debug(1, '%s: Setting ALTERNATIVE_PRIORITY[%s] to %s' % (pkg, alt_name, reset_priority))
|
bb.debug(1, '%s: Setting ALTERNATIVE_PRIORITY[%s] to %s' % (pkg, alt_name, reset_priority))
|
||||||
d.setVarFlag('ALTERNATIVE_PRIORITY', alt_name, reset_priority)
|
d.setVarFlag('ALTERNATIVE_PRIORITY', alt_name, reset_priority)
|
||||||
|
|
||||||
PACKAGEFUNCS_append = " do_package_qa_multilib"
|
PACKAGEFUNCS:append = " do_package_qa_multilib"
|
||||||
|
|
||||||
python do_package_qa_multilib() {
|
python do_package_qa_multilib() {
|
||||||
|
|
||||||
|
|||||||
@@ -164,8 +164,8 @@ def preferred_ml_updates(d):
|
|||||||
python multilib_virtclass_handler_vendor () {
|
python multilib_virtclass_handler_vendor () {
|
||||||
if isinstance(e, bb.event.ConfigParsed):
|
if isinstance(e, bb.event.ConfigParsed):
|
||||||
for v in e.data.getVar("MULTILIB_VARIANTS").split():
|
for v in e.data.getVar("MULTILIB_VARIANTS").split():
|
||||||
if e.data.getVar("TARGET_VENDOR_virtclass-multilib-" + v, False) is None:
|
if e.data.getVar("TARGET_VENDOR:virtclass-multilib-" + v, False) is None:
|
||||||
e.data.setVar("TARGET_VENDOR_virtclass-multilib-" + v, e.data.getVar("TARGET_VENDOR", False) + "ml" + v)
|
e.data.setVar("TARGET_VENDOR:virtclass-multilib-" + v, e.data.getVar("TARGET_VENDOR", False) + "ml" + v)
|
||||||
preferred_ml_updates(e.data)
|
preferred_ml_updates(e.data)
|
||||||
}
|
}
|
||||||
addhandler multilib_virtclass_handler_vendor
|
addhandler multilib_virtclass_handler_vendor
|
||||||
@@ -207,13 +207,13 @@ python multilib_virtclass_handler_global () {
|
|||||||
if rprovs.strip():
|
if rprovs.strip():
|
||||||
e.data.setVar("RPROVIDES", rprovs)
|
e.data.setVar("RPROVIDES", rprovs)
|
||||||
|
|
||||||
# Process RPROVIDES_${PN}...
|
# Process RPROVIDES:${PN}...
|
||||||
for pkg in (e.data.getVar("PACKAGES") or "").split():
|
for pkg in (e.data.getVar("PACKAGES") or "").split():
|
||||||
origrprovs = rprovs = localdata.getVar("RPROVIDES_%s" % pkg) or ""
|
origrprovs = rprovs = localdata.getVar("RPROVIDES:%s" % pkg) or ""
|
||||||
for clsextend in clsextends:
|
for clsextend in clsextends:
|
||||||
rprovs = rprovs + " " + clsextend.map_variable("RPROVIDES_%s" % pkg, setvar=False)
|
rprovs = rprovs + " " + clsextend.map_variable("RPROVIDES:%s" % pkg, setvar=False)
|
||||||
rprovs = rprovs + " " + clsextend.extname + "-" + pkg
|
rprovs = rprovs + " " + clsextend.extname + "-" + pkg
|
||||||
e.data.setVar("RPROVIDES_%s" % pkg, rprovs)
|
e.data.setVar("RPROVIDES:%s" % pkg, rprovs)
|
||||||
}
|
}
|
||||||
|
|
||||||
addhandler multilib_virtclass_handler_global
|
addhandler multilib_virtclass_handler_global
|
||||||
|
|||||||
@@ -42,11 +42,11 @@ oe_multilib_header() {
|
|||||||
|
|
||||||
# Dependencies on arch variables like MIPSPKGSFX_ABI can be problematic.
|
# Dependencies on arch variables like MIPSPKGSFX_ABI can be problematic.
|
||||||
# We don't need multilib headers for native builds so brute force things.
|
# We don't need multilib headers for native builds so brute force things.
|
||||||
oe_multilib_header_class-native () {
|
oe_multilib_header:class-native () {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
# Nor do we need multilib headers for nativesdk builds.
|
# Nor do we need multilib headers for nativesdk builds.
|
||||||
oe_multilib_header_class-nativesdk () {
|
oe_multilib_header:class-nativesdk () {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,9 +26,9 @@ python () {
|
|||||||
pkg, script = entry.split(":")
|
pkg, script = entry.split(":")
|
||||||
epkg = d.expand(pkg)
|
epkg = d.expand(pkg)
|
||||||
scriptname = os.path.basename(script)
|
scriptname = os.path.basename(script)
|
||||||
d.appendVar("ALTERNATIVE_" + epkg, " " + scriptname + " ")
|
d.appendVar("ALTERNATIVE:" + epkg, " " + scriptname + " ")
|
||||||
d.setVarFlag("ALTERNATIVE_LINK_NAME", scriptname, script)
|
d.setVarFlag("ALTERNATIVE_LINK_NAME", scriptname, script)
|
||||||
d.setVarFlag("ALTERNATIVE_TARGET", scriptname, script + "-${MULTILIB_SUFFIX}")
|
d.setVarFlag("ALTERNATIVE_TARGET", scriptname, script + "-${MULTILIB_SUFFIX}")
|
||||||
d.appendVar("multilibscript_rename", "\n mv ${PKGD}" + script + " ${PKGD}" + script + "-${MULTILIB_SUFFIX}")
|
d.appendVar("multilibscript_rename", "\n mv ${PKGD}" + script + " ${PKGD}" + script + "-${MULTILIB_SUFFIX}")
|
||||||
d.appendVar("FILES_" + epkg, " " + script + "-${MULTILIB_SUFFIX}")
|
d.appendVar("FILES:" + epkg, " " + script + "-${MULTILIB_SUFFIX}")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ PACKAGE_ARCH = "${BUILD_ARCH}"
|
|||||||
|
|
||||||
# used by cmake class
|
# used by cmake class
|
||||||
OECMAKE_RPATH = "${libdir}"
|
OECMAKE_RPATH = "${libdir}"
|
||||||
OECMAKE_RPATH_class-native = "${libdir}"
|
OECMAKE_RPATH:class-native = "${libdir}"
|
||||||
|
|
||||||
TARGET_ARCH = "${BUILD_ARCH}"
|
TARGET_ARCH = "${BUILD_ARCH}"
|
||||||
TARGET_OS = "${BUILD_OS}"
|
TARGET_OS = "${BUILD_OS}"
|
||||||
@@ -106,7 +106,7 @@ CLASSOVERRIDE = "class-native"
|
|||||||
MACHINEOVERRIDES = ""
|
MACHINEOVERRIDES = ""
|
||||||
MACHINE_FEATURES = ""
|
MACHINE_FEATURES = ""
|
||||||
|
|
||||||
PATH_prepend = "${COREBASE}/scripts/native-intercept:"
|
PATH:prepend = "${COREBASE}/scripts/native-intercept:"
|
||||||
|
|
||||||
# This class encodes staging paths into its scripts data so can only be
|
# This class encodes staging paths into its scripts data so can only be
|
||||||
# reused if we manipulate the paths.
|
# reused if we manipulate the paths.
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ PACKAGE_ARCHS = "${SDK_PACKAGE_ARCHS}"
|
|||||||
# We need chrpath >= 0.14 to ensure we can deal with 32 and 64 bit
|
# We need chrpath >= 0.14 to ensure we can deal with 32 and 64 bit
|
||||||
# binaries
|
# binaries
|
||||||
#
|
#
|
||||||
DEPENDS_append = " chrpath-replacement-native"
|
DEPENDS:append = " chrpath-replacement-native"
|
||||||
EXTRANATIVEPATH += "chrpath-native"
|
EXTRANATIVEPATH += "chrpath-native"
|
||||||
|
|
||||||
PKGDATA_DIR = "${TMPDIR}/pkgdata/${SDK_SYS}"
|
PKGDATA_DIR = "${TMPDIR}/pkgdata/${SDK_SYS}"
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
|
|
||||||
inherit python3native
|
inherit python3native
|
||||||
|
|
||||||
DEPENDS_prepend = "nodejs-native "
|
DEPENDS:prepend = "nodejs-native "
|
||||||
RDEPENDS_${PN}_append_class-target = " nodejs"
|
RDEPENDS:${PN}:append:class-target = " nodejs"
|
||||||
|
|
||||||
NPM_INSTALL_DEV ?= "0"
|
NPM_INSTALL_DEV ?= "0"
|
||||||
|
|
||||||
@@ -312,7 +312,7 @@ npm_do_install() {
|
|||||||
ln -fs node_modules ${D}/${nonarch_libdir}/node
|
ln -fs node_modules ${D}/${nonarch_libdir}/node
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES_${PN} += " \
|
FILES:${PN} += " \
|
||||||
${bindir} \
|
${bindir} \
|
||||||
${nonarch_libdir} \
|
${nonarch_libdir} \
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
PREMIRRORS_prepend = " \
|
PREMIRRORS:prepend = " \
|
||||||
cvs://.*/.* ${SOURCE_MIRROR_URL} \n \
|
cvs://.*/.* ${SOURCE_MIRROR_URL} \n \
|
||||||
svn://.*/.* ${SOURCE_MIRROR_URL} \n \
|
svn://.*/.* ${SOURCE_MIRROR_URL} \n \
|
||||||
git://.*/.* ${SOURCE_MIRROR_URL} \n \
|
git://.*/.* ${SOURCE_MIRROR_URL} \n \
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
|
|||||||
packages = [pkg] + packages
|
packages = [pkg] + packages
|
||||||
else:
|
else:
|
||||||
packages.append(pkg)
|
packages.append(pkg)
|
||||||
oldfiles = d.getVar('FILES_' + pkg)
|
oldfiles = d.getVar('FILES:' + pkg)
|
||||||
newfile = os.path.join(root, o)
|
newfile = os.path.join(root, o)
|
||||||
# These names will be passed through glob() so if the filename actually
|
# These names will be passed through glob() so if the filename actually
|
||||||
# contains * or ? (rare, but possible) we need to handle that specially
|
# contains * or ? (rare, but possible) we need to handle that specially
|
||||||
@@ -219,19 +219,19 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
|
|||||||
the_files.append(fp % m.group(1))
|
the_files.append(fp % m.group(1))
|
||||||
else:
|
else:
|
||||||
the_files.append(aux_files_pattern_verbatim % m.group(1))
|
the_files.append(aux_files_pattern_verbatim % m.group(1))
|
||||||
d.setVar('FILES_' + pkg, " ".join(the_files))
|
d.setVar('FILES:' + pkg, " ".join(the_files))
|
||||||
else:
|
else:
|
||||||
d.setVar('FILES_' + pkg, oldfiles + " " + newfile)
|
d.setVar('FILES:' + pkg, oldfiles + " " + newfile)
|
||||||
if extra_depends != '':
|
if extra_depends != '':
|
||||||
d.appendVar('RDEPENDS_' + pkg, ' ' + extra_depends)
|
d.appendVar('RDEPENDS:' + pkg, ' ' + extra_depends)
|
||||||
if not d.getVar('DESCRIPTION_' + pkg):
|
if not d.getVar('DESCRIPTION:' + pkg):
|
||||||
d.setVar('DESCRIPTION_' + pkg, description % on)
|
d.setVar('DESCRIPTION:' + pkg, description % on)
|
||||||
if not d.getVar('SUMMARY_' + pkg):
|
if not d.getVar('SUMMARY:' + pkg):
|
||||||
d.setVar('SUMMARY_' + pkg, summary % on)
|
d.setVar('SUMMARY:' + pkg, summary % on)
|
||||||
if postinst:
|
if postinst:
|
||||||
d.setVar('pkg_postinst_' + pkg, postinst)
|
d.setVar('pkg_postinst:' + pkg, postinst)
|
||||||
if postrm:
|
if postrm:
|
||||||
d.setVar('pkg_postrm_' + pkg, postrm)
|
d.setVar('pkg_postrm:' + pkg, postrm)
|
||||||
if callable(hook):
|
if callable(hook):
|
||||||
hook(f, pkg, file_regex, output_pattern, m.group(1))
|
hook(f, pkg, file_regex, output_pattern, m.group(1))
|
||||||
|
|
||||||
@@ -303,7 +303,7 @@ def get_conffiles(pkg, d):
|
|||||||
cwd = os.getcwd()
|
cwd = os.getcwd()
|
||||||
os.chdir(root)
|
os.chdir(root)
|
||||||
|
|
||||||
conffiles = d.getVar('CONFFILES_%s' % pkg);
|
conffiles = d.getVar('CONFFILES:%s' % pkg);
|
||||||
if conffiles == None:
|
if conffiles == None:
|
||||||
conffiles = d.getVar('CONFFILES')
|
conffiles = d.getVar('CONFFILES')
|
||||||
if conffiles == None:
|
if conffiles == None:
|
||||||
@@ -618,7 +618,7 @@ def get_package_mapping (pkg, basepkg, d, depversions=None):
|
|||||||
import oe.packagedata
|
import oe.packagedata
|
||||||
|
|
||||||
data = oe.packagedata.read_subpkgdata(pkg, d)
|
data = oe.packagedata.read_subpkgdata(pkg, d)
|
||||||
key = "PKG_%s" % pkg
|
key = "PKG:%s" % pkg
|
||||||
|
|
||||||
if key in data:
|
if key in data:
|
||||||
# Have to avoid undoing the write_extra_pkgs(global_variants...)
|
# Have to avoid undoing the write_extra_pkgs(global_variants...)
|
||||||
@@ -627,7 +627,7 @@ def get_package_mapping (pkg, basepkg, d, depversions=None):
|
|||||||
return pkg
|
return pkg
|
||||||
if depversions == []:
|
if depversions == []:
|
||||||
# Avoid returning a mapping if the renamed package rprovides its original name
|
# Avoid returning a mapping if the renamed package rprovides its original name
|
||||||
rprovkey = "RPROVIDES_%s" % pkg
|
rprovkey = "RPROVIDES:%s" % pkg
|
||||||
if rprovkey in data:
|
if rprovkey in data:
|
||||||
if pkg in bb.utils.explode_dep_versions2(data[rprovkey]):
|
if pkg in bb.utils.explode_dep_versions2(data[rprovkey]):
|
||||||
bb.note("%s rprovides %s, not replacing the latter" % (data[key], pkg))
|
bb.note("%s rprovides %s, not replacing the latter" % (data[key], pkg))
|
||||||
@@ -784,13 +784,13 @@ python package_do_split_locales() {
|
|||||||
ln = legitimize_package_name(l)
|
ln = legitimize_package_name(l)
|
||||||
pkg = pn + '-locale-' + ln
|
pkg = pn + '-locale-' + ln
|
||||||
packages.append(pkg)
|
packages.append(pkg)
|
||||||
d.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l))
|
d.setVar('FILES:' + pkg, os.path.join(datadir, 'locale', l))
|
||||||
d.setVar('RRECOMMENDS_' + pkg, '%svirtual-locale-%s' % (mlprefix, ln))
|
d.setVar('RRECOMMENDS:' + pkg, '%svirtual-locale-%s' % (mlprefix, ln))
|
||||||
d.setVar('RPROVIDES_' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln))
|
d.setVar('RPROVIDES:' + pkg, '%s-locale %s%s-translation' % (pn, mlprefix, ln))
|
||||||
d.setVar('SUMMARY_' + pkg, '%s - %s translations' % (summary, l))
|
d.setVar('SUMMARY:' + pkg, '%s - %s translations' % (summary, l))
|
||||||
d.setVar('DESCRIPTION_' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l))
|
d.setVar('DESCRIPTION:' + pkg, '%s This package contains language translation files for the %s locale.' % (description, l))
|
||||||
if locale_section:
|
if locale_section:
|
||||||
d.setVar('SECTION_' + pkg, locale_section)
|
d.setVar('SECTION:' + pkg, locale_section)
|
||||||
|
|
||||||
d.setVar('PACKAGES', ' '.join(packages))
|
d.setVar('PACKAGES', ' '.join(packages))
|
||||||
|
|
||||||
@@ -800,9 +800,9 @@ python package_do_split_locales() {
|
|||||||
# glibc-localedata-translit* won't install as a dependency
|
# glibc-localedata-translit* won't install as a dependency
|
||||||
# for some other package which breaks meta-toolchain
|
# for some other package which breaks meta-toolchain
|
||||||
# Probably breaks since virtual-locale- isn't provided anywhere
|
# Probably breaks since virtual-locale- isn't provided anywhere
|
||||||
#rdep = (d.getVar('RDEPENDS_%s' % pn) or "").split()
|
#rdep = (d.getVar('RDEPENDS:%s' % pn) or "").split()
|
||||||
#rdep.append('%s-locale*' % pn)
|
#rdep.append('%s-locale*' % pn)
|
||||||
#d.setVar('RDEPENDS_%s' % pn, ' '.join(rdep))
|
#d.setVar('RDEPENDS:%s' % pn, ' '.join(rdep))
|
||||||
}
|
}
|
||||||
|
|
||||||
python perform_packagecopy () {
|
python perform_packagecopy () {
|
||||||
@@ -1199,7 +1199,7 @@ python split_and_strip_files () {
|
|||||||
# ...but is it ELF, and is it already stripped?
|
# ...but is it ELF, and is it already stripped?
|
||||||
if elf_file & 1:
|
if elf_file & 1:
|
||||||
if elf_file & 2:
|
if elf_file & 2:
|
||||||
if 'already-stripped' in (d.getVar('INSANE_SKIP_' + pn) or "").split():
|
if 'already-stripped' in (d.getVar('INSANE_SKIP:' + pn) or "").split():
|
||||||
bb.note("Skipping file %s from %s for already-stripped QA test" % (file[len(dvar):], pn))
|
bb.note("Skipping file %s from %s for already-stripped QA test" % (file[len(dvar):], pn))
|
||||||
else:
|
else:
|
||||||
msg = "File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn)
|
msg = "File '%s' from %s was already stripped, this will prevent future debugging!" % (file[len(dvar):], pn)
|
||||||
@@ -1344,7 +1344,7 @@ python populate_packages () {
|
|||||||
src_package_name = ('%s-src' % d.getVar('PN'))
|
src_package_name = ('%s-src' % d.getVar('PN'))
|
||||||
if not src_package_name in packages:
|
if not src_package_name in packages:
|
||||||
packages.append(src_package_name)
|
packages.append(src_package_name)
|
||||||
d.setVar('FILES_%s' % src_package_name, '/usr/src/debug')
|
d.setVar('FILES:%s' % src_package_name, '/usr/src/debug')
|
||||||
|
|
||||||
# Sanity check PACKAGES for duplicates
|
# Sanity check PACKAGES for duplicates
|
||||||
# Sanity should be moved to sanity.bbclass once we have the infrastructure
|
# Sanity should be moved to sanity.bbclass once we have the infrastructure
|
||||||
@@ -1387,7 +1387,7 @@ python populate_packages () {
|
|||||||
root = os.path.join(pkgdest, pkg)
|
root = os.path.join(pkgdest, pkg)
|
||||||
bb.utils.mkdirhier(root)
|
bb.utils.mkdirhier(root)
|
||||||
|
|
||||||
filesvar = d.getVar('FILES_%s' % pkg) or ""
|
filesvar = d.getVar('FILES:%s' % pkg) or ""
|
||||||
if "//" in filesvar:
|
if "//" in filesvar:
|
||||||
msg = "FILES variable for package %s contains '//' which is invalid. Attempting to fix this but you should correct the metadata.\n" % pkg
|
msg = "FILES variable for package %s contains '//' which is invalid. Attempting to fix this but you should correct the metadata.\n" % pkg
|
||||||
package_qa_handle_error("files-invalid", msg, d)
|
package_qa_handle_error("files-invalid", msg, d)
|
||||||
@@ -1476,7 +1476,7 @@ python populate_packages () {
|
|||||||
|
|
||||||
if unshipped != []:
|
if unshipped != []:
|
||||||
msg = pn + ": Files/directories were installed but not shipped in any package:"
|
msg = pn + ": Files/directories were installed but not shipped in any package:"
|
||||||
if "installed-vs-shipped" in (d.getVar('INSANE_SKIP_' + pn) or "").split():
|
if "installed-vs-shipped" in (d.getVar('INSANE_SKIP:' + pn) or "").split():
|
||||||
bb.note("Package %s skipping QA tests: installed-vs-shipped" % pn)
|
bb.note("Package %s skipping QA tests: installed-vs-shipped" % pn)
|
||||||
else:
|
else:
|
||||||
for f in unshipped:
|
for f in unshipped:
|
||||||
@@ -1524,11 +1524,11 @@ python package_fixsymlinks () {
|
|||||||
bb.note("%s contains dangling symlink to %s" % (pkg, l))
|
bb.note("%s contains dangling symlink to %s" % (pkg, l))
|
||||||
|
|
||||||
for pkg in newrdepends:
|
for pkg in newrdepends:
|
||||||
rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS_' + pkg) or "")
|
rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS:' + pkg) or "")
|
||||||
for p in newrdepends[pkg]:
|
for p in newrdepends[pkg]:
|
||||||
if p not in rdepends:
|
if p not in rdepends:
|
||||||
rdepends[p] = []
|
rdepends[p] = []
|
||||||
d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
|
d.setVar('RDEPENDS:' + pkg, bb.utils.join_deps(rdepends, commasep=False))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1552,7 +1552,7 @@ python emit_pkgdata() {
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
def process_postinst_on_target(pkg, mlprefix):
|
def process_postinst_on_target(pkg, mlprefix):
|
||||||
pkgval = d.getVar('PKG_%s' % pkg)
|
pkgval = d.getVar('PKG:%s' % pkg)
|
||||||
if pkgval is None:
|
if pkgval is None:
|
||||||
pkgval = pkg
|
pkgval = pkg
|
||||||
|
|
||||||
@@ -1563,8 +1563,8 @@ if [ -n "$D" ]; then
|
|||||||
fi
|
fi
|
||||||
""" % (pkgval, mlprefix)
|
""" % (pkgval, mlprefix)
|
||||||
|
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
postinst_ontarget = d.getVar('pkg_postinst_ontarget_%s' % pkg)
|
postinst_ontarget = d.getVar('pkg_postinst_ontarget:%s' % pkg)
|
||||||
|
|
||||||
if postinst_ontarget:
|
if postinst_ontarget:
|
||||||
bb.debug(1, 'adding deferred pkg_postinst_ontarget() to pkg_postinst() for %s' % pkg)
|
bb.debug(1, 'adding deferred pkg_postinst_ontarget() to pkg_postinst() for %s' % pkg)
|
||||||
@@ -1572,11 +1572,11 @@ fi
|
|||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += defer_fragment
|
postinst += defer_fragment
|
||||||
postinst += postinst_ontarget
|
postinst += postinst_ontarget
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
|
|
||||||
def add_set_e_to_scriptlets(pkg):
|
def add_set_e_to_scriptlets(pkg):
|
||||||
for scriptlet_name in ('pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm'):
|
for scriptlet_name in ('pkg_preinst', 'pkg_postinst', 'pkg_prerm', 'pkg_postrm'):
|
||||||
scriptlet = d.getVar('%s_%s' % (scriptlet_name, pkg))
|
scriptlet = d.getVar('%s:%s' % (scriptlet_name, pkg))
|
||||||
if scriptlet:
|
if scriptlet:
|
||||||
scriptlet_split = scriptlet.split('\n')
|
scriptlet_split = scriptlet.split('\n')
|
||||||
if scriptlet_split[0].startswith("#!"):
|
if scriptlet_split[0].startswith("#!"):
|
||||||
@@ -1591,9 +1591,9 @@ fi
|
|||||||
c = codecs.getencoder("unicode_escape")
|
c = codecs.getencoder("unicode_escape")
|
||||||
return c(str)[0].decode("latin1")
|
return c(str)[0].decode("latin1")
|
||||||
|
|
||||||
val = d.getVar('%s_%s' % (var, pkg))
|
val = d.getVar('%s:%s' % (var, pkg))
|
||||||
if val:
|
if val:
|
||||||
f.write('%s_%s: %s\n' % (var, pkg, encode(val)))
|
f.write('%s:%s: %s\n' % (var, pkg, encode(val)))
|
||||||
return val
|
return val
|
||||||
val = d.getVar('%s' % (var))
|
val = d.getVar('%s' % (var))
|
||||||
if val:
|
if val:
|
||||||
@@ -1612,7 +1612,7 @@ fi
|
|||||||
ml_pkg = "%s-%s" % (variant, pkg)
|
ml_pkg = "%s-%s" % (variant, pkg)
|
||||||
subdata_file = "%s/runtime/%s" % (pkgdatadir, ml_pkg)
|
subdata_file = "%s/runtime/%s" % (pkgdatadir, ml_pkg)
|
||||||
with open(subdata_file, 'w') as fd:
|
with open(subdata_file, 'w') as fd:
|
||||||
fd.write("PKG_%s: %s" % (ml_pkg, pkg))
|
fd.write("PKG:%s: %s" % (ml_pkg, pkg))
|
||||||
|
|
||||||
packages = d.getVar('PACKAGES')
|
packages = d.getVar('PACKAGES')
|
||||||
pkgdest = d.getVar('PKGDEST')
|
pkgdest = d.getVar('PKGDEST')
|
||||||
@@ -1636,10 +1636,10 @@ fi
|
|||||||
workdir = d.getVar('WORKDIR')
|
workdir = d.getVar('WORKDIR')
|
||||||
|
|
||||||
for pkg in packages.split():
|
for pkg in packages.split():
|
||||||
pkgval = d.getVar('PKG_%s' % pkg)
|
pkgval = d.getVar('PKG:%s' % pkg)
|
||||||
if pkgval is None:
|
if pkgval is None:
|
||||||
pkgval = pkg
|
pkgval = pkg
|
||||||
d.setVar('PKG_%s' % pkg, pkg)
|
d.setVar('PKG:%s' % pkg, pkg)
|
||||||
|
|
||||||
pkgdestpkg = os.path.join(pkgdest, pkg)
|
pkgdestpkg = os.path.join(pkgdest, pkg)
|
||||||
files = {}
|
files = {}
|
||||||
@@ -1673,14 +1673,14 @@ fi
|
|||||||
sf.write('%s_%s: %d\n' % ('PKGSIZE', pkg, total_size))
|
sf.write('%s_%s: %d\n' % ('PKGSIZE', pkg, total_size))
|
||||||
|
|
||||||
# Symlinks needed for rprovides lookup
|
# Symlinks needed for rprovides lookup
|
||||||
rprov = d.getVar('RPROVIDES_%s' % pkg) or d.getVar('RPROVIDES')
|
rprov = d.getVar('RPROVIDES:%s' % pkg) or d.getVar('RPROVIDES')
|
||||||
if rprov:
|
if rprov:
|
||||||
for p in bb.utils.explode_deps(rprov):
|
for p in bb.utils.explode_deps(rprov):
|
||||||
subdata_sym = pkgdatadir + "/runtime-rprovides/%s/%s" % (p, pkg)
|
subdata_sym = pkgdatadir + "/runtime-rprovides/%s/%s" % (p, pkg)
|
||||||
bb.utils.mkdirhier(os.path.dirname(subdata_sym))
|
bb.utils.mkdirhier(os.path.dirname(subdata_sym))
|
||||||
oe.path.symlink("../../runtime/%s" % pkg, subdata_sym, True)
|
oe.path.symlink("../../runtime/%s" % pkg, subdata_sym, True)
|
||||||
|
|
||||||
allow_empty = d.getVar('ALLOW_EMPTY_%s' % pkg)
|
allow_empty = d.getVar('ALLOW_EMPTY:%s' % pkg)
|
||||||
if not allow_empty:
|
if not allow_empty:
|
||||||
allow_empty = d.getVar('ALLOW_EMPTY')
|
allow_empty = d.getVar('ALLOW_EMPTY')
|
||||||
root = "%s/%s" % (pkgdest, pkg)
|
root = "%s/%s" % (pkgdest, pkg)
|
||||||
@@ -1733,7 +1733,7 @@ python package_do_filedeps() {
|
|||||||
|
|
||||||
pkglist = []
|
pkglist = []
|
||||||
for pkg in packages.split():
|
for pkg in packages.split():
|
||||||
if d.getVar('SKIP_FILEDEPS_' + pkg) == '1':
|
if d.getVar('SKIP_FILEDEPS:' + pkg) == '1':
|
||||||
continue
|
continue
|
||||||
if pkg.endswith('-dbg') or pkg.endswith('-doc') or pkg.find('-locale-') != -1 or pkg.find('-localedata-') != -1 or pkg.find('-gconv-') != -1 or pkg.find('-charmap-') != -1 or pkg.startswith('kernel-module-') or pkg.endswith('-src'):
|
if pkg.endswith('-dbg') or pkg.endswith('-doc') or pkg.find('-locale-') != -1 or pkg.find('-localedata-') != -1 or pkg.find('-gconv-') != -1 or pkg.find('-charmap-') != -1 or pkg.startswith('kernel-module-') or pkg.endswith('-src'):
|
||||||
continue
|
continue
|
||||||
@@ -1930,12 +1930,12 @@ python package_do_shlibs() {
|
|||||||
shlib_provider = oe.package.read_shlib_providers(d)
|
shlib_provider = oe.package.read_shlib_providers(d)
|
||||||
|
|
||||||
for pkg in shlib_pkgs:
|
for pkg in shlib_pkgs:
|
||||||
private_libs = d.getVar('PRIVATE_LIBS_' + pkg) or d.getVar('PRIVATE_LIBS') or ""
|
private_libs = d.getVar('PRIVATE_LIBS:' + pkg) or d.getVar('PRIVATE_LIBS') or ""
|
||||||
private_libs = private_libs.split()
|
private_libs = private_libs.split()
|
||||||
needs_ldconfig = False
|
needs_ldconfig = False
|
||||||
bb.debug(2, "calculating shlib provides for %s" % pkg)
|
bb.debug(2, "calculating shlib provides for %s" % pkg)
|
||||||
|
|
||||||
pkgver = d.getVar('PKGV_' + pkg)
|
pkgver = d.getVar('PKGV:' + pkg)
|
||||||
if not pkgver:
|
if not pkgver:
|
||||||
pkgver = d.getVar('PV_' + pkg)
|
pkgver = d.getVar('PV_' + pkg)
|
||||||
if not pkgver:
|
if not pkgver:
|
||||||
@@ -1985,11 +1985,11 @@ python package_do_shlibs() {
|
|||||||
shlib_provider[s[0]][s[1]] = (pkg, pkgver)
|
shlib_provider[s[0]][s[1]] = (pkg, pkgver)
|
||||||
if needs_ldconfig:
|
if needs_ldconfig:
|
||||||
bb.debug(1, 'adding ldconfig call to postinst for %s' % pkg)
|
bb.debug(1, 'adding ldconfig call to postinst for %s' % pkg)
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg)
|
postinst = d.getVar('pkg_postinst:%s' % pkg)
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('ldconfig_postinst_fragment')
|
postinst += d.getVar('ldconfig_postinst_fragment')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
bb.debug(1, 'LIBNAMES: pkg %s sonames %s' % (pkg, sonames))
|
bb.debug(1, 'LIBNAMES: pkg %s sonames %s' % (pkg, sonames))
|
||||||
|
|
||||||
assumed_libs = d.getVar('ASSUME_SHLIBS')
|
assumed_libs = d.getVar('ASSUME_SHLIBS')
|
||||||
@@ -2011,7 +2011,7 @@ python package_do_shlibs() {
|
|||||||
for pkg in shlib_pkgs:
|
for pkg in shlib_pkgs:
|
||||||
bb.debug(2, "calculating shlib requirements for %s" % pkg)
|
bb.debug(2, "calculating shlib requirements for %s" % pkg)
|
||||||
|
|
||||||
private_libs = d.getVar('PRIVATE_LIBS_' + pkg) or d.getVar('PRIVATE_LIBS') or ""
|
private_libs = d.getVar('PRIVATE_LIBS:' + pkg) or d.getVar('PRIVATE_LIBS') or ""
|
||||||
private_libs = private_libs.split()
|
private_libs = private_libs.split()
|
||||||
|
|
||||||
deps = list()
|
deps = list()
|
||||||
@@ -2165,7 +2165,7 @@ python read_shlibdeps () {
|
|||||||
|
|
||||||
packages = d.getVar('PACKAGES').split()
|
packages = d.getVar('PACKAGES').split()
|
||||||
for pkg in packages:
|
for pkg in packages:
|
||||||
rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS_' + pkg) or "")
|
rdepends = bb.utils.explode_dep_versions2(d.getVar('RDEPENDS:' + pkg) or "")
|
||||||
for dep in sorted(pkglibdeps[pkg]):
|
for dep in sorted(pkglibdeps[pkg]):
|
||||||
# Add the dep if it's not already there, or if no comparison is set
|
# Add the dep if it's not already there, or if no comparison is set
|
||||||
if dep not in rdepends:
|
if dep not in rdepends:
|
||||||
@@ -2173,7 +2173,7 @@ python read_shlibdeps () {
|
|||||||
for v in pkglibdeps[pkg][dep]:
|
for v in pkglibdeps[pkg][dep]:
|
||||||
if v not in rdepends[dep]:
|
if v not in rdepends[dep]:
|
||||||
rdepends[dep].append(v)
|
rdepends[dep].append(v)
|
||||||
d.setVar('RDEPENDS_' + pkg, bb.utils.join_deps(rdepends, commasep=False))
|
d.setVar('RDEPENDS:' + pkg, bb.utils.join_deps(rdepends, commasep=False))
|
||||||
}
|
}
|
||||||
|
|
||||||
python package_depchains() {
|
python package_depchains() {
|
||||||
@@ -2197,7 +2197,7 @@ python package_depchains() {
|
|||||||
def pkg_adddeprrecs(pkg, base, suffix, getname, depends, d):
|
def pkg_adddeprrecs(pkg, base, suffix, getname, depends, d):
|
||||||
|
|
||||||
#bb.note('depends for %s is %s' % (base, depends))
|
#bb.note('depends for %s is %s' % (base, depends))
|
||||||
rreclist = bb.utils.explode_dep_versions2(d.getVar('RRECOMMENDS_' + pkg) or "")
|
rreclist = bb.utils.explode_dep_versions2(d.getVar('RRECOMMENDS:' + pkg) or "")
|
||||||
|
|
||||||
for depend in sorted(depends):
|
for depend in sorted(depends):
|
||||||
if depend.find('-native') != -1 or depend.find('-cross') != -1 or depend.startswith('virtual/'):
|
if depend.find('-native') != -1 or depend.find('-cross') != -1 or depend.startswith('virtual/'):
|
||||||
@@ -2212,13 +2212,13 @@ python package_depchains() {
|
|||||||
if pkgname not in rreclist and pkgname != pkg:
|
if pkgname not in rreclist and pkgname != pkg:
|
||||||
rreclist[pkgname] = []
|
rreclist[pkgname] = []
|
||||||
|
|
||||||
#bb.note('setting: RRECOMMENDS_%s=%s' % (pkg, ' '.join(rreclist)))
|
#bb.note('setting: RRECOMMENDS:%s=%s' % (pkg, ' '.join(rreclist)))
|
||||||
d.setVar('RRECOMMENDS_%s' % pkg, bb.utils.join_deps(rreclist, commasep=False))
|
d.setVar('RRECOMMENDS:%s' % pkg, bb.utils.join_deps(rreclist, commasep=False))
|
||||||
|
|
||||||
def pkg_addrrecs(pkg, base, suffix, getname, rdepends, d):
|
def pkg_addrrecs(pkg, base, suffix, getname, rdepends, d):
|
||||||
|
|
||||||
#bb.note('rdepends for %s is %s' % (base, rdepends))
|
#bb.note('rdepends for %s is %s' % (base, rdepends))
|
||||||
rreclist = bb.utils.explode_dep_versions2(d.getVar('RRECOMMENDS_' + pkg) or "")
|
rreclist = bb.utils.explode_dep_versions2(d.getVar('RRECOMMENDS:' + pkg) or "")
|
||||||
|
|
||||||
for depend in sorted(rdepends):
|
for depend in sorted(rdepends):
|
||||||
if depend.find('virtual-locale-') != -1:
|
if depend.find('virtual-locale-') != -1:
|
||||||
@@ -2233,8 +2233,8 @@ python package_depchains() {
|
|||||||
if pkgname not in rreclist and pkgname != pkg:
|
if pkgname not in rreclist and pkgname != pkg:
|
||||||
rreclist[pkgname] = []
|
rreclist[pkgname] = []
|
||||||
|
|
||||||
#bb.note('setting: RRECOMMENDS_%s=%s' % (pkg, ' '.join(rreclist)))
|
#bb.note('setting: RRECOMMENDS:%s=%s' % (pkg, ' '.join(rreclist)))
|
||||||
d.setVar('RRECOMMENDS_%s' % pkg, bb.utils.join_deps(rreclist, commasep=False))
|
d.setVar('RRECOMMENDS:%s' % pkg, bb.utils.join_deps(rreclist, commasep=False))
|
||||||
|
|
||||||
def add_dep(list, dep):
|
def add_dep(list, dep):
|
||||||
if dep not in list:
|
if dep not in list:
|
||||||
@@ -2246,7 +2246,7 @@ python package_depchains() {
|
|||||||
|
|
||||||
rdepends = []
|
rdepends = []
|
||||||
for pkg in packages.split():
|
for pkg in packages.split():
|
||||||
for dep in bb.utils.explode_deps(d.getVar('RDEPENDS_' + pkg) or ""):
|
for dep in bb.utils.explode_deps(d.getVar('RDEPENDS:' + pkg) or ""):
|
||||||
add_dep(rdepends, dep)
|
add_dep(rdepends, dep)
|
||||||
|
|
||||||
#bb.note('rdepends is %s' % rdepends)
|
#bb.note('rdepends is %s' % rdepends)
|
||||||
@@ -2280,7 +2280,7 @@ python package_depchains() {
|
|||||||
|
|
||||||
for suffix in pkgs:
|
for suffix in pkgs:
|
||||||
for pkg in pkgs[suffix]:
|
for pkg in pkgs[suffix]:
|
||||||
if d.getVarFlag('RRECOMMENDS_' + pkg, 'nodeprrecs'):
|
if d.getVarFlag('RRECOMMENDS:' + pkg, 'nodeprrecs'):
|
||||||
continue
|
continue
|
||||||
(base, func) = pkgs[suffix][pkg]
|
(base, func) = pkgs[suffix][pkg]
|
||||||
if suffix == "-dev":
|
if suffix == "-dev":
|
||||||
@@ -2293,7 +2293,7 @@ python package_depchains() {
|
|||||||
pkg_addrrecs(pkg, base, suffix, func, rdepends, d)
|
pkg_addrrecs(pkg, base, suffix, func, rdepends, d)
|
||||||
else:
|
else:
|
||||||
rdeps = []
|
rdeps = []
|
||||||
for dep in bb.utils.explode_deps(d.getVar('RDEPENDS_' + base) or ""):
|
for dep in bb.utils.explode_deps(d.getVar('RDEPENDS:' + base) or ""):
|
||||||
add_dep(rdeps, dep)
|
add_dep(rdeps, dep)
|
||||||
pkg_addrrecs(pkg, base, suffix, func, rdeps, d)
|
pkg_addrrecs(pkg, base, suffix, func, rdeps, d)
|
||||||
}
|
}
|
||||||
@@ -2310,7 +2310,7 @@ def gen_packagevar(d, pkgvars="PACKAGEVARS"):
|
|||||||
ret.append(v)
|
ret.append(v)
|
||||||
for p in pkgs:
|
for p in pkgs:
|
||||||
for v in vars:
|
for v in vars:
|
||||||
ret.append(v + "_" + p)
|
ret.append(v + ":" + p)
|
||||||
|
|
||||||
# Ensure that changes to INCOMPATIBLE_LICENSE re-run do_package for
|
# Ensure that changes to INCOMPATIBLE_LICENSE re-run do_package for
|
||||||
# affected recipes.
|
# affected recipes.
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ def deb_write_pkg(pkg, d):
|
|||||||
|
|
||||||
localdata.setVar('ROOT', '')
|
localdata.setVar('ROOT', '')
|
||||||
localdata.setVar('ROOT_%s' % pkg, root)
|
localdata.setVar('ROOT_%s' % pkg, root)
|
||||||
pkgname = localdata.getVar('PKG_%s' % pkg)
|
pkgname = localdata.getVar('PKG:%s' % pkg)
|
||||||
if not pkgname:
|
if not pkgname:
|
||||||
pkgname = pkg
|
pkgname = pkg
|
||||||
localdata.setVar('PKG', pkgname)
|
localdata.setVar('PKG', pkgname)
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ def ipk_write_pkg(pkg, d):
|
|||||||
try:
|
try:
|
||||||
localdata.setVar('ROOT', '')
|
localdata.setVar('ROOT', '')
|
||||||
localdata.setVar('ROOT_%s' % pkg, root)
|
localdata.setVar('ROOT_%s' % pkg, root)
|
||||||
pkgname = localdata.getVar('PKG_%s' % pkg)
|
pkgname = localdata.getVar('PKG:%s' % pkg)
|
||||||
if not pkgname:
|
if not pkgname:
|
||||||
pkgname = pkg
|
pkgname = pkg
|
||||||
localdata.setVar('PKG', pkgname)
|
localdata.setVar('PKG', pkgname)
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ python write_specfile () {
|
|||||||
|
|
||||||
localdata.setVar('ROOT', '')
|
localdata.setVar('ROOT', '')
|
||||||
localdata.setVar('ROOT_%s' % pkg, root)
|
localdata.setVar('ROOT_%s' % pkg, root)
|
||||||
pkgname = localdata.getVar('PKG_%s' % pkg)
|
pkgname = localdata.getVar('PKG:%s' % pkg)
|
||||||
if not pkgname:
|
if not pkgname:
|
||||||
pkgname = pkg
|
pkgname = pkg
|
||||||
localdata.setVar('PKG', pkgname)
|
localdata.setVar('PKG', pkgname)
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ python read_subpackage_metadata () {
|
|||||||
continue
|
continue
|
||||||
#
|
#
|
||||||
# If we set unsuffixed variables here there is a chance they could clobber override versions
|
# If we set unsuffixed variables here there is a chance they could clobber override versions
|
||||||
# of that variable, e.g. DESCRIPTION could clobber DESCRIPTION_<pkgname>
|
# of that variable, e.g. DESCRIPTION could clobber DESCRIPTION:<pkgname>
|
||||||
# We therefore don't clobber for the unsuffixed variable versions
|
# We therefore don't clobber for the unsuffixed variable versions
|
||||||
#
|
#
|
||||||
if key.endswith("_" + pkg):
|
if key.endswith("_" + pkg):
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ python () {
|
|||||||
for suffix in types]
|
for suffix in types]
|
||||||
d.setVar('PACKAGES', ' '.join(packages))
|
d.setVar('PACKAGES', ' '.join(packages))
|
||||||
for pkg in packages:
|
for pkg in packages:
|
||||||
d.setVar('ALLOW_EMPTY_%s' % pkg, '1')
|
d.setVar('ALLOW_EMPTY:%s' % pkg, '1')
|
||||||
}
|
}
|
||||||
|
|
||||||
# We don't want to look at shared library dependencies for the
|
# We don't want to look at shared library dependencies for the
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_sysroot"
|
|||||||
# http://git.savannah.gnu.org/cgit/patch.git/patch/?id=82b800c9552a088a241457948219d25ce0a407a4
|
# http://git.savannah.gnu.org/cgit/patch.git/patch/?id=82b800c9552a088a241457948219d25ce0a407a4
|
||||||
# This leaks into debug sources in particular. Add the dependency
|
# This leaks into debug sources in particular. Add the dependency
|
||||||
# to target recipes to avoid this problem until we can rely on 2.7.4 or later.
|
# to target recipes to avoid this problem until we can rely on 2.7.4 or later.
|
||||||
PATCHDEPENDENCY_append_class-target = " patch-replacement-native:do_populate_sysroot"
|
PATCHDEPENDENCY:append:class-target = " patch-replacement-native:do_populate_sysroot"
|
||||||
|
|
||||||
PATCH_GIT_USER_NAME ?= "OpenEmbedded"
|
PATCH_GIT_USER_NAME ?= "OpenEmbedded"
|
||||||
PATCH_GIT_USER_EMAIL ?= "oe.patch@oe"
|
PATCH_GIT_USER_EMAIL ?= "oe.patch@oe"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
# packages.
|
# packages.
|
||||||
#
|
#
|
||||||
|
|
||||||
DEPENDS_append_class-target = " qemu-native"
|
DEPENDS:append:class-target = " qemu-native"
|
||||||
inherit qemu
|
inherit qemu
|
||||||
|
|
||||||
PIXBUF_PACKAGES ??= "${PN}"
|
PIXBUF_PACKAGES ??= "${PN}"
|
||||||
@@ -29,30 +29,30 @@ else
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
python populate_packages_append() {
|
python populate_packages:append() {
|
||||||
pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES').split()
|
pixbuf_pkgs = d.getVar('PIXBUF_PACKAGES').split()
|
||||||
|
|
||||||
for pkg in pixbuf_pkgs:
|
for pkg in pixbuf_pkgs:
|
||||||
bb.note("adding pixbuf postinst and postrm scripts to %s" % pkg)
|
bb.note("adding pixbuf postinst and postrm scripts to %s" % pkg)
|
||||||
postinst = d.getVar('pkg_postinst_%s' % pkg) or d.getVar('pkg_postinst')
|
postinst = d.getVar('pkg_postinst:%s' % pkg) or d.getVar('pkg_postinst')
|
||||||
if not postinst:
|
if not postinst:
|
||||||
postinst = '#!/bin/sh\n'
|
postinst = '#!/bin/sh\n'
|
||||||
postinst += d.getVar('pixbufcache_common')
|
postinst += d.getVar('pixbufcache_common')
|
||||||
d.setVar('pkg_postinst_%s' % pkg, postinst)
|
d.setVar('pkg_postinst:%s' % pkg, postinst)
|
||||||
|
|
||||||
postrm = d.getVar('pkg_postrm_%s' % pkg) or d.getVar('pkg_postrm')
|
postrm = d.getVar('pkg_postrm:%s' % pkg) or d.getVar('pkg_postrm')
|
||||||
if not postrm:
|
if not postrm:
|
||||||
postrm = '#!/bin/sh\n'
|
postrm = '#!/bin/sh\n'
|
||||||
postrm += d.getVar('pixbufcache_common')
|
postrm += d.getVar('pixbufcache_common')
|
||||||
d.setVar('pkg_postrm_%s' % pkg, postrm)
|
d.setVar('pkg_postrm:%s' % pkg, postrm)
|
||||||
}
|
}
|
||||||
|
|
||||||
gdkpixbuf_complete() {
|
gdkpixbuf_complete() {
|
||||||
GDK_PIXBUF_FATAL_LOADER=1 ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache || exit 1
|
GDK_PIXBUF_FATAL_LOADER=1 ${STAGING_LIBDIR_NATIVE}/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
DEPENDS_append_class-native = " gdk-pixbuf-native"
|
DEPENDS:append:class-native = " gdk-pixbuf-native"
|
||||||
SYSROOT_PREPROCESS_FUNCS_append_class-native = " pixbufcache_sstate_postinst"
|
SYSROOT_PREPROCESS_FUNCS:append:class-native = " pixbufcache_sstate_postinst"
|
||||||
|
|
||||||
pixbufcache_sstate_postinst() {
|
pixbufcache_sstate_postinst() {
|
||||||
mkdir -p ${SYSROOT_DESTDIR}${bindir}
|
mkdir -p ${SYSROOT_DESTDIR}${bindir}
|
||||||
|
|||||||
@@ -1,2 +1,2 @@
|
|||||||
DEPENDS_prepend = "pkgconfig-native "
|
DEPENDS:prepend = "pkgconfig-native "
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ SDKIMAGE_FEATURES ??= "dev-pkgs dbg-pkgs src-pkgs ${@bb.utils.contains('DISTRO_F
|
|||||||
SDKIMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("SDKIMAGE_FEATURES", d)}'
|
SDKIMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("SDKIMAGE_FEATURES", d)}'
|
||||||
SDKIMAGE_INSTALL_COMPLEMENTARY[vardeps] += "SDKIMAGE_FEATURES"
|
SDKIMAGE_INSTALL_COMPLEMENTARY[vardeps] += "SDKIMAGE_FEATURES"
|
||||||
|
|
||||||
PACKAGE_ARCHS_append_task-populate-sdk = " sdk-provides-dummy-target"
|
PACKAGE_ARCHS:append:task-populate-sdk = " sdk-provides-dummy-target"
|
||||||
SDK_PACKAGE_ARCHS += "sdk-provides-dummy-${SDKPKGSUFFIX}"
|
SDK_PACKAGE_ARCHS += "sdk-provides-dummy-${SDKPKGSUFFIX}"
|
||||||
|
|
||||||
# List of locales to install, or "all" for all of them, or unset for none.
|
# List of locales to install, or "all" for all of them, or unset for none.
|
||||||
@@ -37,7 +37,7 @@ SDK_DEPLOY = "${DEPLOY_DIR}/sdk"
|
|||||||
|
|
||||||
SDKDEPLOYDIR = "${WORKDIR}/${SDKMACHINE}-deploy-${PN}-populate-sdk"
|
SDKDEPLOYDIR = "${WORKDIR}/${SDKMACHINE}-deploy-${PN}-populate-sdk"
|
||||||
|
|
||||||
B_task-populate-sdk = "${SDK_DIR}"
|
B:task-populate-sdk = "${SDK_DIR}"
|
||||||
|
|
||||||
SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${REAL_MULTIMACH_TARGET_SYS}"
|
SDKTARGETSYSROOT = "${SDKPATH}/sysroots/${REAL_MULTIMACH_TARGET_SYS}"
|
||||||
|
|
||||||
@@ -66,7 +66,7 @@ python () {
|
|||||||
|
|
||||||
SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}"
|
SDK_RDEPENDS = "${TOOLCHAIN_TARGET_TASK} ${TOOLCHAIN_HOST_TASK}"
|
||||||
SDK_DEPENDS = "virtual/fakeroot-native ${SDK_ARCHIVE_DEPENDS} cross-localedef-native nativesdk-qemuwrapper-cross ${@' '.join(["%s-qemuwrapper-cross" % m for m in d.getVar("MULTILIB_VARIANTS").split()])} qemuwrapper-cross"
|
SDK_DEPENDS = "virtual/fakeroot-native ${SDK_ARCHIVE_DEPENDS} cross-localedef-native nativesdk-qemuwrapper-cross ${@' '.join(["%s-qemuwrapper-cross" % m for m in d.getVar("MULTILIB_VARIANTS").split()])} qemuwrapper-cross"
|
||||||
PATH_prepend = "${WORKDIR}/recipe-sysroot/${SDKPATHNATIVE}${bindir}/crossscripts:${@":".join(all_multilib_tune_values(d, 'STAGING_BINDIR_CROSS').split())}:"
|
PATH:prepend = "${WORKDIR}/recipe-sysroot/${SDKPATHNATIVE}${bindir}/crossscripts:${@":".join(all_multilib_tune_values(d, 'STAGING_BINDIR_CROSS').split())}:"
|
||||||
SDK_DEPENDS += "nativesdk-glibc-locale"
|
SDK_DEPENDS += "nativesdk-glibc-locale"
|
||||||
|
|
||||||
# We want the MULTIARCH_TARGET_SYS to point to the TUNE_PKGARCH, not PACKAGE_ARCH as it
|
# We want the MULTIARCH_TARGET_SYS to point to the TUNE_PKGARCH, not PACKAGE_ARCH as it
|
||||||
@@ -119,9 +119,9 @@ python write_host_sdk_manifest () {
|
|||||||
output.write(format_pkg_list(pkgs, 'ver'))
|
output.write(format_pkg_list(pkgs, 'ver'))
|
||||||
}
|
}
|
||||||
|
|
||||||
POPULATE_SDK_POST_TARGET_COMMAND_append = " write_sdk_test_data ; "
|
POPULATE_SDK_POST_TARGET_COMMAND:append = " write_sdk_test_data ; "
|
||||||
POPULATE_SDK_POST_TARGET_COMMAND_append_task-populate-sdk = " write_target_sdk_manifest ; "
|
POPULATE_SDK_POST_TARGET_COMMAND:append:task-populate-sdk = " write_target_sdk_manifest ; "
|
||||||
POPULATE_SDK_POST_HOST_COMMAND_append_task-populate-sdk = " write_host_sdk_manifest; "
|
POPULATE_SDK_POST_HOST_COMMAND:append:task-populate-sdk = " write_host_sdk_manifest; "
|
||||||
SDK_PACKAGING_COMMAND = "${@'${SDK_PACKAGING_FUNC};' if '${SDK_PACKAGING_FUNC}' else ''}"
|
SDK_PACKAGING_COMMAND = "${@'${SDK_PACKAGING_FUNC};' if '${SDK_PACKAGING_FUNC}' else ''}"
|
||||||
SDK_POSTPROCESS_COMMAND = " create_sdk_files; check_sdk_sysroots; archive_sdk; ${SDK_PACKAGING_COMMAND} "
|
SDK_POSTPROCESS_COMMAND = " create_sdk_files; check_sdk_sysroots; archive_sdk; ${SDK_PACKAGING_COMMAND} "
|
||||||
|
|
||||||
@@ -172,7 +172,7 @@ fakeroot python do_populate_sdk() {
|
|||||||
populate_sdk_common(d)
|
populate_sdk_common(d)
|
||||||
}
|
}
|
||||||
SSTATETASKS += "do_populate_sdk"
|
SSTATETASKS += "do_populate_sdk"
|
||||||
SSTATE_SKIP_CREATION_task-populate-sdk = '1'
|
SSTATE_SKIP_CREATION:task-populate-sdk = '1'
|
||||||
do_populate_sdk[cleandirs] = "${SDKDEPLOYDIR}"
|
do_populate_sdk[cleandirs] = "${SDKDEPLOYDIR}"
|
||||||
do_populate_sdk[sstate-inputdirs] = "${SDKDEPLOYDIR}"
|
do_populate_sdk[sstate-inputdirs] = "${SDKDEPLOYDIR}"
|
||||||
do_populate_sdk[sstate-outputdirs] = "${SDK_DEPLOY}"
|
do_populate_sdk[sstate-outputdirs] = "${SDK_DEPLOY}"
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user