@@ -35,8 +35,8 @@ else
rmdir $(LINUX_DIR); \
fi
ln -s $(CONFIG_EXTERNAL_KERNEL_TREE) $(LINUX_DIR)
- if [ -d $(LINUX_DIR)/user_headers ]; then \
- rm -rf $(LINUX_DIR)/user_headers; \
+ if [ -d $(LINUX_OBJ_DIR)/user_headers ]; then \
+ rm -rf $(LINUX_OBJ_DIR)/user_headers; \
fi
endef
endif
@@ -111,7 +111,7 @@ define Kernel/Configure/Default
cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config; \
cp $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.prev; \
}
- $(_SINGLE) [ -d $(LINUX_DIR)/user_headers ] || $(KERNEL_MAKE) $(if $(findstring uml,$(BOARD)),ARCH=$(ARCH)) INSTALL_HDR_PATH=$(LINUX_DIR)/user_headers headers_install
+ $(_SINGLE) [ -d $(LINUX_OBJ_DIR)/user_headers ] || $(KERNEL_MAKE) $(if $(findstring uml,$(BOARD)),ARCH=$(ARCH)) INSTALL_HDR_PATH=$(LINUX_OBJ_DIR)/user_headers headers_install
grep '=[ym]' $(LINUX_DIR)/.config.set | LC_ALL=C sort | $(MKHASH) md5 > $(LINUX_DIR)/.vermagic
endef
@@ -31,7 +31,7 @@ PKG_CONFIG_DEPENDS := \
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
-HOST_CFLAGS += -I$(LINUX_DIR)/user_headers/include
+HOST_CFLAGS += -I$(LINUX_OBJ_DIR)/user_headers/include
CONFIGURE_VARS+= \
LDFLAGS_FOR_BUILD="$(HOST_LDFLAGS)" \
@@ -30,7 +30,7 @@ TARGET_CPPFLAGS := \
-I$(STAGING_DIR)/usr/include/libnl-tiny \
-I$(PKG_BUILD_DIR) \
$(TARGET_CPPFLAGS) \
- -I$(LINUX_DIR)/user_headers/include
+ -I$(LINUX_OBJ_DIR)/user_headers/include
define Build/Compile
CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \
@@ -586,19 +586,19 @@ endef
TARGET_CPPFLAGS := \
-I$(PKG_BUILD_DIR)/include \
- -I$(LINUX_DIR)/user_headers/include \
+ -I$(LINUX_OBJ_DIR)/user_headers/include \
$(TARGET_CPPFLAGS)
TARGET_CFLAGS += \
-I$(PKG_BUILD_DIR)/include \
- -I$(LINUX_DIR)/user_headers/include \
+ -I$(LINUX_OBJ_DIR)/user_headers/include \
-DNO_LEGACY
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
--enable-devel \
- --with-kernel="$(LINUX_DIR)/user_headers" \
+ --with-kernel="$(LINUX_OBJ_DIR)/user_headers" \
--with-xtlibdir=/usr/lib/iptables \
--with-xt-lock-name=/var/run/xtables.lock \
$(if $(CONFIG_IPTABLES_CONNLABEL),,--disable-connlabel) \
@@ -607,7 +607,7 @@ CONFIGURE_ARGS += \
MAKE_FLAGS := \
$(TARGET_CONFIGURE_OPTS) \
COPT_FLAGS="$(TARGET_CFLAGS)" \
- KERNEL_DIR="$(LINUX_DIR)/user_headers/" PREFIX=/usr \
+ KERNEL_DIR="$(LINUX_OBJ_DIR)/user_headers/" PREFIX=/usr \
KBUILD_OUTPUT="$(LINUX_DIR)" \
BUILTIN_MODULES="$(patsubst ip6t_%,%,$(patsubst ipt_%,%,$(patsubst xt_%,%,$(IPT_BUILTIN) $(IPT_CONNTRACK-m) $(IPT_NAT-m))))"
@@ -99,7 +99,7 @@ endef
$(foreach t,$(ATM_DEBUG_TOOLS),$(eval $(call GenAtmPlugin,atm-$(t),$(t))))
-TARGET_CFLAGS += -I$(LINUX_DIR)/user_headers/include
+TARGET_CFLAGS += -I$(LINUX_OBJ_DIR)/user_headers/include
define Build/Configure
$(call Build/Configure/Default)
These may be regenerated with every build. As such they seem appropriate for the object directory, rather than source. Signed-off-by: Elliott Mitchell <ehem+openwrt@m5p.com> --- include/kernel-defaults.mk | 6 +++--- package/devel/strace/Makefile | 2 +- package/network/config/swconfig/Makefile | 2 +- package/network/utils/iptables/Makefile | 8 ++++---- package/network/utils/linux-atm/Makefile | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-)