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
:=lf-6.1
.1-1.0.0
15 PKG_SOURCE_URL
:=https
://github.com
/nxp-qoriq
/u-boot
16 PKG_SOURCE_VERSION
:=lf-6.1
.1-1.0.0
17 PKG_MIRROR_HASH
:=f4a3a262fd8923af72dede0348a512c05b756e3925279553eaf1c6667b186fb4
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
/fsl_ls1012a-frdm
32 UBOOT_CONFIG
:=ls1012afrdm_tfa
36 define U-Boot
/fsl_ls1012a-rdb
38 UBOOT_CONFIG
:=ls1012ardb_tfa
42 define U-Boot
/fsl_ls1012a-frwy-sdboot
44 UBOOT_CONFIG
:=ls1012afrwy_tfa
48 define U-Boot
/fsl_ls1028a-rdb
50 UBOOT_CONFIG
:=ls1028ardb_tfa
53 define U-Boot
/fsl_ls1028a-rdb-sdboot
54 NAME
:=NXP LS1028ARDB SD Card Boot
55 UBOOT_CONFIG
:=ls1028ardb_tfa
58 define U-Boot
/fsl_ls1043a-rdb
60 UBOOT_CONFIG
:=ls1043ardb_tfa
63 define U-Boot
/fsl_ls1043a-rdb-sdboot
64 NAME
:=NXP LS1043ARDB SD Card Boot
65 UBOOT_CONFIG
:=ls1043ardb_tfa
68 define U-Boot
/fsl_ls1046a-frwy
70 UBOOT_CONFIG
:=ls1046afrwy_tfa
73 define U-Boot
/fsl_ls1046a-frwy-sdboot
74 NAME
:=NXP LS1046AFRWY SD Card Boot
75 UBOOT_CONFIG
:=ls1046afrwy_tfa
78 define U-Boot
/fsl_ls1046a-rdb
80 UBOOT_CONFIG
:=ls1046ardb_tfa
83 define U-Boot
/fsl_ls1046a-rdb-sdboot
84 NAME
:=NXP LS1046ARDB SD Card Boot
85 UBOOT_CONFIG
:=ls1046ardb_tfa
88 define U-Boot
/fsl_ls1088a-rdb
90 UBOOT_CONFIG
:=ls1088ardb_tfa
93 define U-Boot
/fsl_ls1088a-rdb-sdboot
94 NAME
:=NXP LS1088ARDB SD Card Boot
95 UBOOT_CONFIG
:=ls1088ardb_tfa
98 define U-Boot
/fsl_ls2088a-rdb
100 UBOOT_CONFIG
:=ls2088ardb_tfa
103 define U-Boot
/fsl_lx2160a-rdb
105 UBOOT_CONFIG
:=lx2160ardb_tfa
108 define U-Boot
/fsl_lx2160a-rdb-sdboot
109 NAME
:=NXP LX2160ARDB SD Card Boot
110 UBOOT_CONFIG
:=lx2160ardb_tfa
113 define U-Boot
/fsl_ls1021a-twr
115 BUILD_SUBTARGET
:=armv7
116 UBOOT_CONFIG
:=ls1021atwr_nor
120 define U-Boot
/fsl_ls1021a-twr-sdboot
121 NAME
:=NXP LS1021ATWR SD Card Boot
122 BUILD_SUBTARGET
:=armv7
123 UBOOT_CONFIG
:=ls1021atwr_sdcard_ifc
124 UBOOT_IMAGE
:=u-boot-with-spl-pbl.bin
128 define U-Boot
/fsl_ls1021a-iot-sdboot
129 NAME
:=NXP LS1021AIOT SD Card Boot
130 BUILD_SUBTARGET
:=armv7
131 UBOOT_CONFIG
:=ls1021aiot_sdcard
132 UBOOT_IMAGE
:=u-boot-with-spl-pbl.bin
139 fsl_ls1012a-frwy-sdboot \
141 fsl_ls1028a-rdb-sdboot \
143 fsl_ls1043a-rdb-sdboot \
145 fsl_ls1046a-frwy-sdboot \
147 fsl_ls1046a-rdb-sdboot \
149 fsl_ls1088a-rdb-sdboot \
152 fsl_lx2160a-rdb-sdboot \
154 fsl_ls1021a-twr-sdboot \
155 fsl_ls1021a-iot-sdboot
157 define Build
/InstallDev
158 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
159 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(UBOOT_IMAGE
) \
160 $(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-uboot.bin
161 $(PKG_BUILD_DIR
)/tools
/mkenvimage
-s
$(ENV_SIZE
) \
162 -o
$(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-uboot-env.bin \
163 files
/$(BUILD_VARIANT
)-uEnv.txt
166 define Package
/u-boot
/install/default
169 $(eval
$(call BuildPackage
/U-Boot
))