diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-11 23:11:02 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-11 23:11:02 +0000 |
commit | cf4e7af392186e57f213053a898c62cd9400b692 (patch) | |
tree | 1f8a2d1023ef2469dbd0e2040599b3c69807cf92 /rules.mk | |
parent | 312802199b7cc09dde5ed867745f4c1baa3c5204 (diff) | |
download | upstream-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.mk | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |