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
12 PKG_RELEASE
:=$(AUTORELEASE
)
14 PKG_HASH
:=cde723e19262e646f2670d25e5ec4b1b368490de950d4e26275a988c36df0bd4
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 define Build
/Configure
57 # enable additional options beyond <device>_defconfig
58 echo CONFIG_CMD_SETEXPR
=y
>> $(PKG_BUILD_DIR
)/configs
/$(UBOOT_CONFIG
)_defconfig
60 $(call Build
/Configure
/U-Boot
)
63 define Package
/u-boot
/install
64 $(if
$(findstring cortexa53
,$(BUILD_SUBTARGET
)),,$(Package
/u-boot
/install/default
))
67 define Build
/InstallDev
68 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
69 $(CP
) $(PKG_BUILD_DIR
)/$(UBOOT_IMAGE
) $(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-$(UBOOT_IMAGE
)
72 $(eval
$(call BuildPackage
/U-Boot
))