c37b335b49a25595c430db764c92ae8bc65798f4
[openwrt/openwrt.git] / package / boot / uboot-layerscape / Makefile
1 #
2 # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
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_NAME:=uboot-layerscape
12 PKG_SOURCE_DATE:=2017-08-24
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_URL:=https://github.com/qoriq-open-source/u-boot.git
17 PKG_SOURCE_VERSION:=fbedf04c1bad675eadbac86febdcf759441a02af
18 PKG_MIRROR_HASH:=29922f83ce3e8dde163eafcfd07f3595e2779b7a3e8eb43640f058f58248718d
19
20 include $(INCLUDE_DIR)/u-boot.mk
21 include $(INCLUDE_DIR)/package.mk
22
23 define U-Boot/Default
24 BUILD_TARGET:=layerscape
25 BUILD_SUBTARGET:=armv8_64b
26 BUILD_DEVICES:=$(1)
27 UBOOT_IMAGE:=u-boot-dtb.bin
28 HIDDEN:=y
29 endef
30
31 define U-Boot/ls1043ardb
32 NAME:=NXP ls1043ardb 64b Dev Board
33 endef
34
35 define U-Boot/ls1046ardb
36 NAME:=NXP ls1046ardb 64b Dev Board
37 UBOOT_CONFIG:=ls1046ardb_qspi
38 endef
39
40 define U-Boot/ls1012ardb
41 NAME:=NXP ls1012ardb 64b Dev Board
42 UBOOT_CONFIG:=ls1012ardb_qspi
43 endef
44
45 define U-Boot/ls1088ardb
46 NAME:=NXP ls1088ardb 64b Dev Board
47 UBOOT_CONFIG:=ls1088ardb_qspi
48 endef
49
50 define U-Boot/ls2088ardb
51 NAME:=NXP ls2088ardb 64b Dev Board
52 UBOOT_CONFIG:=ls2080ardb
53 endef
54
55 define U-Boot/ls1012afrdm
56 NAME:=NXP ls1012afrdm 64b Dev Board
57 UBOOT_CONFIG:=ls1012afrdm_qspi
58 endef
59
60 UBOOT_TARGETS := \
61 ls1043ardb \
62 ls1046ardb \
63 ls1012ardb \
64 ls1088ardb \
65 ls2088ardb \
66 ls1012afrdm
67
68 define Build/InstallDev
69 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
70 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(BUILD_SUBTARGET)-uboot.bin
71 endef
72
73 define Package/u-boot/install/default
74 endef
75
76 $(eval $(call BuildPackage/U-Boot))