2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2013-05-26 20:08:22 +08:00
|
|
|
#
|
|
|
|
# sunxi-boards
|
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2013-05-26 20:08:22 +08:00
|
|
|
|
2013-09-18 15:40:58 +08:00
|
|
|
SUNXI_BOARDS_VERSION = 25a868189dbaa40872b2ac7d8a941dd73972eb08
|
2013-12-06 01:20:46 +08:00
|
|
|
SUNXI_BOARDS_SITE = $(call github,linux-sunxi,sunxi-boards,$(SUNXI_BOARDS_VERSION))
|
2013-05-26 20:08:22 +08:00
|
|
|
SUNXI_BOARDS_DEPENDENCIES = host-sunxi-tools
|
|
|
|
SUNXI_BOARDS_INSTALL_IMAGES = YES
|
|
|
|
SUNXI_BOARDS_INSTALL_TARGET = NO
|
|
|
|
SUNXI_BOARDS_FEX_FILE = $(call qstrip,$(BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE))
|
|
|
|
|
|
|
|
define SUNXI_BOARDS_INSTALL_IMAGES_CMDS
|
|
|
|
$(FEX2BIN) $(@D)/sys_config/$(SUNXI_BOARDS_FEX_FILE) \
|
|
|
|
$(BINARIES_DIR)/script.bin
|
|
|
|
endef
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SUNXI_BOARDS),y)
|
|
|
|
# we NEED a board name
|
|
|
|
ifeq ($(filter source,$(MAKECMDGOALS)),)
|
|
|
|
ifeq ($(SUNXI_BOARDS_FEX_FILE),)
|
|
|
|
$(error No sunxi .fex file specified. Check your BR2_PACKAGE_SUNXI_BOARDS_FEX_FILE settings)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|