Sebastian Kemper 1f0063b58c rules.mk: remove "$(STAGING_DIR)/include"
"$(STAGING_DIR)/include" was carried over from buildroot-ng to OpenWrt
in commit 60c1f0f64d23003a19a07d6b9638542130f6641d. buildroot has
dropped this directory a long time ago.

In OpenWrt the directory is still created by the PrepareStaging macro
and is part of the default TARGET_CPPFLAGS. But nothing at all installs
headers into this directory, nor should anything be installed under this
path.

Removing this directory from TARGET_CPPFLAGS will cut down the log noise
a bit. Not only will CPPFLAGS be shorter, there will be less warnings
set off by "-Wmissing-include-dirs" (or even failures when paired with
"-Werror"). After all the directory does not even _exist_ in the SDKs,
which are used on the build bots when building packages (see [1] and
[2]).

make[8]: Entering directory '/builder/shared-workdir/build/sdk/build_dir/target-aarch64_generic_musl/libmbim-1.20.0/src/common'
  CC       libmbim_common_la-mbim-common.lo
cc1: error: /builder/shared-workdir/build/sdk/staging_dir/target-aarch64_generic_musl/include: No such file or directory [-Werror=missing-include-dirs]
cc1: all warnings being treated as errors

[1] https://github.com/openwrt/packages/issues/10377
[2] https://github.com/openwrt/packages/pull/10378

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Acked-by: Jo-Philipp Wich <jo@mein.io>
Acked-by: Rosen Penev <rosenp@gmail.com>
2019-11-02 20:51:56 +01:00
..
2019-05-22 21:27:44 +02:00
2019-06-22 10:23:56 +02:00
2019-09-26 22:15:25 +02:00
2019-09-01 18:38:05 +02:00
2019-10-06 21:28:49 +02:00
2018-11-25 19:23:03 +01:00
2019-07-08 16:42:26 +02:00
2017-01-03 14:24:33 +01:00
2019-02-26 23:20:04 +01:00
2016-12-16 22:39:22 +01:00
2018-01-18 08:04:18 +01:00
2019-02-10 20:51:09 +01:00
2018-12-24 17:05:57 +01:00
2016-12-16 22:39:22 +01:00
2019-02-10 20:48:25 +01:00
2018-06-08 09:56:26 +02:00
2019-03-10 21:36:28 +01:00
2019-09-03 11:56:47 +02:00