CLFS3: added INSTALL_LOG support to cross_tools_Makefiles to can track Linux-Headers and uClibc installed files.

This commit is contained in:
Manuel Canales Esparcia 2007-07-02 20:41:30 +00:00
parent 535fd45b8f
commit 610021131d

View file

@ -210,13 +210,24 @@ cross_tools_Makefiles() { #
# If $pkg_tarball isn't empty, we've got a package... # If $pkg_tarball isn't empty, we've got a package...
if [ "$pkg_tarball" != "" ] ; then if [ "$pkg_tarball" != "" ] ; then
LUSER_wrt_unpack "$pkg_tarball" LUSER_wrt_unpack "$pkg_tarball"
# Touch timestamp file if installed files logs will be created.
if [ "${INSTALL_LOG}" = "y" ] ; then
LUSER_wrt_TouchTimestamp
fi
# If using optimizations, write the instructions # If using optimizations, write the instructions
[[ "$OPTIMIZE" != "0" ]] && wrt_optimize "$name" && wrt_makeflags "$name" [[ "$OPTIMIZE" != "0" ]] && wrt_optimize "$name" && wrt_makeflags "$name"
fi fi
# #
LUSER_wrt_RunAsUser "${file}" LUSER_wrt_RunAsUser "${file}"
# #
[[ "$pkg_tarball" != "" ]] && LUSER_RemoveBuildDirs "${name}" # Write installed files log and remove the build directory(ies)
# except if the package build fails.
if [ "$pkg_tarball" != "" ] ; then
LUSER_RemoveBuildDirs "${name}"
if [ "${INSTALL_LOG}" = "y" ] ; then
LUSER_wrt_LogNewFiles "$name"
fi
fi
# #
# Include a touch of the target name so make can check if it's already been made. # Include a touch of the target name so make can check if it's already been made.
wrt_touch wrt_touch
@ -269,7 +280,6 @@ final_system_Makefiles() { #
# If $pkg_tarball isn't empty, we've got a package... # If $pkg_tarball isn't empty, we've got a package...
if [ "$pkg_tarball" != "" ] ; then if [ "$pkg_tarball" != "" ] ; then
# Touch timestamp file if installed files logs will be created. # Touch timestamp file if installed files logs will be created.
# But only for the firt build when running iterative builds.
if [ "${INSTALL_LOG}" = "y" ] ; then if [ "${INSTALL_LOG}" = "y" ] ; then
LUSER_wrt_TouchTimestamp LUSER_wrt_TouchTimestamp
fi fi