aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-11 23:11:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-11 23:11:02 +0000
commitcf4e7af392186e57f213053a898c62cd9400b692 (patch)
tree1f8a2d1023ef2469dbd0e2040599b3c69807cf92 /rules.mk
parent312802199b7cc09dde5ed867745f4c1baa3c5204 (diff)
downloadupstream-cf4e7af392186e57f213053a898c62cd9400b692.tar.gz
upstream-cf4e7af392186e57f213053a898c62cd9400b692.tar.bz2
upstream-cf4e7af392186e57f213053a898c62cd9400b692.zip
make target/linux/* directories self-contained, use the selected kernel version for the toolchain, autogenerate menuconfig and makefile code for target selection
SVN-Revision: 5498
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index a4dcaa1fcd..da0e04c1c4 100644
--- a/rules.mk
+++ b/rules.mk
@@ -30,7 +30,7 @@ BIN_DIR:=$(TOPDIR)/bin
PACKAGE_DIR:=$(BIN_DIR)/packages
IPKG_TARGET_DIR:=$(PACKAGE_DIR)
BUILD_DIR:=$(TOPDIR)/build_$(ARCH)
-TMP_DIR:=$(BUILD_DIR)/tmp
+TMP_DIR:=$(TOPDIR)/tmp
STAMP_DIR:=$(BUILD_DIR)/stamp
TARGET_DIR:=$(BUILD_DIR)/root
IPKG_STATE_DIR:=$(TARGET_DIR)/usr/lib/ipkg
@@ -111,6 +111,16 @@ else
TAR_OPTIONS:=-xf -
endif
+define shvar
+V_$(subst .,_,$(subst -,_,$(subst /,_,$(1))))
+endef
+
+define shexport
+$(call shvar,$(1))=$$(call $(1))
+export $(call shvar,$(1))
+endef
+
+
all:
FORCE: ;
.PHONY: FORCE