Projecte

General

Perfil

« Anterior | Següent » 

Revisió 0bbc22a4

Afegit per Jorge L. Florit fa casi 11 anys

Change 'build_src' to 'compile' and minor changes

Visualitza les diferències:

Makefile
CONFIG = $(BUILD_PATH)/.config
KCONFIG = $(BUILD_PATH)/target/linux/$(ARCH)/config-*
.PHONY: checkout update clean config menuconfig kernel_menuconfig list_targets build clean_qmp
.PHONY: checkout update clean config menuconfig kernel_menuconfig list_targets pre_build compile post_build clean_qmp
define build_src
......
endef
define pre_build
@echo "Executing PRE_BUILD scripts"
$(foreach SCRIPT, $(wildcard $(SCRIPTS_DIR)/*.script), $(shell $(SCRIPT) PRE_BUILD $(TBUILD) $(TARGET) $(EXTRA_PACKS)) )
endef
......
@[ -f $(IMAGES)/$(IM_NAME) ] || echo No output image configured in targets.mk
@echo $(IM_NAME)
$(if $(SYSUPGRADE),@echo $(SIM_NAME))
@echo "Executing POST_BUILD scripts"
$(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
......
pre_build: checkout
$(call pre_build)
compile: checkout
$(if $(TARGET),$(call build_src))
list_targets:
$(info $(HW_AVAILABLE))
@exit 0
......
help:
-cat README | more
prebuild:
$(call pre_build)
postbuild:
$(call post_build)
srcbuild:
$(if $(TARGET),$(call build_src))
build: checkout sync_config prebuild srcbuild postbuild
build: checkout sync_config pre_build compile post_build
is_up_to_date:
cd $(BUILD_DIR)/qmp && test "$$($(call get_git_local_revision,$(QMP_GIT_BRANCH)))" == "$$($(call get_git_remote_revision,$(QMP_GIT_BRANCH)))"
scripts/extra-packages.script
for i in $EXTRA_PACKS; do
AUX="$(grep $i $FILE)"
[ ! -z "$AUX" ] && {
[ "$PREPOST" = "PRE_BUILD" ] && echo "- (PRE_BUILD) Adding extra package: $i" >&2 && sed -i -e s/"${AUX}"/"CONFIG_PACKAGE_$i=y"/g $FILE
[ "$PREPOST" = "POST_BUILD" ] && echo "- (POST_BUILD) Removing extra package: $1" >&2 && sed -i -e s/"${AUX}"/"# CONFIG_PACKAGE_$i is not set"/g $FILE
[ "$PREPOST" = "PRE_BUILD" ] && echo "- Adding extra package: $i" >&2 && sed -i -e s/"${AUX}"/"CONFIG_PACKAGE_$i=y"/g $FILE
[ "$PREPOST" = "POST_BUILD" ] && echo "- Removing extra package: $1" >&2 && sed -i -e s/"${AUX}"/"# CONFIG_PACKAGE_$i is not set"/g $FILE
}
done

També disponible a: Unified diff