ce390cc6b40f99b55ed1694fe9c306cf55a6f125
[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_VERSION:=2017.09
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:=503eff00a7119d2690a662ed64e83e4782b7d3d9
18 PKG_MIRROR_HASH:=67dbf765b91a5f181e693bd87b6e9521ffeec163c7c037f71b19b3d8715dc32a
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 UBOOT_TARGETS := \
56 ls1043ardb \
57 ls1046ardb \
58 ls1012ardb \
59 ls1088ardb \
60 ls2088ardb
61
62 define Build/InstallDev
63 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
64 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(BUILD_SUBTARGET)-uboot.bin
65 endef
66
67 define Package/u-boot/install/default
68 endef
69
70 $(eval $(call BuildPackage/U-Boot))