3 Star 9 Fork 7

Embedfire/ebf-image-builder

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
猪加索 提交于 2021-05-12 09:51 . merge stm32mp157
all:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(FIRE_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
@./scripts/create_image.sh
endif
define help_message
@echo "You should setup environment first."
@echo "Run 'source env/setenv.sh' to setup environment."
endef
kernel:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(FIRE_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
@./scripts/build.sh linux
endif
uboot:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(FIRE_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
@./scripts/build.sh u-boot
endif
kernel-deb:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(FIRE_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
@./scripts/build.sh linux-deb
endif
tfa:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(FIRE_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
@./scripts/build.sh tfa
endif
info:
@echo ""
@echo "Current environment:"
@echo "==========================================="
@echo
@echo "#FIRE_BOARD=${FIRE_BOARD}"
@echo "#LINUX=${LINUX}"
@echo "#UBOOT=${UBOOT}"
@echo "#DISTRIBUTION=${DISTRIBUTION}"
@echo "#DISTRIB_RELEASE=${DISTRIB_RELEASE}"
@echo "#DISTRIB_TYPE=${DISTRIB_TYPE}"
@echo "#INSTALL_TYPE=${INSTALL_TYPE}"
@echo
@echo "==========================================="
@echo ""
help:
@echo ""
@echo "fire scripts help messages:"
@echo ""
@echo "TARGET:"
@echo " info - Display current environment."
@echo " all - Create image according to environment."
@echo " uboot - Build u-boot."
@echo " kernel - Build linux kernel."
@echo " kernel-deb - Build linux kernel."
@echo ""
@echo "OPTIONS:"
@echo " DOWNLOAD_MIRROR=china - Improve download speed for Chinese users."
@echo " FORCE_UPDATE=enable - Force everything to recompile."
@echo ""
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Embedfire/ebf-image-builder.git
git@gitee.com:Embedfire/ebf-image-builder.git
Embedfire
ebf-image-builder
ebf-image-builder
master

搜索帮助