2 # Copyright (C) 2016 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
14 PKG_HASH
:=b407e1510a74e863b8b5cb42a24625344f0e0c2fc7582d8c866bd899367d0454
16 include $(INCLUDE_DIR
)/u-boot.mk
17 include $(INCLUDE_DIR
)/package.mk
18 include $(INCLUDE_DIR
)/host-build.mk
25 define U-Boot
/clearfog
26 NAME
:=SolidRun ClearFog A1
27 BUILD_DEVICES
:=solidrun_clearfog-base-a1 solidrun_clearfog-pro-a1
28 BUILD_SUBTARGET
:=cortexa9
29 UBOOT_IMAGE
:=u-boot-spl.kwb
34 BUILD_DEVICES
:=kobol_helios4
35 BUILD_SUBTARGET
:=cortexa9
36 UBOOT_IMAGE
:=u-boot-spl.kwb
39 define U-Boot
/espressobin
40 NAME
:=Marvell ESPRESSObin
41 BUILD_SUBTARGET
:=cortexa53
42 UBOOT_CONFIG
:=mvebu_espressobin-88f3720
47 BUILD_SUBTARGET
:=cortexa53
56 Build
/Exports
:=$(Host
/Exports
)
58 define Build
/Configure
59 # enable additional options beyond <device>_defconfig
60 echo CONFIG_CMD_SETEXPR
=y
>> $(PKG_BUILD_DIR
)/configs
/$(UBOOT_CONFIG
)_defconfig
62 $(call Build
/Configure
/U-Boot
)
65 define Package
/u-boot
/install
66 $(if
$(findstring cortexa53
,$(BUILD_SUBTARGET
)),,$(Package
/u-boot
/install/default
))
69 define Build
/InstallDev
70 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
71 $(CP
) $(PKG_BUILD_DIR
)/$(UBOOT_IMAGE
) $(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-$(UBOOT_IMAGE
)
74 $(eval
$(call BuildPackage
/U-Boot
))