iptables: fix build after linux-headers changes
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 6 Jul 2013 15:18:50 +0000 (17:18 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 7 Jul 2013 19:19:45 +0000 (21:19 +0200)
commit478f826518e1cf769abfb69da9361d931be15f8c
tree9ff29864ff2e765dac980e87567a8ae51b6b51de
parent8508dbb6d279800f0a5d6a1d320171db2a7d545c
iptables: fix build after linux-headers changes

As reported by 'scanf' on IRC, the iptables now fails to build because
of a missing <asm/cache.h> header in the kernel headers. The package
directly uses $(LINUX_HEADERS_DIR), which is not correct: this is the
source directory of the kernel, not where they are installed, and in
addition, this directory is empty/does not exist when using external
toolchains.

Instead, we use $(STAGING_DIR)/usr, which contains the kernel headers,
as part of the toolchain headers.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/iptables/iptables.mk