xref: /OK3568_Linux_fs/buildroot/boot/s500-bootloader/s500-bootloader.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# s500-bootloader
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunS500_BOOTLOADER_VERSION = a8d7fa1d9a7f353ec4613febf30f4ca99a10a106
8*4882a593SmuzhiyunS500_BOOTLOADER_SITE = $(call github,xapp-le,owl,$(S500_BOOTLOADER_VERSION))
9*4882a593SmuzhiyunS500_BOOTLOADER_LICENSE = PROPRIETARY
10*4882a593SmuzhiyunS500_BOOTLOADER_INSTALL_TARGET = NO
11*4882a593SmuzhiyunS500_BOOTLOADER_INSTALL_IMAGES = YES
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunS500_BOOTLOADER_BOARD = $(call qstrip,$(BR2_TARGET_S500_BOOTLOADER_BOARD))
14*4882a593Smuzhiyun
15*4882a593Smuzhiyundefine S500_BOOTLOADER_BUILD_CMDS
16*4882a593Smuzhiyun	cd $(@D) && ./tools/utils/bootloader_pack \
17*4882a593Smuzhiyun		s500/bootloader/bootloader.bin \
18*4882a593Smuzhiyun		s500/boards/$(S500_BOOTLOADER_BOARD)/bootloader.ini \
19*4882a593Smuzhiyun		s500-bootloader.bin
20*4882a593Smuzhiyunendef
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundefine S500_BOOTLOADER_INSTALL_IMAGES_CMDS
23*4882a593Smuzhiyun	$(INSTALL) -m 0644 -D $(@D)/s500-bootloader.bin \
24*4882a593Smuzhiyun		$(BINARIES_DIR)/s500-bootloader.bin
25*4882a593Smuzhiyunendef
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun$(eval $(generic-package))
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunifeq ($(BR2_TARGET_S500_BOOTLOADER)$(BR_BUILDING),yy)
30*4882a593Smuzhiyun# we NEED a board name
31*4882a593Smuzhiyunifeq ($(S500_BOOTLOADER_BOARD),)
32*4882a593Smuzhiyun$(error No s500-bootloader board specified. Check your BR2_TARGET_S500_BOOTLOADER settings)
33*4882a593Smuzhiyunendif
34*4882a593Smuzhiyunendif
35