layerscape: update u-boot to LSDK-18.06
[openwrt/openwrt.git] / package / boot / uboot-layerscape-armv8_32b / 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-armv8_32b
11 PKG_VERSION:=lsdk-1806
12 PKG_RELEASE:=1
13
14 # Layerscape ARMv8 platforms use 64-bit u-boot to support both 32-bit and 64-bit
15 # kernel/rootfs. Since OpenWrt could only provide 32-bit toolchain for 32-bit targets,
16 # 64-bit u-boot images git tree is provided here whose source code actually is
17 # uboot-layerscape's source code.
18 PKG_SOURCE_PROTO:=git
19 PKG_SOURCE_URL:=https://github.com/yangbolu1991/u-boot-lede.git
20 PKG_SOURCE_VERSION:=a2a01facee0918bf724b4f0aec6746e2f1271519
21 PKG_MIRROR_HASH:=5fcb58c14cdc934793ff315e178ad1d9d2ff55fcaac394b48ec116d1b11ca324
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/uboot-layerscape-armv8_32b/Config
26 define Package/u-boot-$(1)-image
27 SECTION:=boot
28 CATEGORY:=Boot Loaders
29 TITLE:=$(2)
30 DEPENDS:=@TARGET_layerscape_armv8_32b
31 CONFIG:=$(3)
32 endef
33 endef
34
35 define Package/uboot-layerscape-armv8_32b/ls1012ardb
36 TITLE:=U-Boot image for NXP LS1012ARDB
37 CONFIG:=ls1012ardb-uboot.bin
38 endef
39
40 define Package/uboot-layerscape-armv8_32b/ls1012afrdm
41 TITLE:=U-Boot image for NXP LS1012FRDM
42 CONFIG:=ls1012afrdm-uboot.bin
43 endef
44
45 define Package/uboot-layerscape-armv8_32b/ls1043ardb
46 TITLE:=U-Boot image for NXP LS1043ARDB
47 CONFIG:=ls1043ardb-uboot.bin
48 endef
49
50 define Package/uboot-layerscape-armv8_32b/ls1046ardb
51 TITLE:=U-Boot image for NXP LS1046ARDB
52 CONFIG:=ls1046ardb-uboot.bin
53 endef
54
55 define Build/Compile
56 endef
57
58 define Package/uboot-layerscape-armv8_32b/Install
59 define Package/u-boot-$(1)-image/install
60 $(INSTALL_DIR) $(STAGING_DIR_IMAGE)
61 $(CP) $(PKG_BUILD_DIR)/$(CONFIG) $(STAGING_DIR_IMAGE)/
62 endef
63 endef
64
65 UBOOTS := \
66 ls1012ardb \
67 ls1012afrdm \
68 ls1043ardb \
69 ls1046ardb
70
71 $(foreach u,$(UBOOTS), \
72 $(eval $(Package/uboot-layerscape-armv8_32b/$(u))) \
73 $(eval $(call Package/uboot-layerscape-armv8_32b/Config,$(u),$(TITLE),$(CONFIG))) \
74 $(eval $(call Package/uboot-layerscape-armv8_32b/Install,$(u))) \
75 $(eval $(call BuildPackage,u-boot-$(u)-image)) \
76 )