1 Star 0 Fork 0

MrVW/fenix

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 4.02 KB
一键复制 编辑 原始数据 按行查看 历史
numbqq 提交于 2020-06-29 11:42 . Makefile: uboot-deb depends on kernle dtb
IMAGES_DIR=images
all:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_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
release:
./scripts/image release
image:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
@echo "This script requires root privileges, trying to use sudo, please enter your passowrd!"
sudo -E ./scripts/make_image.sh
endif
kernel:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh linux
endif
uboot:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh u-boot
endif
debs: uboot kernel
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh debs
endif
uboot-deb: uboot kernel
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh uboot-deb
endif
kernel-deb: kernel
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh linux-deb
endif
board-deb:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh board-deb
endif
gpu-deb:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh gpu-deb
endif
desktop-deb:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh desktop-deb
endif
common-deb:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh common-deb
endif
updater-deb:
ifeq ($(and $(DISTRIBUTION),$(DISTRIB_RELEASE),$(DISTRIB_TYPE),$(DISTRIB_ARCH),$(KHADAS_BOARD),$(LINUX),$(UBOOT),$(INSTALL_TYPE)),)
$(call help_message)
else
./scripts/build.sh updater-deb
endif
info:
@echo ""
@echo "Version: ${VERSION}"
@echo "Current environment:"
@echo "==========================================="
@echo
@echo "#KHADAS_BOARD=${KHADAS_BOARD}"
@echo "#VENDOR=${VENDOR}"
@echo "#CHIP=${CHIP}"
@echo "#LINUX=${LINUX}"
@echo "#UBOOT=${UBOOT}"
@echo "#DISTRIBUTION=${DISTRIBUTION}"
@echo "#DISTRIB_RELEASE=${DISTRIB_RELEASE}"
@echo "#DISTRIB_TYPE=${DISTRIB_TYPE}"
@echo "#DISTRIB_ARCH=${DISTRIB_ARCH}"
@echo "#INSTALL_TYPE=${INSTALL_TYPE}"
@echo
@echo "==========================================="
@echo ""
help:
@echo "Fenix scripts help messages:"
@echo " all - Create image according to environment."
@echo " kernel - Build linux kernel."
@echo " uboot - Build u-boot."
@echo " uboot-deb - Build u-boot debian package."
@echo " kernel-deb - Build linux debian package."
@echo " board-deb - Build board debian package."
@echo " common-deb - Build common debian package."
@echo " desktop-deb - Build desktop debian package."
@echo " gpu-deb - Build gpu debian package."
@echo " debs - Build all debian packages."
@echo " image - Pack update image."
@echo " clean - Cleanup."
@echo " info - Display current environment."
clean:
./scripts/clean.sh
## Refs
# Buildroot
# Android repo
# LibreELEC
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/MrVW/fenix.git
git@gitee.com:MrVW/fenix.git
MrVW
fenix
fenix
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385