Revisió ee446b02
Afegit per Jorge L. Florit fa més de 12 anys
| Makefile | ||
|---|---|---|
|
IMAGES = images
|
||
|
SHELL = bash
|
||
|
QMP_FEED = package/feeds/qmp_packages
|
||
|
COMMUNITY ?= qMp
|
||
|
SCRIPTS_DIR= scripts
|
||
|
COMMUNITY ?= qMp
|
||
|
EXTRA_PACKS =
|
||
|
J ?= 1
|
||
|
V ?= 0
|
||
|
T =
|
||
| ... | ... | |
|
endef
|
||
|
|
||
|
define pre_build
|
||
|
$(foreach SCRIPT, $(wildcard $(SCRIPTS_DIR)/*.script), $(shell $(SCRIPT) PRE_BUILD $(TBUILD) $(TARGET)) )
|
||
|
$(foreach SCRIPT, $(wildcard $(SCRIPTS_DIR)/*.script), $(shell $(SCRIPT) PRE_BUILD $(TBUILD) $(TARGET) $(EXTRA_PACKS)) )
|
||
|
endef
|
||
|
|
||
|
define post_build
|
||
| ... | ... | |
|
@[ -f $(IMAGES)/$(IM_NAME) ] || echo No output image configured in targets.mk
|
||
|
@echo $(IM_NAME)
|
||
|
$(if $(SYSUPGRADE),@echo $(SIM_NAME))
|
||
|
$(foreach SCRIPT, $(wildcard $(SCRIPTS_DIR)/*.script), $(shell $(SCRIPT) POST_BUILD $(TBUILD) $(TARGET)) )
|
||
|
$(foreach SCRIPT, $(wildcard $(SCRIPTS_DIR)/*.script), $(shell $(SCRIPT) POST_BUILD $(TBUILD) $(TARGET) $(EXTRA_PACKS)) )
|
||
|
@echo "qMp firmware compiled, you can find output files in $(IMAGES) directory."
|
||
|
endef
|
||
|
|
||
També disponible a: Unified diff
Add script to select additional packages only in compile time