Revisió eef10e88
Afegit per Roger Pueyo Centelles fa més de 11 anys
| Makefile | ||
|---|---|---|
|
V ?= 0
|
||
|
T ?= ar71xx
|
||
|
MAKE_SRC = -j$(J) V=$(V)
|
||
|
IMAGEOPT ?= true
|
||
|
VERSIONOPT ?= true
|
||
|
#VERSION_REPO ?= http://fw.qmp.cat/$(QMP_GIT_BRANCH)_openwrt-%T-generic/packages
|
||
|
VERSION_REPO ?= http://fw.qmp.cat/trunk_openwrt-%T-generic/packages
|
||
|
|
||
|
include targets.mk
|
||
|
|
||
| ... | ... | |
|
define build_src
|
||
|
$(eval BRANCH_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git branch|grep ^*|cut -d " " -f 2))
|
||
|
$(eval REV_GIT=$(shell git --git-dir=$(BUILD_DIR)/qmp/.git --no-pager log -n 1 --oneline|cut -d " " -f 1))
|
||
|
make -C $(BUILD_PATH) $(MAKE_SRC) BRANCH_GIT=$(BRANCH_GIT) REV_GIT=$(REV_GIT)
|
||
|
make -C $(BUILD_PATH) $(MAKE_SRC) IMAGEOPT=$(IMAGEOPT) VERSIONOPT=$(VERSIONOPT) VERSION_REPO=$(VERSION_REPO) BRANCH_GIT=$(BRANCH_GIT) REV_GIT=$(REV_GIT)
|
||
|
endef
|
||
|
|
||
|
define copy_feeds_file
|
||
També disponible a: Unified diff
Fix issue #321: added VERSION_REPO variable for OpenWrt compilation pointing to http://fw.qmp.cat