mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 23:46:16 +02:00
add default Build/Install template, which is activated by setting PKG_INSTALL=1
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12512 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
23d5f9b0ac
commit
4a0457153b
@ -102,6 +102,10 @@ MAKE_FLAGS = \
|
|||||||
CROSS="$(TARGET_CROSS)" \
|
CROSS="$(TARGET_CROSS)" \
|
||||||
ARCH="$(ARCH)"
|
ARCH="$(ARCH)"
|
||||||
|
|
||||||
|
MAKE_INSTALL_FLAGS = \
|
||||||
|
$(MAKE_FLAGS) \
|
||||||
|
DESTDIR="$(PKG_INSTALL_DIR)"
|
||||||
|
|
||||||
MAKE_PATH = .
|
MAKE_PATH = .
|
||||||
|
|
||||||
define Build/Compile/Default
|
define Build/Compile/Default
|
||||||
@ -110,3 +114,10 @@ define Build/Compile/Default
|
|||||||
$(MAKE_FLAGS) \
|
$(MAKE_FLAGS) \
|
||||||
$(1);
|
$(1);
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Build/Install/Default
|
||||||
|
$(MAKE_VARS) \
|
||||||
|
$(MAKE) -C $(PKG_BUILD_DIR)/$(MAKE_PATH) \
|
||||||
|
$(MAKE_INSTALL_FLAGS) \
|
||||||
|
$(1) install;
|
||||||
|
endef
|
||||||
|
@ -150,17 +150,10 @@ define pkg_install_bin
|
|||||||
$(foreach install_apps,$(1),$(INSTALL_DIR) $(3)/`dirname $(install_apps)`; $(INSTALL_BIN) $(2)/$(install_apps) $(3)/`dirname $(install_apps)`;)
|
$(foreach install_apps,$(1),$(INSTALL_DIR) $(3)/`dirname $(install_apps)`; $(INSTALL_BIN) $(2)/$(install_apps) $(3)/`dirname $(install_apps)`;)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Prepare
|
Build/Prepare=$(call Build/Prepare/Default,)
|
||||||
$(call Build/Prepare/Default,)
|
Build/Configure=$(call Build/Configure/Default,)
|
||||||
endef
|
Build/Compile=$(call Build/Compile/Default,)
|
||||||
|
Build/Install=$(if $(PKG_INSTALL),$(call Build/Install/Default,))
|
||||||
define Build/Configure
|
|
||||||
$(call Build/Configure/Default,)
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Compile
|
|
||||||
$(call Build/Compile/Default,)
|
|
||||||
endef
|
|
||||||
|
|
||||||
$(PACKAGE_DIR):
|
$(PACKAGE_DIR):
|
||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
Loading…
Reference in New Issue
Block a user