Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | inherit kernel-uboot |
| 2 | |
| 3 | python __anonymous () { |
He Zhe | fe76b1e | 2016-05-25 04:47:16 -0400 | [diff] [blame] | 4 | kerneltypes = d.getVar('KERNEL_IMAGETYPES', True) or "" |
| 5 | if 'fitImage' in kerneltypes.split(): |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | depends = d.getVar("DEPENDS", True) |
| 7 | depends = "%s u-boot-mkimage-native dtc-native" % depends |
| 8 | d.setVar("DEPENDS", depends) |
| 9 | |
| 10 | # Override KERNEL_IMAGETYPE_FOR_MAKE variable, which is internal |
| 11 | # to kernel.bbclass . We have to override it, since we pack zImage |
| 12 | # (at least for now) into the fitImage . |
He Zhe | fe76b1e | 2016-05-25 04:47:16 -0400 | [diff] [blame] | 13 | typeformake = d.getVar("KERNEL_IMAGETYPE_FOR_MAKE", True) or "" |
| 14 | if 'fitImage' in typeformake.split(): |
| 15 | d.setVar('KERNEL_IMAGETYPE_FOR_MAKE', typeformake.replace('fitImage', 'zImage')) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
| 17 | image = d.getVar('INITRAMFS_IMAGE', True) |
| 18 | if image: |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 19 | d.appendVarFlag('do_assemble_fitimage_initramfs', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') |
| 20 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | } |
| 22 | |
Yannick Gicquel | d5813b4 | 2016-04-27 16:20:55 +0200 | [diff] [blame] | 23 | # Options for the device tree compiler passed to mkimage '-D' feature: |
| 24 | UBOOT_MKIMAGE_DTCOPTS ??= "" |
| 25 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | # |
| 27 | # Emit the fitImage ITS header |
| 28 | # |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 29 | # $1 ... .its filename |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 30 | fitimage_emit_fit_header() { |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 31 | cat << EOF >> ${1} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | /dts-v1/; |
| 33 | |
| 34 | / { |
| 35 | description = "U-Boot fitImage for ${DISTRO_NAME}/${PV}/${MACHINE}"; |
| 36 | #address-cells = <1>; |
| 37 | EOF |
| 38 | } |
| 39 | |
| 40 | # |
| 41 | # Emit the fitImage section bits |
| 42 | # |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 43 | # $1 ... .its filename |
| 44 | # $2 ... Section bit type: imagestart - image section start |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 45 | # confstart - configuration section start |
| 46 | # sectend - section end |
| 47 | # fitend - fitimage end |
| 48 | # |
| 49 | fitimage_emit_section_maint() { |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 50 | case $2 in |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 51 | imagestart) |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 52 | cat << EOF >> ${1} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | |
| 54 | images { |
| 55 | EOF |
| 56 | ;; |
| 57 | confstart) |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 58 | cat << EOF >> ${1} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 59 | |
| 60 | configurations { |
| 61 | EOF |
| 62 | ;; |
| 63 | sectend) |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 64 | cat << EOF >> ${1} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 65 | }; |
| 66 | EOF |
| 67 | ;; |
| 68 | fitend) |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 69 | cat << EOF >> ${1} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 70 | }; |
| 71 | EOF |
| 72 | ;; |
| 73 | esac |
| 74 | } |
| 75 | |
| 76 | # |
| 77 | # Emit the fitImage ITS kernel section |
| 78 | # |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 79 | # $1 ... .its filename |
| 80 | # $2 ... Image counter |
| 81 | # $3 ... Path to kernel image |
| 82 | # $4 ... Compression type |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 83 | fitimage_emit_section_kernel() { |
| 84 | |
| 85 | kernel_csum="sha1" |
| 86 | |
| 87 | ENTRYPOINT=${UBOOT_ENTRYPOINT} |
| 88 | if test -n "${UBOOT_ENTRYSYMBOL}"; then |
| 89 | ENTRYPOINT=`${HOST_PREFIX}nm ${S}/vmlinux | \ |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 90 | awk '$4=="${UBOOT_ENTRYSYMBOL}" {print $2}'` |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 91 | fi |
| 92 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 93 | cat << EOF >> ${1} |
| 94 | kernel@${2} { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 95 | description = "Linux kernel"; |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 96 | data = /incbin/("${3}"); |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 97 | type = "kernel"; |
| 98 | arch = "${UBOOT_ARCH}"; |
| 99 | os = "linux"; |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 100 | compression = "${4}"; |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 101 | load = <${UBOOT_LOADADDRESS}>; |
| 102 | entry = <${ENTRYPOINT}>; |
| 103 | hash@1 { |
| 104 | algo = "${kernel_csum}"; |
| 105 | }; |
| 106 | }; |
| 107 | EOF |
| 108 | } |
| 109 | |
| 110 | # |
| 111 | # Emit the fitImage ITS DTB section |
| 112 | # |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 113 | # $1 ... .its filename |
| 114 | # $2 ... Image counter |
| 115 | # $3 ... Path to DTB image |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 116 | fitimage_emit_section_dtb() { |
| 117 | |
| 118 | dtb_csum="sha1" |
| 119 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 120 | cat << EOF >> ${1} |
| 121 | fdt@${2} { |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 122 | description = "Flattened Device Tree blob"; |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 123 | data = /incbin/("${3}"); |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 124 | type = "flat_dt"; |
| 125 | arch = "${UBOOT_ARCH}"; |
| 126 | compression = "none"; |
| 127 | hash@1 { |
| 128 | algo = "${dtb_csum}"; |
| 129 | }; |
| 130 | }; |
| 131 | EOF |
| 132 | } |
| 133 | |
| 134 | # |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 135 | # Emit the fitImage ITS ramdisk section |
| 136 | # |
| 137 | # $1 ... .its filename |
| 138 | # $2 ... Image counter |
| 139 | # $3 ... Path to ramdisk image |
| 140 | fitimage_emit_section_ramdisk() { |
| 141 | |
| 142 | ramdisk_csum="sha1" |
Nathan Rossi | b4a4dc0 | 2016-10-21 22:07:27 +1000 | [diff] [blame] | 143 | ramdisk_loadline="" |
| 144 | ramdisk_entryline="" |
| 145 | |
| 146 | if [ -n "${UBOOT_RD_LOADADDRESS}" ]; then |
| 147 | ramdisk_loadline="load = <${UBOOT_RD_LOADADDRESS}>;" |
| 148 | fi |
| 149 | if [ -n "${UBOOT_RD_ENTRYPOINT}" ]; then |
| 150 | ramdisk_entryline="entry = <${UBOOT_RD_ENTRYPOINT}>;" |
| 151 | fi |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 152 | |
| 153 | cat << EOF >> ${1} |
| 154 | ramdisk@${2} { |
| 155 | description = "ramdisk image"; |
| 156 | data = /incbin/("${3}"); |
| 157 | type = "ramdisk"; |
| 158 | arch = "${UBOOT_ARCH}"; |
| 159 | os = "linux"; |
| 160 | compression = "none"; |
Nathan Rossi | b4a4dc0 | 2016-10-21 22:07:27 +1000 | [diff] [blame] | 161 | ${ramdisk_loadline} |
| 162 | ${ramdisk_entryline} |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 163 | hash@1 { |
| 164 | algo = "${ramdisk_csum}"; |
| 165 | }; |
| 166 | }; |
| 167 | EOF |
| 168 | } |
| 169 | |
| 170 | # |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 171 | # Emit the fitImage ITS configuration section |
| 172 | # |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 173 | # $1 ... .its filename |
| 174 | # $2 ... Linux kernel ID |
| 175 | # $3 ... DTB image ID |
| 176 | # $4 ... ramdisk ID |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 177 | fitimage_emit_section_config() { |
| 178 | |
| 179 | conf_csum="sha1" |
| 180 | |
| 181 | # Test if we have any DTBs at all |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 182 | if [ -z "${3}" -a -z "${4}" ] ; then |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 183 | conf_desc="Boot Linux kernel" |
| 184 | fdt_line="" |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 185 | ramdisk_line="" |
| 186 | elif [ -z "${4}" ]; then |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 187 | conf_desc="Boot Linux kernel with FDT blob" |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 188 | fdt_line="fdt = \"fdt@${3}\";" |
| 189 | ramdisk_line="" |
| 190 | elif [ -z "${3}" ]; then |
| 191 | conf_desc="Boot Linux kernel with ramdisk" |
| 192 | fdt_line="" |
| 193 | ramdisk_line="ramdisk = \"ramdisk@${4}\";" |
| 194 | else |
| 195 | conf_desc="Boot Linux kernel with FDT blob, ramdisk" |
| 196 | fdt_line="fdt = \"fdt@${3}\";" |
| 197 | ramdisk_line="ramdisk = \"ramdisk@${4}\";" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 198 | fi |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 199 | kernel_line="kernel = \"kernel@${2}\";" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 200 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 201 | cat << EOF >> ${1} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 202 | default = "conf@1"; |
| 203 | conf@1 { |
| 204 | description = "${conf_desc}"; |
| 205 | ${kernel_line} |
| 206 | ${fdt_line} |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 207 | ${ramdisk_line} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 208 | hash@1 { |
| 209 | algo = "${conf_csum}"; |
| 210 | }; |
| 211 | }; |
| 212 | EOF |
| 213 | } |
| 214 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 215 | # |
| 216 | # Assemble fitImage |
| 217 | # |
| 218 | # $1 ... .its filename |
| 219 | # $2 ... fitImage name |
| 220 | # $3 ... include ramdisk |
| 221 | fitimage_assemble() { |
| 222 | kernelcount=1 |
| 223 | dtbcount="" |
| 224 | ramdiskcount=${3} |
| 225 | rm -f ${1} arch/${ARCH}/boot/${2} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 226 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 227 | fitimage_emit_fit_header ${1} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 228 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 229 | # |
| 230 | # Step 1: Prepare a kernel image section. |
| 231 | # |
| 232 | fitimage_emit_section_maint ${1} imagestart |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 233 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 234 | uboot_prep_kimage |
| 235 | fitimage_emit_section_kernel ${1} "${kernelcount}" linux.bin "${linux_comp}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 236 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 237 | # |
| 238 | # Step 2: Prepare a DTB image section |
| 239 | # |
| 240 | if test -n "${KERNEL_DEVICETREE}"; then |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 241 | dtbcount=1 |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 242 | for DTB in ${KERNEL_DEVICETREE}; do |
| 243 | if echo ${DTB} | grep -q '/dts/'; then |
| 244 | bbwarn "${DTB} contains the full path to the the dts file, but only the dtb name should be used." |
| 245 | DTB=`basename ${DTB} | sed 's,\.dts$,.dtb,g'` |
| 246 | fi |
| 247 | DTB_PATH="arch/${ARCH}/boot/dts/${DTB}" |
| 248 | if [ ! -e "${DTB_PATH}" ]; then |
| 249 | DTB_PATH="arch/${ARCH}/boot/${DTB}" |
| 250 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 251 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 252 | fitimage_emit_section_dtb ${1} ${dtbcount} ${DTB_PATH} |
| 253 | dtbcount=`expr ${dtbcount} + 1` |
| 254 | done |
| 255 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 256 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 257 | # |
| 258 | # Step 3: Prepare a ramdisk section. |
| 259 | # |
| 260 | if [ "x${ramdiskcount}" = "x1" ] ; then |
| 261 | copy_initramfs |
| 262 | fitimage_emit_section_ramdisk ${1} "${ramdiskcount}" usr/${INITRAMFS_IMAGE}-${MACHINE}.cpio |
| 263 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 264 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 265 | fitimage_emit_section_maint ${1} sectend |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 266 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 267 | # Force the first Kernel and DTB in the default config |
| 268 | kernelcount=1 |
| 269 | dtbcount=1 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 270 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 271 | # |
| 272 | # Step 4: Prepare a configurations section |
| 273 | # |
| 274 | fitimage_emit_section_maint ${1} confstart |
| 275 | |
| 276 | fitimage_emit_section_config ${1} ${kernelcount} ${dtbcount} ${ramdiskcount} |
| 277 | |
| 278 | fitimage_emit_section_maint ${1} sectend |
| 279 | |
| 280 | fitimage_emit_section_maint ${1} fitend |
| 281 | |
| 282 | # |
| 283 | # Step 5: Assemble the image |
| 284 | # |
| 285 | uboot-mkimage \ |
| 286 | ${@'-D "${UBOOT_MKIMAGE_DTCOPTS}"' if len('${UBOOT_MKIMAGE_DTCOPTS}') else ''} \ |
| 287 | -f ${1} \ |
| 288 | arch/${ARCH}/boot/${2} |
| 289 | } |
| 290 | |
| 291 | do_assemble_fitimage() { |
| 292 | if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage"; then |
| 293 | cd ${B} |
| 294 | fitimage_assemble fit-image.its fitImage |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 295 | fi |
| 296 | } |
| 297 | |
| 298 | addtask assemble_fitimage before do_install after do_compile |
| 299 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 300 | do_assemble_fitimage_initramfs() { |
| 301 | if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage" && \ |
| 302 | test -n "${INITRAMFS_IMAGE}" ; then |
| 303 | cd ${B} |
| 304 | fitimage_assemble fit-image-${INITRAMFS_IMAGE}.its fitImage-${INITRAMFS_IMAGE} 1 |
| 305 | fi |
| 306 | } |
| 307 | |
| 308 | addtask assemble_fitimage_initramfs before do_deploy after do_install |
| 309 | |
| 310 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 311 | kernel_do_deploy[vardepsexclude] = "DATETIME" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 312 | kernel_do_deploy_append() { |
| 313 | # Update deploy directory |
He Zhe | fe76b1e | 2016-05-25 04:47:16 -0400 | [diff] [blame] | 314 | if echo ${KERNEL_IMAGETYPES} | grep -wq "fitImage"; then |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 315 | cd ${B} |
| 316 | echo "Copying fit-image.its source file..." |
He Zhe | fe76b1e | 2016-05-25 04:47:16 -0400 | [diff] [blame] | 317 | its_base_name="fitImage-its-${PV}-${PR}-${MACHINE}-${DATETIME}" |
| 318 | its_symlink_name=fitImage-its-${MACHINE} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 319 | install -m 0644 fit-image.its ${DEPLOYDIR}/${its_base_name}.its |
He Zhe | fe76b1e | 2016-05-25 04:47:16 -0400 | [diff] [blame] | 320 | linux_bin_base_name="fitImage-linux.bin-${PV}-${PR}-${MACHINE}-${DATETIME}" |
| 321 | linux_bin_symlink_name=fitImage-linux.bin-${MACHINE} |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 322 | install -m 0644 linux.bin ${DEPLOYDIR}/${linux_bin_base_name}.bin |
| 323 | |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 324 | if [ -n "${INITRAMFS_IMAGE}" ]; then |
| 325 | echo "Copying fit-image-${INITRAMFS_IMAGE}.its source file..." |
Nathan Rossi | 578589a | 2016-10-21 22:07:28 +1000 | [diff] [blame^] | 326 | its_initramfs_base_name="fitImage-its-${INITRAMFS_IMAGE}-${PV}-${PR}-${MACHINE}-${DATETIME}" |
| 327 | its_initramfs_symlink_name=fitImage-its-${INITRAMFS_IMAGE}-${MACHINE} |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 328 | install -m 0644 fit-image-${INITRAMFS_IMAGE}.its ${DEPLOYDIR}/${its_initramfs_base_name}.its |
Nathan Rossi | 578589a | 2016-10-21 22:07:28 +1000 | [diff] [blame^] | 329 | fit_initramfs_base_name="fitImage-${INITRAMFS_IMAGE}-${PV}-${PR}-${MACHINE}-${DATETIME}" |
| 330 | fit_initramfs_symlink_name=fitImage-${INITRAMFS_IMAGE}-${MACHINE} |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 331 | install -m 0644 arch/${ARCH}/boot/fitImage-${INITRAMFS_IMAGE} ${DEPLOYDIR}/${fit_initramfs_base_name}.bin |
| 332 | fi |
| 333 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 334 | cd ${DEPLOYDIR} |
| 335 | ln -sf ${its_base_name}.its ${its_symlink_name}.its |
| 336 | ln -sf ${linux_bin_base_name}.bin ${linux_bin_symlink_name}.bin |
George McCollister | 185c8ae | 2016-05-26 08:55:16 -0500 | [diff] [blame] | 337 | |
| 338 | if [ -n "${INITRAMFS_IMAGE}" ]; then |
| 339 | ln -sf ${its_initramfs_base_name}.its ${its_initramfs_symlink_name}.its |
| 340 | ln -sf ${fit_initramfs_base_name}.bin ${fit_initramfs_symlink_name}.bin |
| 341 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 342 | fi |
| 343 | } |