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
This commit is contained in:
12
rules.mk
12
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
|
||||
|
||||
Reference in New Issue
Block a user