]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
check-package: avoid false warning of useless flag
authorRicardo Martincoski <ricardo.martincoski@gmail.com>
Sat, 2 Dec 2017 04:28:24 +0000 (02:28 -0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Dec 2017 13:51:27 +0000 (14:51 +0100)
commit29d9f2f01445bb2e2f8a1cab293be4d62d34f2b0
tree9904791a0560cd2a495bdfbf147956ae867a77c4
parent2f6e5467f61a4339acd5433707df9a33739c1792
check-package: avoid false warning of useless flag

Just AUTORECONF = NO is redundant.
Just HOST_AUTORECONF = NO is redundant.
But the combination of AUTORECONF = YES + HOST_AUTORECONF = NO is valid.

So basically for all variables that have inheritance between target and
host, having the host variant of the variable set the variable value
back to its default is correct if the target variable is set.

Instead of increasing complexity of the script to fully detect this
case, ignore the host flag set to its default value as it can be
overriding a non-default value inherited from the equivalent target
flag.

Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Yann E. MORIN <yann.morin.1998@free.fr>
Reported-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@datacom.ind.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/checkpackagelib/lib_mk.py