代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。