Skip to content

Commit e8df99c

Browse files
rbqvqhauke
authored andcommitted
ramips: Add factory image for Qding QC202
Added factory image using mkqdimg. Signed-off-by: Coia Prant <coiaprant@gmail.com> Link: openwrt/openwrt#20102 (cherry picked from commit d0383bb) Link: openwrt/openwrt#20159 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent b9382cb commit e8df99c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

target/linux/ramips/image/mt76x8.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ define Build/elecom-header
2121
mv $@.new $@
2222
endef
2323

24+
define Build/qding-header
25+
$(STAGING_DIR_HOST)/bin/mkqdimg \
26+
-B $(1) -f $@ -o $@.new
27+
mv $@.new $@
28+
endef
29+
2430
define Build/ravpower-wd009-factory
2531
mkimage -A mips -T standalone -C none -a 0x80010000 -e 0x80010000 \
2632
-n "OpenWrt Bootloader" -d $(UBOOT_PATH) $@.new
@@ -538,6 +544,8 @@ define Device/qding_qc202
538544
DEVICE_VENDOR := Qding
539545
DEVICE_MODEL := QC202
540546
DEVICE_PACKAGES := kmod-i2c-mt7628 kmod-gpio-beeper kmod-input-matrix-keypad kmod-input-evdev uboot-envtools
547+
IMAGES += factory.bin
548+
IMAGE/factory.bin := $$(sysupgrade_bin) | qding-header qc202
541549
endef
542550
TARGET_DEVICES += qding_qc202
543551

0 commit comments

Comments
 (0)