1 # freeze finds all the bitbake files used by the stuff
2 # currently built in ${TMPDIR}/work and writes those
3 # files into frozen-bbfiles.conf, then it writes the
4 # directories containing the files into frozen-packages.conf
6 # The two files define (just) the BBFILES variable.
8 # The path names in the BBFILES variable are of the form:
10 # ${PKGDIR}/packages/directory/bbfile.bb
11 # ${PKGDIR}/packages/directory/*.bb
13 # as appropriate, directory is the sub-directory of 'packages'.
15 DESCRIPTION = "Freeze the bitbake files in the build"
16 MAINTAINER = "John Bowler <jbowler@acm.org>"
17 SECTION = "console/networking"
22 INHIBIT_DEFAULT_DEPS = "1"
27 SRC_URI = "file://freeze"
40 # export FROZEN_DIR=<place to write conf files>
41 # export PKGDIR=<location of openembedded package source>
42 # export DISTRO=<distro being frozen>
43 # freeze {directories}
45 if test -d "${PKGDIR}/packages"
47 FROZEN_DIR="${FROZEN_DIR}" PKGDIR="${PKGDIR}" DISTRO="${DISTRO}" \
48 sh "${WORKDIR}/freeze" "${TMPDIR}/work"
50 oenote "\$PKGDIR/packages ($PKGDIR/packages) not found"
51 oefatal "\$PKGDIR must be defined for freeze to work"