]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
utils/test-pkg: always run a global legal-info
authorYann E. MORIN <yann.morin.1998@free.fr>
Sun, 7 Jan 2018 22:50:05 +0000 (23:50 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Mon, 8 Jan 2018 08:16:50 +0000 (09:16 +0100)
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>
utils/test-pkg

index 1b7046eac46b3e97ea62805f0f99bbc43098f5be..cd7b9dad7b6c6a5d5bb09a513dd6e9a86a775c56 100755 (executable)
@@ -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
 }