Revisió e4a024c9
Afegit per Pau Escrich fa aproximadament 13 anys
Makefile | ||
---|---|---|
endef
|
||
|
||
define update_feeds
|
||
@echo "Updateing feed $(T)"
|
||
./$(BUILD_DIR)/$(T)/scripts/feeds update -a
|
||
./$(BUILD_DIR)/$(T)/scripts/feeds install -a
|
||
@echo "Updating feed $(1)"
|
||
./$(BUILD_DIR)/$(1)/scripts/feeds update -a
|
||
./$(BUILD_DIR)/$(1)/scripts/feeds install -a
|
||
endef
|
||
|
||
define menuconfig_owrt
|
||
... | ... | |
|
||
define post_build
|
||
[ ! -d $(IMAGES) ] && mkdir $(IMAGES) || true
|
||
cp -f $(BUILD_DIR)/$(T)/$(IMAGE) $(IMAGES)/$(T)-factory-$(TIMESTAMP).bin
|
||
cp -f $(BUILD_DIR)/$(T)/$(SYSUPGRADE) $(IMAGES)/$(T)-upgrade-$(TIMESTAMP).bin
|
||
cp -f $(BUILD_DIR)/$(T)/$(IMAGE) $(IMAGES)/$(NAME)-factory-$(TIMESTAMP).bin
|
||
cp -f $(BUILD_DIR)/$(T)/$(SYSUPGRADE) $(IMAGES)/$(NAME)-upgrade-$(TIMESTAMP).bin
|
||
@echo
|
||
@echo "qMp firmware compiled, you can find output files in $(IMAGES) directory"
|
||
endef
|
||
... | ... | |
checkout: .checkout_qmp .checkout_eig
|
||
$(if $(T),,$(call target_error))
|
||
$(if $(wildcard .checkout_$(T)),,$(call checkout_src))
|
||
$(if $(wildcard .checkout_$(T)),,$(call update_feeds))
|
||
$(if $(wildcard .checkout_$(T)),,$(call update_feeds,$(T)))
|
||
$(if $(wildcard .checkout_$(T)),,$(call copy_config))
|
||
@touch .checkout_$(T)
|
||
|
||
update: .checkout_eig .checkout_qmp
|
||
cd $(BUILD_DIR)/qmp && git pull
|
||
# cd $(BUILD_DIR)/eigennet/packages && git pull
|
||
|
||
update_all: update
|
||
$(if $(T),HW_AVAILABLE=$(T))
|
||
$(foreach dir,$(HW_AVAILABLE),$(if $(wildcard $(BUILD_DIR)/$(dir)),$(call update_feeds,$(dir))))
|
||
|
També disponible a: Unified diff
Removed space from targets.mk in alix name. Added new function update_all