7c4d983628
This is the first level bootloader for the Actions Semiconductor S500 SoC, which is used on boards like Roseapple Pi and LeMaker Guitar. The bootloader performs basic configuration and chain loads u-boot for futher setup. This bootloader is unfortunately only available as a binary blob. It gets configured for a specific board using a binary (32bit x86) tool based on a .ini file (somewhat similar to sunxi .fex). Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# s500-bootloader
|
|
#
|
|
################################################################################
|
|
|
|
S500_BOOTLOADER_VERSION = a8d7fa1d9a7f353ec4613febf30f4ca99a10a106
|
|
S500_BOOTLOADER_SITE = $(call github,xapp-le,owl,$(S500_BOOTLOADER_VERSION))
|
|
S500_BOOTLOADER_LICENSE = PROPRIETARY
|
|
S500_BOOTLOADER_INSTALL_TARGET = NO
|
|
S500_BOOTLOADER_INSTALL_IMAGES = YES
|
|
|
|
S500_BOOTLOADER_BOARD = $(call qstrip,$(BR2_TARGET_S500_BOOTLOADER_BOARD))
|
|
|
|
define S500_BOOTLOADER_BUILD_CMDS
|
|
cd $(@D) && ./tools/utils/bootloader_pack \
|
|
s500/bootloader/bootloader.bin \
|
|
s500/boards/$(S500_BOOTLOADER_BOARD)/bootloader.ini \
|
|
s500-bootloader.bin
|
|
endef
|
|
|
|
define S500_BOOTLOADER_INSTALL_IMAGES_CMDS
|
|
$(INSTALL) -m 0644 -D $(@D)/s500-bootloader.bin \
|
|
$(BINARIES_DIR)/s500-bootloader.bin
|
|
endef
|
|
|
|
$(eval $(generic-package))
|
|
|
|
ifeq ($(BR2_TARGET_S500_BOOTLOADER)$(BR_BUILDING),yy)
|
|
# we NEED a board name
|
|
ifeq ($(S500_BOOTLOADER_BOARD),)
|
|
$(error No s500-bootloader board specified. Check your BR2_TARGET_S500_BOOTLOADER settings)
|
|
endif
|
|
endif
|