From fead411f875bb1ae2d4c625783de1397a5873d71 Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Sat, 11 Aug 2018 00:19:28 +0200
Subject: [PATCH] brcm2708: adjust to changed OpenWrt image names

---
 targets/brcm2708-bcm2708 | 4 ++--
 targets/brcm2708-bcm2709 | 4 ++--
 targets/brcm2708-bcm2710 | 4 ++--
 targets/brcm2708.inc     | 2 ++
 4 files changed, 8 insertions(+), 6 deletions(-)
 create mode 100644 targets/brcm2708.inc

diff --git a/targets/brcm2708-bcm2708 b/targets/brcm2708-bcm2708
index 00bd9a38e..c0d8b8ea2 100644
--- a/targets/brcm2708-bcm2708
+++ b/targets/brcm2708-bcm2708
@@ -1,4 +1,4 @@
+. targets/brcm2708.inc
+
 device raspberry-pi rpi
 manifest_alias raspberry-pi-model-b-rev-2
-factory -ext4-sdcard .img.gz
-sysupgrade -ext4-sdcard .img.gz
diff --git a/targets/brcm2708-bcm2709 b/targets/brcm2708-bcm2709
index 6ede78a4d..78116f930 100644
--- a/targets/brcm2708-bcm2709
+++ b/targets/brcm2708-bcm2709
@@ -1,4 +1,4 @@
+. targets/brcm2708.inc
+
 device raspberry-pi-2 rpi-2
 manifest_alias raspberry-pi-2-model-b-rev-1.1
-factory -ext4-sdcard .img.gz
-sysupgrade -ext4-sdcard .img.gz
diff --git a/targets/brcm2708-bcm2710 b/targets/brcm2708-bcm2710
index 5c93449c3..e523dce6e 100644
--- a/targets/brcm2708-bcm2710
+++ b/targets/brcm2708-bcm2710
@@ -1,3 +1,3 @@
+. targets/brcm2708.inc
+
 device raspberry-pi-3 rpi-3
-factory -ext4-sdcard .img.gz
-sysupgrade -ext4-sdcard .img.gz
diff --git a/targets/brcm2708.inc b/targets/brcm2708.inc
new file mode 100644
index 000000000..fed621d3f
--- /dev/null
+++ b/targets/brcm2708.inc
@@ -0,0 +1,2 @@
+factory -ext4-factory .img.gz
+sysupgrade -ext4-sysupgrade .img.gz
-- 
GitLab