summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/vars.mk1
-rw-r--r--package/iproute2/Makefile2
-rw-r--r--package/libcap/Makefile2
-rw-r--r--toolchain/kernel-headers/Makefile3
4 files changed, 2 insertions, 6 deletions
diff --git a/mk/vars.mk b/mk/vars.mk
index 0525f5129..657d44ae5 100644
--- a/mk/vars.mk
+++ b/mk/vars.mk
@@ -136,7 +136,6 @@ FLAGS_FOR_BUILD= ${CPPFLAGS_FOR_BUILD} ${CFLAGS_FOR_BUILD} ${LDFLAGS_FOR_BUILD}
PATCH= ${BASH} $(SCRIPT_DIR)/patch.sh
SED:= sed -i -e
LINUX_DIR:= $(BUILD_DIR)/linux
-LINUX_HEADER_DIR:= $(STAGING_DIR)/linux-header
KERNEL_MODULE_FLAGS:= ARCH=${ARCH} KERNELVERSION="2.6" \
KERNEL_PATH=${LINUX_DIR} KERNELDIR=${LINUX_DIR} KERNEL_DIR=${LINUX_DIR} \
PREFIX=/usr CROSS_COMPILE="${TARGET_CROSS}" \
diff --git a/package/iproute2/Makefile b/package/iproute2/Makefile
index 4a894389f..33c33f7e7 100644
--- a/package/iproute2/Makefile
+++ b/package/iproute2/Makefile
@@ -47,7 +47,7 @@ $(eval $(call PKG_template,SS,ss,${PKG_VERSION}-${PKG_RELEASE},,${PKGSD_SS},${PK
CONFIG_STYLE:= minimal
TARGET_CFLAGS+= -D_GNU_SOURCE
XAKE_FLAGS+= CCOPTS="${TARGET_CFLAGS}" MFLAGS="CC=\"${TARGET_CC}\"" \
- CFLAGS_FOR_BUILD+="-I${LINUX_HEADER_DIR}/include"
+ CFLAGS_FOR_BUILD+="-I${LINUX_DIR}/include"
CONFIGURE_ENV+= CC="${TARGET_CC}" IPTC="${TARGET_CFLAGS}" IPTL="${TARGET_LDFLAGS}"
ip-install:
diff --git a/package/libcap/Makefile b/package/libcap/Makefile
index 40ebae489..1e78082c4 100644
--- a/package/libcap/Makefile
+++ b/package/libcap/Makefile
@@ -20,7 +20,7 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,LIBCAP,libcap,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
-CPPFLAGS_FOR_BUILD+= -I$(LINUX_HEADER_DIR)/include
+CPPFLAGS_FOR_BUILD+= -I$(LINUX_DIR)/include
CONFIG_STYLE:= manual
libcap-install:
diff --git a/toolchain/kernel-headers/Makefile b/toolchain/kernel-headers/Makefile
index 4346cb1a6..6ece517d3 100644
--- a/toolchain/kernel-headers/Makefile
+++ b/toolchain/kernel-headers/Makefile
@@ -10,9 +10,6 @@ $(WRKBUILD)/.headers:
$(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=$(ARCH) V=1 \
INSTALL_HDR_PATH=$(STAGING_DIR)/usr \
headers_install
- $(MAKE) -C $(WRKBUILD) HOSTCC=$(CC_FOR_BUILD) ARCH=$(ARCH) V=1 \
- INSTALL_HDR_PATH=$(LINUX_HEADER_DIR) \
- headers_install
ifeq ($(ARCH),cris)
ifeq ($(CPU_ARCH),crisv32)
cd $(STAGING_DIR)/usr/include && ln -sf arch-v32/arch arch