kumquat-buildroot/package/gcc
Ricardo Martincoski b03fa5d96f utils/check-package: warn about overridden variables
For the general case, appending values to variables is OK and also a
good practice, like this:
|PACKAGE_VAR = value1
|ifeq ...
|PACKAGE_VAR += value2

or this, when the above is not possible:
|PACKAGE_VAR = value1
|ifeq ...
|PACKAGE_VAR := $(PACKAGE_VAR), value2

But this override is an error:
|PACKAGE_VAR = value1
|PACKAGE_VAR = value2

as well this one:
|ifeq ...
|PACKAGE_VAR += value1
|endif
|PACKAGE_VAR = value2

And this override is error-prone:
|PACKAGE_VAR = value1
|ifeq ...
|PACKAGE_VAR = value2

Create a check function to warn about overridden variables.

Some variables are likely to have a default value that gets overridden
in a conditional, so ignore them. The name of such variables end in
_ARCH, _CPU, _SITE, _SOURCE or _VERSION.

After ignoring these variable names, there are a few exceptions to this
rule in the tree. For them use the comment that disables the check.

Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Cc: Simon Dawson <spdawson@gmail.com>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Tested-by: Titouan Christophe <titouan.christophe@railnova.eu>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-02-05 20:24:57 +01:00
..
4.9.4 package/gcc: fix build of gcc-4.9.4 with glibc-2.28 2018-08-14 15:35:20 +02:00
5.5.0 package/gcc: fix build of gcc-5.5.0 with glibc-2.28 2018-08-14 15:35:14 +02:00
6.5.0 package/gcc: bump to version 6.5.0 2018-12-08 20:54:47 +01:00
7.4.0 package/gcc/7.4.0: remove upstream patch 2018-12-09 16:53:54 +01:00
8.2.0 package/gcc: remove arm soft patch 2018-12-08 20:56:43 +01:00
arc-2018.09-release toolchain: fix URLs for ARC gcc/binutils/gdb 2018-12-06 21:05:06 +01:00
gcc-final utils/check-package: warn about overridden variables 2019-02-05 20:24:57 +01:00
gcc-initial package/gcc: remove unused HOST_GCC_FAKE_TESTSUITE 2018-12-10 11:48:22 +01:00
or1k-musl-5.4.0-20170218
Config.in.host package/gcc: bump to version 6.5.0 2018-12-08 20:54:47 +01:00
gcc.hash package/gcc: bump to version 6.5.0 2018-12-08 20:54:47 +01:00
gcc.mk package/gcc: enable __cxa_atexit 2018-11-29 22:12:38 +01:00