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:=76b7772d156b3ddd7644c8a1736081e55b78828537ff714065d21dbade229bef
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:=methode_udpu
35 BUILD_SUBTARGET:=cortexa53
42 Build/Exports:=$(Host/Exports)
44 define Build/Configure
45 # enable additional options beyond <device>_defconfig
46 echo CONFIG_NET_RANDOM_ETHADDR=y >> $(PKG_BUILD_DIR)/configs/$(UBOOT_CONFIG)_defconfig
47 echo CONFIG_CMD_SETEXPR=y >> $(PKG_BUILD_DIR)/configs/$(UBOOT_CONFIG)_defconfig
49 $(call Build/Configure/U-Boot)
52 define Build/InstallDev
53 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
54 $(CP) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(UBOOT_IMAGE)
57 $(eval $(call BuildPackage/U-Boot))