2 # Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
10 PKG_NAME
:=uboot-layerscape-armv8_32b
11 PKG_VERSION
:=lsdk-1806
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.
19 PKG_SOURCE_URL
:=https
://github.com
/yangbolu1991
/u-boot-lede.git
20 PKG_SOURCE_VERSION
:=a2a01facee0918bf724b4f0aec6746e2f1271519
21 PKG_MIRROR_HASH
:=5fcb58c14cdc934793ff315e178ad1d9d2ff55fcaac394b48ec116d1b11ca324
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/uboot-layerscape-armv8_32b
/Config
26 define Package
/u-boot-
$(1)-image
28 CATEGORY
:=Boot Loaders
30 DEPENDS
:=@TARGET_layerscape_armv8_32b
35 define Package
/uboot-layerscape-armv8_32b
/ls1012ardb
36 TITLE
:=U-Boot image for NXP LS1012ARDB
37 CONFIG
:=ls1012ardb-uboot.bin
40 define Package
/uboot-layerscape-armv8_32b
/ls1012afrdm
41 TITLE
:=U-Boot image for NXP LS1012FRDM
42 CONFIG
:=ls1012afrdm-uboot.bin
45 define Package
/uboot-layerscape-armv8_32b
/ls1043ardb
46 TITLE
:=U-Boot image for NXP LS1043ARDB
47 CONFIG
:=ls1043ardb-uboot.bin
50 define Package
/uboot-layerscape-armv8_32b
/ls1046ardb
51 TITLE
:=U-Boot image for NXP LS1046ARDB
52 CONFIG
:=ls1046ardb-uboot.bin
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
)/
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
)) \