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
:=6.6.23.2.0.0
15 PKG_SOURCE_URL
:=https
://github.com
/nxp-qoriq
/u-boot
16 PKG_SOURCE_VERSION
:=lf-6.6
.23-2.0.0
17 PKG_MIRROR_HASH
:=41e089fde1d0b3b0998e6af33d5f4c2b62860bda6cd1e6a0e8d47dfd5749005d
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
35 define U-Boot
/fsl_ls1012a-rdb
37 UBOOT_CONFIG
:=ls1012ardb_tfa
40 define U-Boot
/fsl_ls1012a-frwy-sdboot
42 UBOOT_CONFIG
:=ls1012afrwy_tfa
45 define U-Boot
/fsl_ls1028a-rdb
47 UBOOT_CONFIG
:=ls1028ardb_tfa
50 define U-Boot
/fsl_ls1028a-rdb-sdboot
51 NAME
:=NXP LS1028ARDB SD Card Boot
52 UBOOT_CONFIG
:=ls1028ardb_tfa
55 define U-Boot
/fsl_ls1043a-rdb
57 UBOOT_CONFIG
:=ls1043ardb_tfa
60 define U-Boot
/fsl_ls1043a-rdb-sdboot
61 NAME
:=NXP LS1043ARDB SD Card Boot
62 UBOOT_CONFIG
:=ls1043ardb_tfa
65 define U-Boot
/fsl_ls1046a-frwy
67 UBOOT_CONFIG
:=ls1046afrwy_tfa
70 define U-Boot
/fsl_ls1046a-frwy-sdboot
71 NAME
:=NXP LS1046AFRWY SD Card Boot
72 UBOOT_CONFIG
:=ls1046afrwy_tfa
75 define U-Boot
/fsl_ls1046a-rdb
77 UBOOT_CONFIG
:=ls1046ardb_tfa
80 define U-Boot
/fsl_ls1046a-rdb-sdboot
81 NAME
:=NXP LS1046ARDB SD Card Boot
82 UBOOT_CONFIG
:=ls1046ardb_tfa
85 define U-Boot
/fsl_ls1088a-rdb
87 UBOOT_CONFIG
:=ls1088ardb_tfa
90 define U-Boot
/fsl_ls1088a-rdb-sdboot
91 NAME
:=NXP LS1088ARDB SD Card Boot
92 UBOOT_CONFIG
:=ls1088ardb_tfa
95 define U-Boot
/fsl_ls2088a-rdb
97 UBOOT_CONFIG
:=ls2088ardb_tfa
100 define U-Boot
/fsl_lx2160a-rdb
102 UBOOT_CONFIG
:=lx2160ardb_tfa
105 define U-Boot
/fsl_lx2160a-rdb-sdboot
106 NAME
:=NXP LX2160ARDB SD Card Boot
107 UBOOT_CONFIG
:=lx2160ardb_tfa
110 define U-Boot
/fsl_ls1021a-twr
112 BUILD_SUBTARGET
:=armv7
113 UBOOT_CONFIG
:=ls1021atwr_nor
117 define U-Boot
/fsl_ls1021a-twr-sdboot
118 NAME
:=NXP LS1021ATWR SD Card Boot
119 BUILD_SUBTARGET
:=armv7
120 UBOOT_CONFIG
:=ls1021atwr_sdcard_ifc
121 UBOOT_IMAGE
:=u-boot-with-spl-pbl.bin
125 define U-Boot
/fsl_ls1021a-iot-sdboot
126 NAME
:=NXP LS1021AIOT SD Card Boot
127 BUILD_SUBTARGET
:=armv7
128 UBOOT_CONFIG
:=ls1021aiot_sdcard
129 UBOOT_IMAGE
:=u-boot-with-spl-pbl.bin
136 fsl_ls1012a-frwy-sdboot \
138 fsl_ls1028a-rdb-sdboot \
140 fsl_ls1043a-rdb-sdboot \
142 fsl_ls1046a-frwy-sdboot \
144 fsl_ls1046a-rdb-sdboot \
146 fsl_ls1088a-rdb-sdboot \
149 fsl_lx2160a-rdb-sdboot \
151 fsl_ls1021a-twr-sdboot \
152 fsl_ls1021a-iot-sdboot
154 define Build
/InstallDev
155 $(INSTALL_DIR
) $(STAGING_DIR_IMAGE
)
156 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/$(UBOOT_IMAGE
) \
157 $(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-uboot.bin
158 $(PKG_BUILD_DIR
)/tools
/mkenvimage
-s
$(ENV_SIZE
) \
159 -o
$(STAGING_DIR_IMAGE
)/$(BUILD_VARIANT
)-uboot-env.bin \
160 files
/$(BUILD_VARIANT
)-uEnv.txt
163 define Package
/u-boot
/install/default
166 $(eval
$(call BuildPackage
/U-Boot
))