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
11 PKG_VERSION
:=lsdk-1903
15 PKG_SOURCE_URL
:=https
://source.codeaurora.org
/external
/qoriq
/qoriq-components
/u-boot
16 PKG_SOURCE_VERSION
:=80b2d2bc4cab0a8363c9b7eba8064b1795f12670
17 PKG_MIRROR_HASH
:=5c467af40b4479f0ea16697ab54602bed815a23212293184943dca8a3a406d5c
19 include $(INCLUDE_DIR
)/u-boot.mk
20 include $(INCLUDE_DIR
)/package.mk
23 BUILD_TARGET
:=layerscape
24 BUILD_SUBTARGET
:=armv8_64b
26 UBOOT_IMAGE
:=u-boot-dtb.bin
30 define U-Boot
/ls1012afrdm
32 UBOOT_CONFIG
:=ls1012afrdm_tfa
36 define U-Boot
/ls1012ardb
38 UBOOT_CONFIG
:=ls1012ardb_tfa
42 define U-Boot
/ls1012afrwy
44 UBOOT_CONFIG
:=ls1012afrwy_tfa
48 define U-Boot
/ls1043ardb
50 UBOOT_CONFIG
:=ls1043ardb_tfa
53 define U-Boot
/ls1043ardb-sdboot
54 NAME
:=NXP LS1043ARDB SD Card Boot
55 UBOOT_CONFIG
:=ls1043ardb_tfa
59 define U-Boot
/ls1046ardb
61 UBOOT_CONFIG
:=ls1046ardb_tfa
64 define U-Boot
/ls1046ardb-sdboot
65 NAME
:=NXP LS1046ARDB SD Card Boot
66 UBOOT_CONFIG
:=ls1046ardb_tfa
70 define U-Boot
/ls1088ardb
72 UBOOT_CONFIG
:=ls1088ardb_tfa
76 define U-Boot
/ls1088ardb-sdboot
77 NAME
:=NXP LS1088ARDB SD Card Boot
78 UBOOT_CONFIG
:=ls1088ardb_tfa
81 define U-Boot
/ls2088ardb
83 UBOOT_CONFIG
:=ls2088ardb_tfa
86 define U-Boot
/ls1021atwr
88 BUILD_SUBTARGET
:=armv7
89 UBOOT_CONFIG
:=ls1021atwr_nor
93 define U-Boot
/ls1021atwr-sdboot
94 NAME
:=NXP LS1021ATWR SD Card Boot
95 BUILD_SUBTARGET
:=armv7
96 UBOOT_CONFIG
:=ls1021atwr_sdcard_ifc
97 UBOOT_IMAGE
:=u-boot-with-spl-pbl.bin
101 define U-Boot
/ls1021aiot-sdboot
102 NAME
:=NXP LS1021AIOT SD Card Boot
103 BUILD_SUBTARGET
:=armv7
104 UBOOT_CONFIG
:=ls1021aiot_sdcard
105 UBOOT_IMAGE
:=u-boot-with-spl-pbl.bin
125 define Build
/InstallDev
126 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
127 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(UBOOT_IMAGE
) \
128 $(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-uboot.bin
129 $(PKG_BUILD_DIR
)/tools
/mkenvimage
-s
$(ENV_SIZE
) \
130 -o
$(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-uboot-env.bin \
131 files
/$(BUILD_VARIANT
)-uEnv.txt
134 define Package
/u-boot
/install/default
137 $(eval
$(call BuildPackage
/U-Boot
))