mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
Finally deprecate all legacy do_stage functions. This changes the existing warning
into a fatal error if any legacy do_stage functions are found. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -66,25 +66,6 @@ STAGING_DIR_TARGET = ""
|
||||
SHLIBSDIR = "${STAGING_DIR_NATIVE}/shlibs"
|
||||
PKG_CONFIG_DIR = "${libdir}/pkgconfig"
|
||||
|
||||
#
|
||||
# If changing this function, please make sure packaged-staging.bbclass is
|
||||
# updated too
|
||||
#
|
||||
do_stage_native () {
|
||||
# If autotools is active, use the autotools staging function, else
|
||||
# use our "make install" equivalent
|
||||
if [ "${AUTOTOOLS_NATIVE_STAGE_INSTALL}" == "1" ]
|
||||
then
|
||||
autotools_stage_all
|
||||
else
|
||||
oe_runmake install
|
||||
fi
|
||||
}
|
||||
|
||||
do_stage () {
|
||||
do_stage_native
|
||||
}
|
||||
|
||||
PKG_CONFIG_PATH .= "${EXTRA_NATIVE_PKGCONFIG_PATH}"
|
||||
PKG_CONFIG_SYSROOT_DIR = ""
|
||||
|
||||
@@ -93,11 +74,6 @@ ORIG_DEPENDS := "${DEPENDS}"
|
||||
DEPENDS_virtclass-native ?= "${ORIG_DEPENDS}"
|
||||
|
||||
python __anonymous () {
|
||||
# If we've a legacy native do_stage, we need to neuter do_install
|
||||
stagefunc = bb.data.getVar('do_stage', d, True)
|
||||
if (stagefunc.strip() != "do_stage_native" and stagefunc.strip() != "autotools_stage_all") and bb.data.getVar('AUTOTOOLS_NATIVE_STAGE_INSTALL', d, 1) == "1":
|
||||
bb.data.setVar("do_install", " :", d)
|
||||
|
||||
if "native" in (bb.data.getVar('BBCLASSEXTEND', d, True) or ""):
|
||||
pn = bb.data.getVar("PN", d, True)
|
||||
depends = bb.data.getVar("DEPENDS_virtclass-native", d, True)
|
||||
|
||||
Reference in New Issue
Block a user