Projecte

General

Perfil

« Anterior | Següent » 

Revisió 1209afe3

Afegit per Pau Escrich fa més de 12 anys

Added new functionallity to define scripts in PRE/POST build operation. Check scripts/README

Visualitza les diferències:

Makefile
IMAGES = images
SHELL = bash
QMP_FEED = package/feeds/qmp_packages
SCRIPTS_DIR= scripts
J ?= 1
V ?= 0
T =
......
cp -f $(KCONFIG) $(MY_CONFIGS)/$(TARGET)/kernel_config
endef
define pre_build
$(foreach SCRIPT, $(wildcard $(SCRIPTS_DIR)/*.script), $(shell $(SCRIPT) PRE_BUILD $(TARGET)) )
endef
define post_build
$(eval COMP=$(shell ls $(BUILD_DIR)/$(TARGET)/$(IMAGE_PATH) 2>/dev/null | grep -c \\.gz))
mkdir -p $(IMAGES)
......
@[ -f $(IMAGES)/$(IM_NAME) ] || false
@echo $(IM_NAME)
$(if $(SYSUPGRADE),@echo $(SIM_NAME))
$(foreach SCRIPT, $(wildcard $(SCRIPTS_DIR)/*.script), $(shell $(SCRIPT) POST_BUILD $(TARGET)) )
@echo "qMp firmware compiled, you can find output files in $(IMAGES) directory."
endef
......
cd $(BUILD_DIR)/$(TARGET) ; \
for d in $(QMP_FEED)/*; do make $$d/clean ; done
post_build:
post_build: checkout
$(call post_build)
pre_build: checkout
$(call pre_build)
list_targets:
$(info $(HW_AVAILABLE))
@exit 0
config:
select HW in $(HW_AVAILABLE); do break; done; echo $$HW > .config.tmp;
@select HW in $(HW_AVAILABLE); do break; done; echo $$HW > .config.tmp;
mv .config.tmp .config
help:

També disponible a: Unified diff