drop files supporting shared source

This commit is contained in:
Doug Goldstein
2016-11-01 11:19:34 -05:00
parent 2536080e0b
commit a97f66224a
6 changed files with 0 additions and 105 deletions

View File

@@ -1,38 +0,0 @@
# In order to share the same source between multiple packages (.bb files), we
# unpack and patch the X source here into a shared dir.
#
# Take a look at gcc-source.inc for the general structure of this
# We require that "SOURCE_NAME" be set
# nopackages.bbclass {
deltask do_package
deltask do_package_write_rpm
deltask do_package_write_ipk
deltask do_package_write_deb
deltask do_package_qa
deltask do_packagedata
#}
deltask do_configure
deltask do_compile
deltask do_install
deltask do_populate_sysroot
deltask do_populate_lic
deltask do_rm_work
# override to get rid of '-native' or other misc
# XXX: consider ${PR}
PN = "${SOURCE_NAME}-source-${PV}"
WORKDIR = "${TMPDIR}/work-shared/${SOURCE_NAME}-${PV}-${PR}"
SSTATE_SWSPEC = "sstate:${SOURCE_NAME}::${PV}:${PR}::${SSTATE_VERSION}:"
STAMP = "${STAMPS_DIR}/work-shared/${SOURCE_NAME}-${PV}-${PR}"
STAMPCLEAN = "${STAMPS_DIR}/work-shared/${SOURCE_NAME}-${PV}-*"
INHIBIT_DEFAULT_DEPS = "1"
DEPENDS = ""
PACKAGES = ""
EXCLUDE_FROM_WORLD = "1"

View File

@@ -1,23 +0,0 @@
# gcc's shared source code disables fetch (via the commented code below). We
# can't do that because rust.bb currently fetches a rustc-snapshot archive itself.
#do_fetch() {
# :
#}
#do_fetch[noexec] = "1"
# gcc does `deltask` do_unpack. We avoid this so that the depends work sanely
# (things that need source code can still be ordered after do_unpack).
# As a side effect, we can also unpack things that aren't shared.
# Note: just setting this normally doesn't work. Use of python() is required.
python () {
d.setVarFlag('do_unpack', 'cleandirs', '')
}
# Avoid disabling do_patch for the same reason.
#deltask do_patch
SRC_URI = ""
S = "${TMPDIR}/work-shared/${SOURCE_NAME}-${PV}-${PR}"
do_unpack[depends] += "${SOURCE_NAME}-source-${PV}:do_patch"
do_populate_lic[depends] += "${SOURCE_NAME}-source-${PV}:do_unpack"