1 include $(TOPDIR)/rules.mk
2 include $(INCLUDE_DIR)/image.mk
4 DEVICE_VARS += RAS_BOARD RAS_ROOTFS_SIZE RAS_VERSION \
5 WRGG_DEVNAME WRGG_SIGNATURE
9 KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
10 KERNEL_INITRAMFS_PREFIX := $$(IMG_PREFIX)-$(1)-initramfs
11 KERNEL_PREFIX := $$(IMAGE_PREFIX)
12 KERNEL_LOADADDR := 0x80208000
13 DEVICE_DTS = $$(SOC)-$(lastword $(subst _, ,$(1)))
14 SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
15 IMAGE/sysupgrade.bin = sysupgrade-tar | append-metadata
16 IMAGE/sysupgrade.bin/squashfs :=
19 define Device/FitImage
20 KERNEL_SUFFIX := -fit-uImage.itb
21 KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
25 define Device/FitImageLzma
26 KERNEL_SUFFIX := -fit-uImage.itb
27 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb
31 define Device/FitzImage
32 KERNEL_SUFFIX := -fit-zImage.itb
33 KERNEL = kernel-bin | fit none $$(DTS_DIR)/$$(DEVICE_DTS).dtb
39 IMAGES := nand-factory.ubi nand-sysupgrade.bin
40 IMAGE/nand-factory.ubi := append-ubi
41 IMAGE/nand-sysupgrade.bin := sysupgrade-tar | append-metadata
44 define Device/DniImage
45 KERNEL_SUFFIX := -fit-uImage.itb
46 KERNEL = kernel-bin | gzip | fit gzip $$(DTS_DIR)/$$(DEVICE_DTS).dtb
50 IMAGES := factory.img sysupgrade.bin
51 IMAGE/factory.img := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | netgear-dni
52 IMAGE/sysupgrade.bin := append-kernel | pad-offset 64k 64 | append-uImage-fakehdr filesystem | append-rootfs | pad-rootfs | append-metadata
54 DEVICE_VARS += NETGEAR_BOARD_ID NETGEAR_HW_ID
56 define Build/mkmylofw_32m
57 $(eval device_id=$(word 1,$(1)))
58 $(eval revision=$(word 2,$(1)))
61 size="$$(stat -c%s $@)" \
62 pad="$(subst k,* 1024,$(BLOCKSIZE))" \
63 pad="(pad - (size % pad)) % pad" \
64 newsize='size + pad'; \
65 $(STAGING_DIR_HOST)/bin/mkmylofw \
66 -B WPE72 -i 0x11f6:$(device_id):0x11f6:$(device_id) -r $(revision) \
67 -s 0x2000000 -p0x180000:$$newsize:al:0x80208000:"OpenWrt":$@ \
73 -$(STAGING_DIR_HOST)/bin/mksenaofw \
74 -n $(BOARD_NAME) -r $(VENDOR_ID) -p $(1) \
75 -c $(DATECODE) -w $(2) -x $(CW_VER) -t 0 \
81 define Build/wrgg-image
84 -d "$(WRGG_DEVNAME)" \
85 -s "$(WRGG_SIGNATURE)" \
90 define Device/8dev_habanero-dvk
91 $(call Device/FitImageLzma)
92 DEVICE_VENDOR := 8devices
93 DEVICE_MODEL := Habanero DVK
96 DEVICE_PACKAGES := ipq-wifi-8dev_habanero-dvk
97 IMAGES := sysupgrade.bin
98 IMAGE/sysupgrade.bin := append-kernel | pad-to 64k | append-rootfs | pad-rootfs | append-metadata | check-size $$$$(IMAGE_SIZE)
100 TARGET_DEVICES += 8dev_habanero-dvk
102 define Device/8dev_jalapeno-common
103 $(call Device/FitImage)
104 $(call Device/UbiFit)
110 define Device/8dev_jalapeno
111 $(call Device/8dev_jalapeno-common)
112 DEVICE_VENDOR := 8devices
113 DEVICE_MODEL := Jalapeno
115 TARGET_DEVICES += 8dev_jalapeno
117 define Device/alfa-network_ap120c-ac
118 $(call Device/FitImage)
119 $(call Device/UbiFit)
120 DEVICE_VENDOR := ALFA Network
121 DEVICE_MODEL := AP120C-AC
123 DEVICE_PACKAGES := kmod-usb-acm \
124 kmod-tpm-i2c-atmel uboot-envtools
128 IMAGES := nand-factory.bin nand-sysupgrade.bin
129 IMAGE/nand-factory.bin := append-ubi | qsdk-ipq-factory-nand
131 TARGET_DEVICES += alfa-network_ap120c-ac
133 define Device/aruba_ap-303
134 $(call Device/FitImageLzma)
135 DEVICE_VENDOR := Aruba
136 DEVICE_MODEL := AP-303
138 DEVICE_PACKAGES := ipq-wifi-aruba_ap-303
139 IMAGES := sysupgrade.bin
141 TARGET_DEVICES += aruba_ap-303
143 define Device/aruba_ap-303h
144 $(call Device/FitImageLzma)
145 DEVICE_VENDOR := Aruba
146 DEVICE_MODEL := AP-303H
148 DEVICE_PACKAGES := ipq-wifi-aruba_ap-303
149 IMAGES := sysupgrade.bin
151 TARGET_DEVICES += aruba_ap-303h
153 define Device/asus_map-ac2200
154 $(call Device/FitImageLzma)
155 DEVICE_VENDOR := ASUS
156 DEVICE_MODEL := Lyra (MAP-AC2200)
158 IMAGES := sysupgrade.bin
159 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct kmod-ath3k
161 TARGET_DEVICES += asus_map-ac2200
163 define Device/asus_rt-ac58u
164 $(call Device/FitImageLzma)
165 DEVICE_VENDOR := ASUS
166 DEVICE_MODEL := RT-AC58U
171 IMAGE_SIZE := 20439364
172 FILESYSTEMS := squashfs
173 # Someone - in their infinite wisdom - decided to put the firmware
174 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
175 # Since u-boot works with strings we either need another fixup step
176 # to add a version... or we are very careful not to add '\0' into that
177 # string and call it a day.... Yeah, we do the latter!
178 UIMAGE_NAME:=$(shell echo -e '\03\01\01\01RT-AC58U')
179 IMAGES := sysupgrade.bin
180 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
181 kmod-usb-ledtrig-usbport
183 TARGET_DEVICES += asus_rt-ac58u
185 define Device/avm_fritzbox-4040
186 $(call Device/FitImageLzma)
188 DEVICE_MODEL := FRITZ!Box 4040
190 BOARD_NAME := fritz4040
192 UBOOT_PATH := $(STAGING_DIR_IMAGE)/uboot-fritz4040.bin
193 UBOOT_PARTITION_SIZE := 524288
194 IMAGES = eva.bin sysupgrade.bin
195 IMAGE/eva.bin := append-uboot | pad-to $$$$(UBOOT_PARTITION_SIZE) | append-kernel | append-rootfs | pad-rootfs
196 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
197 DEVICE_PACKAGES := fritz-tffs fritz-caldata
199 TARGET_DEVICES += avm_fritzbox-4040
201 define Device/avm_fritzbox-7530
202 $(call Device/FitImageLzma)
204 DEVICE_MODEL := FRITZ!Box 7530
206 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand
207 IMAGES := sysupgrade.bin
209 TARGET_DEVICES += avm_fritzbox-7530
211 define Device/avm_fritzrepeater-1200
212 $(call Device/FitImageLzma)
214 DEVICE_MODEL := FRITZ!Repeater 1200
216 DEVICE_PACKAGES := fritz-caldata fritz-tffs-nand ipq-wifi-avm_fritzrepeater-1200
217 IMAGES := sysupgrade.bin
219 TARGET_DEVICES += avm_fritzrepeater-1200
221 define Device/avm_fritzrepeater-3000
222 $(call Device/FitImageLzma)
224 DEVICE_MODEL := FRITZ!Repeater 3000
226 DEVICE_PACKAGES := ath10k-firmware-qca9984-ct fritz-caldata fritz-tffs-nand
227 IMAGES := sysupgrade.bin
229 TARGET_DEVICES += avm_fritzrepeater-3000
231 define Device/cilab_meshpoint-one
232 $(call Device/8dev_jalapeno-common)
233 DEVICE_VENDOR := Crisis Innovation Lab
234 DEVICE_MODEL := MeshPoint.One
235 DEVICE_PACKAGES := kmod-i2c-gpio kmod-iio-bmp280-i2c kmod-hwmon-ina2xx kmod-rtc-pcf2127
237 TARGET_DEVICES += cilab_meshpoint-one
239 define Device/compex_wpj419
240 $(call Device/FitImage)
241 $(call Device/UbiFit)
242 DEVICE_VENDOR := Compex
243 DEVICE_MODEL := WPJ419
245 DEVICE_DTS_CONFIG := config@12
249 FILESYSTEMS := squashfs
251 TARGET_DEVICES += compex_wpj419
253 define Device/compex_wpj428
254 $(call Device/FitImage)
255 DEVICE_VENDOR := Compex
256 DEVICE_MODEL := WPJ428
258 DEVICE_DTS_CONFIG := config@4
262 IMAGES = sysupgrade.bin cpximg-6a04.bin
263 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
264 IMAGE/cpximg-6a04.bin := append-kernel | append-rootfs | pad-rootfs | mkmylofw_32m 0x8A2 3
265 DEVICE_PACKAGES := kmod-gpio-beeper
267 TARGET_DEVICES += compex_wpj428
269 define Device/dlink_dap-2610
270 $(call Device/FitImageLzma)
271 DEVICE_VENDOR := D-Link
272 DEVICE_MODEL := DAP-2610
274 DEVICE_DTS_CONFIG := config@ap.dk01.1-c1
276 WRGG_DEVNAME := /dev/mtdblock/8
277 WRGG_SIGNATURE := wapac30_dkbs_dap2610
279 IMAGES := sysupgrade.bin factory.bin
280 # Bootloader expects a special 160 byte header which is added by
282 # Factory image size must be larger than 6MB, and size in wrgg header must
283 # match actual factory image size to be flashable from D-Link http server.
284 # Bootloader verifies checksum of wrgg image before booting, thus jffs2
285 # cannot be part of the wrgg image. This is solved in the factory image by
286 # having the rootfs at the end of the image (without pad-rootfs). And in
287 # the sysupgrade image only the kernel is included in the wrgg checksum,
288 # but this is not flashable from the D-link http server.
289 # append-rootfs must start on an erase block boundary.
290 IMAGE/factory.bin := append-kernel | pad-offset 6144k 160 | append-rootfs | wrgg-image | check-size $$$$(IMAGE_SIZE)
291 IMAGE/sysupgrade.bin := append-kernel | wrgg-image | pad-to $$$$(BLOCKSIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | append-metadata
292 DEVICE_PACKAGES := ipq-wifi-dlink_dap2610
294 TARGET_DEVICES += dlink_dap-2610
296 define Device/engenius_eap1300
297 $(call Device/FitImage)
298 DEVICE_VENDOR := EnGenius
299 DEVICE_MODEL := EAP1300
300 DEVICE_DTS_CONFIG := config@4
301 BOARD_NAME := eap1300
305 IMAGES := sysupgrade.bin
306 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
308 TARGET_DEVICES += engenius_eap1300
310 define Device/engenius_eap2200
311 $(call Device/FitImage)
312 $(call Device/UbiFit)
313 DEVICE_VENDOR := EnGenius
314 DEVICE_MODEL := EAP2200
318 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct ipq-wifi-engenius_eap2200 -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
320 TARGET_DEVICES += engenius_eap2200
322 define Device/engenius_emd1
323 $(call Device/FitImage)
324 DEVICE_VENDOR := EnGenius
326 DEVICE_DTS_CONFIG := config@4
329 IMAGES := sysupgrade.bin factory.bin
330 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
331 IMAGE/factory.bin := qsdk-ipq-factory-nor | check-size $$$$(IMAGE_SIZE)
333 TARGET_DEVICES += engenius_emd1
335 define Device/engenius_ens620ext
336 $(call Device/FitImage)
337 DEVICE_VENDOR := EnGenius
338 DEVICE_MODEL := ENS620EXT
340 DEVICE_DTS_CONFIG := config@4
343 BOARD_NAME := ENS620EXT
346 PRODUCT_ID_NEW := 0xA4
353 FILESYSTEMS := squashfs
354 IMAGES := sysupgrade.bin factory_30.bin factory_35.bin
355 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | append-metadata
356 IMAGE/factory_30.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | check-size $$$$(IMAGE_SIZE) | SenaoFW $$$$(PRODUCT_ID) $$$$(FW_VER)
357 IMAGE/factory_35.bin := qsdk-ipq-factory-nor | check-size $$$$(IMAGE_SIZE) | SenaoFW $$$$(PRODUCT_ID_NEW) $$$$(FW_VER_NEW)
359 TARGET_DEVICES += engenius_ens620ext
361 define Device/ezviz_cs-w3-wd1200g-eup
362 $(call Device/FitImage)
363 DEVICE_VENDOR := EZVIZ
364 DEVICE_MODEL := CS-W3-WD1200G
365 DEVICE_VARIANT := EUP
366 DEVICE_DTS_CONFIG := config@4
369 IMAGES := sysupgrade.bin
370 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | \
372 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers \
373 ipq-wifi-ezviz_cs-w3-wd1200g-eup
375 TARGET_DEVICES += ezviz_cs-w3-wd1200g-eup
377 define Device/glinet_gl-b1300
378 $(call Device/FitImage)
379 DEVICE_VENDOR := GL.iNet
380 DEVICE_MODEL := GL-B1300
381 BOARD_NAME := gl-b1300
385 IMAGES := sysupgrade.bin
386 IMAGE/sysupgrade.bin := append-kernel |append-rootfs | pad-rootfs | append-metadata
388 TARGET_DEVICES += glinet_gl-b1300
390 define Device/linksys_ea6350v3
391 # The Linksys EA6350v3 has a uboot bootloader that does not
392 # support either booting lzma kernel images nor booting UBI
393 # partitions. This uboot, however, supports raw kernel images and
396 # As for the time of writing this, the device will boot the kernel
397 # from a fixed address with a fixed length of 3MiB. Also, the
398 # device has a hard-coded kernel command line that requieres the
399 # rootfs and alt_rootfs to be in mtd11 and mtd13 respectively.
400 # Oh... and the kernel partition overlaps with the rootfs
401 # partition (the same for alt_kernel and alt_rootfs).
403 # If you are planing re-partitioning the device, you may want to
404 # keep those details in mind:
405 # 1. The kernel adresses you should honor are 0x00000000 and
406 # 0x02800000 respectively.
407 # 2. The kernel size (plus the dtb) cannot exceed 3.00MiB in size.
408 # 3. You can use 'zImage', but not a raw 'Image' packed with lzma.
409 # 4. The kernel command line from uboot is harcoded to boot with
410 # rootfs either in mtd11 or mtd13.
411 $(call Device/FitzImage)
412 DEVICE_VENDOR := Linksys
413 DEVICE_MODEL := EA6350
421 IMAGES := factory.bin sysupgrade.bin
422 IMAGE/factory.bin := append-kernel | append-uImage-fakehdr filesystem | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA6350v3
423 DEVICE_PACKAGES := uboot-envtools
425 TARGET_DEVICES += linksys_ea6350v3
427 define Device/linksys_ea8300
428 $(call Device/FitzImage)
429 DEVICE_VENDOR := Linksys
430 DEVICE_MODEL := EA8300
436 UBINIZE_OPTS := -E 5 # EOD marks to "hide" factory sig at EOF
437 IMAGES := sysupgrade.bin factory.bin
438 IMAGE/factory.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-ubi | linksys-image type=EA8300
439 DEVICE_PACKAGES := uboot-envtools ath10k-firmware-qca9888-ct ipq-wifi-linksys_ea8300 kmod-usb-ledtrig-usbport
441 TARGET_DEVICES += linksys_ea8300
443 define Device/meraki_mr33
444 $(call Device/FitImage)
445 DEVICE_VENDOR := Cisco Meraki
450 IMAGES = sysupgrade.bin
451 DEVICE_PACKAGES := -swconfig ath10k-firmware-qca9887-ct
453 TARGET_DEVICES += meraki_mr33
455 define Device/netgear_ex61x0v2
456 $(call Device/DniImage)
457 DEVICE_DTS_CONFIG := config@4
458 NETGEAR_BOARD_ID := EX6150v2series
459 NETGEAR_HW_ID := 29765285+16+0+128+2x2
463 define Device/netgear_ex6100v2
464 $(call Device/netgear_ex61x0v2)
465 DEVICE_VENDOR := Netgear
466 DEVICE_MODEL := EX6100
469 TARGET_DEVICES += netgear_ex6100v2
471 define Device/netgear_ex6150v2
472 $(call Device/netgear_ex61x0v2)
473 DEVICE_VENDOR := Netgear
474 DEVICE_MODEL := EX6150
477 TARGET_DEVICES += netgear_ex6150v2
479 define Device/openmesh_a42
480 $(call Device/FitImageLzma)
481 DEVICE_VENDOR := OpenMesh
484 DEVICE_DTS_CONFIG := config@om.a42
486 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
488 IMAGES = factory.bin sysupgrade.bin
489 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A42
490 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
491 DEVICE_PACKAGES := uboot-envtools
493 TARGET_DEVICES += openmesh_a42
495 define Device/openmesh_a62
496 $(call Device/FitImageLzma)
497 DEVICE_VENDOR := OpenMesh
500 DEVICE_DTS_CONFIG := config@om.a62
502 KERNEL = kernel-bin | lzma | fit lzma $$(DTS_DIR)/$$(DEVICE_DTS).dtb | pad-to $$(BLOCKSIZE)
504 IMAGES = factory.bin sysupgrade.bin
505 IMAGE/factory.bin := append-rootfs | pad-rootfs | openmesh-image ce_type=A62
506 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | sysupgrade-tar rootfs=$$$$@ | append-metadata
507 DEVICE_PACKAGES := ath10k-firmware-qca9888-ct uboot-envtools
510 TARGET_DEVICES += openmesh_a62
512 define Device/qcom_ap-dk01.1-c1
513 DEVICE_VENDOR := Qualcomm Atheros
514 DEVICE_MODEL := AP-DK01.1
516 BOARD_NAME := ap-dk01.1-c1
518 DEVICE_DTS := qcom-ipq4019-ap.dk01.1-c1
522 $(call Device/FitImage)
523 IMAGES := sysupgrade.bin
524 IMAGE/sysupgrade.bin := append-kernel | pad-to $$$$(KERNEL_SIZE) | append-rootfs | pad-rootfs | append-metadata
526 TARGET_DEVICES += qcom_ap-dk01.1-c1
528 define Device/qcom_ap-dk04.1-c1
529 $(call Device/FitImage)
530 $(call Device/UbiFit)
531 DEVICE_VENDOR := Qualcomm Atheros
532 DEVICE_MODEL := AP-DK04.1
535 DEVICE_DTS := qcom-ipq4019-ap.dk04.1-c1
540 BOARD_NAME := ap-dk04.1-c1
542 TARGET_DEVICES += qcom_ap-dk04.1-c1
544 define Device/qxwlan_e2600ac-c1
545 $(call Device/FitImage)
546 DEVICE_VENDOR := Qxwlan
547 DEVICE_MODEL := E2600AC
549 BOARD_NAME := e2600ac-c1
553 IMAGES := sysupgrade.bin
554 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
555 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac
557 TARGET_DEVICES += qxwlan_e2600ac-c1
559 define Device/qxwlan_e2600ac-c2
560 $(call Device/FitImage)
561 $(call Device/UbiFit)
562 DEVICE_VENDOR := Qxwlan
563 DEVICE_MODEL := E2600AC
569 DEVICE_PACKAGES := ipq-wifi-qxwlan_e2600ac
571 TARGET_DEVICES += qxwlan_e2600ac-c2
573 define Device/unielec_u4019-32m
574 $(call Device/FitImage)
575 DEVICE_VENDOR := Unielec
576 DEVICE_MODEL := U4019
577 DEVICE_VARIANT := 32M
578 BOARD_NAME := u4019-32m
582 IMAGES := sysupgrade.bin
583 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
585 TARGET_DEVICES += unielec_u4019-32m
587 define Device/zyxel_nbg6617
588 $(call Device/FitImageLzma)
589 DEVICE_VENDOR := ZyXEL
590 DEVICE_MODEL := NBG6617
592 ROOTFS_SIZE := 24960k
594 RAS_ROOTFS_SIZE := 19840k
595 RAS_VERSION := "$(VERSION_DIST) $(REVISION)"
596 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
597 IMAGES := sysupgrade.bin factory.bin
598 # The ZyXEL firmware allows flashing thru the web-gui only when the rootfs is
599 # at least as large as the one of the initial firmware image (not the current
600 # one on the device). This only applies to the Web-UI, the bootlaoder ignores
601 # this minimum-size. However, the larger image can be flashed both ways.
602 IMAGE/factory.bin := append-rootfs | pad-rootfs | pad-to 64k | check-size $$$$(ROOTFS_SIZE) | zyxel-ras-image separate-kernel
603 IMAGE/sysupgrade.bin/squashfs := append-rootfs | pad-rootfs | check-size $$$$(ROOTFS_SIZE) | sysupgrade-tar rootfs=$$$$@ | append-metadata
604 DEVICE_PACKAGES := uboot-envtools kmod-usb-ledtrig-usbport
606 TARGET_DEVICES += zyxel_nbg6617
608 define Device/zyxel_wre6606
609 $(call Device/FitImage)
610 DEVICE_VENDOR := ZyXEL
611 DEVICE_MODEL := WRE6606
612 DEVICE_DTS_CONFIG := config@4
614 IMAGES := sysupgrade.bin
615 IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
616 DEVICE_PACKAGES := -kmod-ath10k-ct kmod-ath10k-ct-smallbuffers
618 TARGET_DEVICES += zyxel_wre6606
620 $(eval $(call BuildImage))