f933141e890f0a034e2ebda3bc88b4b86d97d0f9
[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:=v1.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_PROTO:=git
16 PKG_MIRROR_HASH:=462fea9bdf03ec4bc23f2f1bb3917c2ec57017eca1e11b8a609bf60cd51a94e7
17 PKG_SOURCE_URL:=https://github.com/fsl-jyt/u-boot.git
18 PKG_SOURCE_VERSION:=69b5ea576a2b0448391a910114d6c05859bf78d0
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 UBOOT_IMAGE:=u-boot-swap.bin
44 endef
45
46 UBOOT_TARGETS := \
47 ls1043ardb \
48 ls1046ardb \
49 ls1012ardb
50
51 define Build/InstallDev
52 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
53 $(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-$(BUILD_SUBTARGET)-uboot.bin
54 endef
55
56 define Package/u-boot/install/default
57 endef
58
59 $(eval $(call BuildPackage/U-Boot))