at91/image/sama5.mk: check for sama5d4_xplained device
[openwrt/openwrt.git] / package / boot / uboot-mvebu / Makefile
1 #
2 # Copyright (C) 2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
10
11 PKG_VERSION:=2019.04
12 PKG_RELEASE:=1
13
14 PKG_HASH:=76b7772d156b3ddd7644c8a1736081e55b78828537ff714065d21dbade229bef
15
16 include $(INCLUDE_DIR)/u-boot.mk
17 include $(INCLUDE_DIR)/package.mk
18 include $(INCLUDE_DIR)/host-build.mk
19
20 define U-Boot/Default
21 BUILD_TARGET:=mvebu
22 HIDDEN:=1
23 endef
24
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
30 endef
31
32 UBOOT_TARGETS:= \
33 clearfog
34
35 Build/Exports:=$(Host/Exports)
36
37 define Build/Configure
38 # enable additional options beyond clearfog_defconfig
39 echo CONFIG_NET_RANDOM_ETHADDR=y >> $(PKG_BUILD_DIR)/configs/$(BUILD_VARIANT)_defconfig
40 echo CONFIG_CMD_SETEXPR=y >> $(PKG_BUILD_DIR)/configs/$(BUILD_VARIANT)_defconfig
41
42 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIGURE_VARS) $(UBOOT_CONFIG)_config
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
47 $(CP) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-u-boot-spl.kwb
48 endef
49
50 $(eval $(call BuildPackage/U-Boot))