9e4079e38614fb7c3bc5002de1a2c26fdec1aed3
[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
10 PKG_NAME:=uboot-layerscape
11 PKG_VERSION:=lsdk-1806
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_PROTO:=git
15 PKG_SOURCE_URL:=https://source.codeaurora.org/external/qoriq/qoriq-components/u-boot
16 PKG_SOURCE_VERSION:=b3f98d438eefd1b355efdec0b50af5813ff8d0e1
17 PKG_MIRROR_HASH:=59e35957055658e7fdefb16b92f954356985a8191942d93f254861c75c47b32b
18
19 include $(INCLUDE_DIR)/u-boot.mk
20 include $(INCLUDE_DIR)/package.mk
21
22 define U-Boot/Default
23 BUILD_TARGET:=layerscape
24 BUILD_SUBTARGET:=armv8_64b
25 BUILD_DEVICES:=$(1)
26 UBOOT_IMAGE:=u-boot-dtb.bin
27 endef
28
29 define U-Boot/ls1012ardb
30 NAME:=NXP LS1012ARDB
31 UBOOT_CONFIG:=ls1012ardb_qspi
32 endef
33
34 define U-Boot/ls1012afrdm
35 NAME:=NXP LS1012AFRDM
36 UBOOT_CONFIG:=ls1012afrdm_qspi
37 endef
38
39 define U-Boot/ls1043ardb
40 NAME:=NXP LS1043ARDB
41 endef
42
43 define U-Boot/ls1046ardb
44 NAME:=NXP LS1046ARDB
45 UBOOT_CONFIG:=ls1046ardb_qspi
46 endef
47
48 define U-Boot/ls1088ardb
49 NAME:=NXP LS1088ARDB
50 UBOOT_CONFIG:=ls1088ardb_qspi
51 endef
52
53 define U-Boot/ls2088ardb
54 NAME:=NXP LS2088ARDB
55 UBOOT_CONFIG:=ls2080ardb
56 endef
57
58 UBOOT_TARGETS := \
59 ls1012ardb \
60 ls1012afrdm \
61 ls1043ardb \
62 ls1046ardb \
63 ls1088ardb \
64 ls2088ardb
65
66 define Build/InstallDev
67 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
68 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) \
69 $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot.bin
70 endef
71
72 define Package/u-boot/install/default
73 endef
74
75 $(eval $(call BuildPackage/U-Boot))