1 include $(TOPDIR
)/rules.mk
2 include $(INCLUDE_DIR
)/image.mk
6 KERNEL_DEPENDS
= $$(wildcard $(DTS_DIR
)/$$(DEVICE_DTS
).dts
)
7 KERNEL_INITRAMFS_PREFIX
:= $$(IMG_PREFIX
)-$(1)-initramfs
8 KERNEL_PREFIX
:= $$(IMAGE_PREFIX
)
9 KERNEL_LOADADDR
:= 0x80208000
10 SUPPORTED_DEVICES
:= $(subst _
,$(comma
),$(1))
11 IMAGE
/sysupgrade.bin
= sysupgrade-tar | append-metadata
12 IMAGE
/sysupgrade.bin
/squashfs
:=
15 define Device
/FitImage
16 KERNEL_SUFFIX
:= -fit-uImage.itb
17 KERNEL
= kernel-bin | gzip | fit gzip
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
21 define Device
/FitImageLzma
22 KERNEL_SUFFIX
:= -fit-uImage.itb
23 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb
29 IMAGES
:= nand-factory.ubi nand-sysupgrade.bin
30 IMAGE
/nand-factory.ubi
:= append-ubi
31 IMAGE
/nand-sysupgrade.bin
:= sysupgrade-tar | append-metadata
35 define Device
/8dev_jalapeno
36 $(call Device
/FitImage
)
38 DEVICE_DTS
:= qcom-ipq4018-jalapeno
41 DEVICE_TITLE
:= 8devices Jalapeno
42 DEVICE_PACKAGES
:= ath10k-firmware-qca4019
44 TARGET_DEVICES
+= 8dev_jalapeno
46 define Device
/asus_rt-ac58u
47 $(call Device
/FitImageLzma
)
48 DEVICE_DTS
:= qcom-ipq4018-rt-ac58u
52 DEVICE_TITLE
:= Asus RT-AC58U
53 IMAGE_SIZE
:= 20439364
54 FILESYSTEMS
:= squashfs
55 # Someone - in their infinite wisdom - decided to put the firmware
56 # version in front of the image name \03\00\00\04 => Version 3.0.0.4
57 # Since u-boot works with strings we either need another fixup step
58 # to add a version... or we are very careful not to add '\0' into that
59 # string and call it a day.... Yeah, we do the latter!
60 UIMAGE_NAME
:=$(shell echo
-e
'\03\01\01\01RT-AC58U')
61 IMAGES
:= sysupgrade.bin
62 DEVICE_PACKAGES
:= ipq-wifi-asus_rt-ac58u kmod-usb-ledtrig-usbport
64 TARGET_DEVICES
+= asus_rt-ac58u
66 define Device
/avm_fritzbox-4040
67 $(call Device
/FitImageLzma
)
68 DEVICE_DTS
:= qcom-ipq4018-fritz4040
69 BOARD_NAME
:= fritz4040
70 DEVICE_TITLE
:= AVM Fritz
!Box
4040
71 IMAGE_SIZE
:= 29753344
72 IMAGES
= sysupgrade.bin
73 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
74 DEVICE_PACKAGES
:= ipq-wifi-avm_fritzbox-4040 fritz-tffs fritz-caldata u-boot-fritz4040
76 TARGET_DEVICES
+= avm_fritzbox-4040
78 define Device
/compex_wpj428
79 $(call Device
/FitImage
)
80 DEVICE_DTS
:= qcom-ipq4028-wpj428
81 DEVICE_DTS_CONFIG
:= config@
4
83 DEVICE_TITLE
:= Compex WPJ428
86 IMAGES
= sysupgrade.bin
87 IMAGE
/sysupgrade.bin
:= append-kernel | append-rootfs | pad-rootfs | append-metadata
88 DEVICE_PACKAGES
:= ath10k-firmware-qca4019 kmod-gpio-beeper
90 TARGET_DEVICES
+= compex_wpj428
92 define Device
/glinet_gl-b1300
93 $(call Device
/FitImage
)
94 DEVICE_TITLE
:= GL.iNet GL-B1300
95 BOARD_NAME
:= gl-b1300
96 DEVICE_DTS
:= qcom-ipq4029-gl-b1300
99 IMAGES
:= sysupgrade.bin
100 IMAGE
/sysupgrade.bin
:= append-kernel |append-rootfs | pad-rootfs | append-metadata
101 DEVICE_PACKAGES
:= ipq-wifi-glinet_gl-b1300
103 TARGET_DEVICES
+= glinet_gl-b1300
105 define Device
/meraki_mr33
106 $(call Device
/FitImage
)
107 DEVICE_DTS
:= qcom-ipq4029-mr33
110 DEVICE_TITLE
:= Cisco Meraki MR33
111 IMAGES
= sysupgrade.bin
112 DEVICE_PACKAGES
:= -swconfig ipq-wifi-meraki_mr33 ath10k-firmware-qca9887
114 TARGET_DEVICES
+= meraki_mr33
116 define Device
/openmesh_a42
117 $(call Device
/FitImageLzma
)
118 DEVICE_DTS
:= qcom-ipq4018-a42
119 DEVICE_DTS_CONFIG
:= config@om.a42
121 DEVICE_TITLE
:= OpenMesh A42
122 KERNEL
= kernel-bin | lzma | fit lzma
$$(DTS_DIR
)/$$(DEVICE_DTS
).dtb | pad-to
$$(BLOCKSIZE
)
124 IMAGES
= factory.bin sysupgrade.bin
125 IMAGE
/factory.bin
:= append-rootfs | pad-rootfs | openmesh-image ce_type
=A42
126 IMAGE
/sysupgrade.bin
/squashfs
:= append-rootfs | pad-rootfs | sysupgrade-tar rootfs
=$$$$@ | append-metadata
127 DEVICE_PACKAGES
:= ath10k-firmware-qca4019 uboot-envtools
129 TARGET_DEVICES
+= openmesh_a42
131 define Device
/qcom_ap-dk01.1
-c1
132 DEVICE_TITLE
:= QCA AP-DK01.1
-C1
133 BOARD_NAME
:= ap-dk01.1
-c1
134 DEVICE_DTS
:= qcom-ipq4019-ap.dk01.1
-c1
138 $(call Device
/FitImage
)
139 IMAGES
:= sysupgrade.bin
140 IMAGE
/sysupgrade.bin
:= append-kernel | pad-to
$$$${KERNEL_SIZE} | append-rootfs | pad-rootfs | append-metadata
141 DEVICE_PACKAGES
:= ath10k-firmware-qca4019
143 TARGET_DEVICES
+= qcom_ap-dk01.1
-c1
145 define Device
/qcom_ap-dk04.1
-c1
146 $(call Device
/FitImage
)
147 $(call Device
/UbiFit
)
148 DEVICE_DTS
:= qcom-ipq4019-ap.dk04.1
-c1
153 BOARD_NAME
:= ap-dk04.1
-c1
154 DEVICE_TITLE
:= QCA AP-DK04.1
-C1
156 TARGET_DEVICES
+= qcom_ap-dk04.1
-c1
158 $(eval
$(call BuildImage
))