pciutils: Fix build with external toolchains
authorFlorian Fainelli <redacted>
Mon, 5 Jun 2017 20:48:45 +0000 (13:48 -0700)
committerFlorian Fainelli <redacted>
Tue, 6 Jun 2017 00:18:51 +0000 (17:18 -0700)
commit3ffd13fbd2c16c1b297811702f6657ea10b62043
treef121f96d9a5ab6bbbd6e161a8f816b61fd7271b3
parent43269ecf0178483968f2ed05af7cb1d63f345fda
pciutils: Fix build with external toolchains

Passing GNU_TARGET_NAME implies that we have a 4-group triplet (e.g:
arm-openwrt-unknown-linux), and this works fine with pciutils'
lib/configure operating system detection. If we have an external
toolchain (e.g: mipsel-linux-gnu), the configure script is all confused
and ends-up picking up i386-ports, which is not valid on the target
architecture.

Finally, we are not passing TARGET_CPPFLAGS as we should, so let's do
that correctly.

Signed-off-by: Florian Fainelli <redacted>
utils/pciutils/Makefile
git clone https://git.99rst.org/PROJECT