utils/test-pkg: always run a global legal-info

Instead of limiting it to the package under test, we run it globally.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Yann E. MORIN 2018-01-07 23:50:05 +01:00 committed by Thomas Petazzoni
parent 09dd9d1755
commit 17cd914917

View File

@ -127,10 +127,8 @@ build_one() {
# legal-info done systematically, because some packages have different
# sources depending on the configuration (e.g. lua-5.2 vs. lua-5.3)
if [ -n "${pkg}" ]; then
if ! make O="${dir}" "${pkg}-legal-info" >> "${dir}/logfile" 2>&1; then
return 3
fi
if ! make O="${dir}" legal-info >> "${dir}/logfile" 2>&1; then
return 3
fi
}