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
36 define Package
/uboot-layerscape-armv8_32b
/ls1012ardb
37 TITLE
:=U-Boot image for NXP LS1012ARDB
38 CONFIG
:=ls1012ardb-uboot.bin
42 define Package
/uboot-layerscape-armv8_32b
/ls1012afrdm
43 TITLE
:=U-Boot image for NXP LS1012FRDM
44 CONFIG
:=ls1012afrdm-uboot.bin
48 define Package
/uboot-layerscape-armv8_32b
/ls1043ardb
49 TITLE
:=U-Boot image for NXP LS1043ARDB
50 CONFIG
:=ls1043ardb-uboot.bin
54 define Package
/uboot-layerscape-armv8_32b
/ls1046ardb
55 TITLE
:=U-Boot image for NXP LS1046ARDB
56 CONFIG
:=ls1046ardb-uboot.bin
63 define Package
/uboot-layerscape-armv8_32b
/Install
64 define Package
/u-boot-
$(1)-image
/install
65 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
66 $(CP
) $(PKG_BUILD_DIR
)/$(CONFIG
) $(STAGING_DIR_IMAGE
)/
67 $(PKG_BUILD_DIR
)/tools
/mkenvimage
-s
$(ENV_SIZE
) \
68 -o
$(STAGING_DIR_IMAGE
)/$(1)-uboot-env.bin \
69 ..
/uboot-layerscape
/files
/$(1)-uEnv.txt
79 $(foreach u
,$(UBOOTS
), \
80 $(eval
$(Package
/uboot-layerscape-armv8_32b
/$(u
))) \
81 $(eval
$(call Package
/uboot-layerscape-armv8_32b
/Config
,$(u
),$(TITLE
),$(CONFIG
),$(ENV_SIZE
))) \
82 $(eval
$(call Package
/uboot-layerscape-armv8_32b
/Install
,$(u
))) \
83 $(eval
$(call BuildPackage
,u-boot-
$(u
)-image
)) \