3005e45c46ace5b271d518ce7e1467a6b7ca302c
[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:=2018.03
12 PKG_RELEASE:=1
13
14 PKG_HASH:=7e7477534409d5368eb1371ffde6820f0f79780a1a1f676161c48442cb303dfd
15
16 include $(INCLUDE_DIR)/u-boot.mk
17 include $(INCLUDE_DIR)/package.mk
18
19 define U-Boot/Default
20 BUILD_TARGET:=mvebu
21 HIDDEN:=1
22 endef
23
24 define U-Boot/clearfog
25 NAME:=SolidRun ClearFog A1
26 BUILD_DEVICES:=armada-388-clearfog-base armada-388-clearfog-pro
27 BUILD_SUBTARGET:=cortexa9
28 UBOOT_IMAGE:=u-boot-spl.kwb
29 endef
30
31 UBOOT_TARGETS:= \
32 clearfog
33
34 define Build/Configure
35 # enable additional options beyond clearfog_defconfig
36 echo CONFIG_NET_RANDOM_ETHADDR=y >> $(PKG_BUILD_DIR)/configs/$(BUILD_VARIANT)_defconfig
37 echo CONFIG_CMD_SETEXPR=y >> $(PKG_BUILD_DIR)/configs/$(BUILD_VARIANT)_defconfig
38
39 +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) $(UBOOT_CONFIGURE_VARS) $(UBOOT_CONFIG)_config
40 endef
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
44 $(CP) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-u-boot-spl.kwb
45 endef
46
47 $(eval $(call BuildPackage/U-Boot))