mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 18:32:20 +02:00
classes: Update classes to match new bitbake class scope functionality
Move classes to classes-global or classes-recipe as appropriate to take advantage of new bitbake functionality to check class scope/usage. (From OE-Core rev: f5c128008365e141082c129417eb72d2751e8045) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
35
meta/classes-recipe/python3targetconfig.bbclass
Normal file
35
meta/classes-recipe/python3targetconfig.bbclass
Normal file
@@ -0,0 +1,35 @@
|
||||
#
|
||||
# Copyright OpenEmbedded Contributors
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
inherit python3native
|
||||
|
||||
EXTRA_PYTHON_DEPENDS ?= ""
|
||||
EXTRA_PYTHON_DEPENDS:class-target = "python3"
|
||||
DEPENDS:append = " ${EXTRA_PYTHON_DEPENDS}"
|
||||
|
||||
do_configure:prepend:class-target() {
|
||||
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
|
||||
}
|
||||
|
||||
do_compile:prepend:class-target() {
|
||||
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
|
||||
}
|
||||
|
||||
do_install:prepend:class-target() {
|
||||
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
|
||||
}
|
||||
|
||||
do_configure:prepend:class-nativesdk() {
|
||||
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
|
||||
}
|
||||
|
||||
do_compile:prepend:class-nativesdk() {
|
||||
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
|
||||
}
|
||||
|
||||
do_install:prepend:class-nativesdk() {
|
||||
export _PYTHON_SYSCONFIGDATA_NAME="_sysconfigdata"
|
||||
}
|
||||
Reference in New Issue
Block a user