summaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/image/generic.mk
diff options
context:
space:
mode:
authorLech Perczak <lech.perczak@gmail.com>2023-07-26 03:01:02 +0200
committerDavid Bauer <mail@david-bauer.net>2023-11-03 23:06:07 +0100
commit6c12c88d2e8f98961fd51e2a2b25df7d73c26554 (patch)
treef9f1233a3f7321cc2215f6b500d40ec41a7825ed /target/linux/ath79/image/generic.mk
parentc6a090dbf63dd9763e5b4d31be0ea5cfd6507c89 (diff)
downloadopenwrt-6c12c88d2e8f98961fd51e2a2b25df7d73c26554.tar.gz
openwrt-6c12c88d2e8f98961fd51e2a2b25df7d73c26554.tar.bz2
openwrt-6c12c88d2e8f98961fd51e2a2b25df7d73c26554.zip
ath79: image: extract common part for Fortinet FAP series
In preparation for FAP-220-B support, extract the common part of image recipe for FAP-221-B. Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Diffstat (limited to 'target/linux/ath79/image/generic.mk')
-rw-r--r--target/linux/ath79/image/generic.mk12
1 files changed, 8 insertions, 4 deletions
diff --git a/target/linux/ath79/image/generic.mk b/target/linux/ath79/image/generic.mk
index 59cc3c5a2b..d8ee3192c0 100644
--- a/target/linux/ath79/image/generic.mk
+++ b/target/linux/ath79/image/generic.mk
@@ -1532,12 +1532,9 @@ define Device/extreme-networks_ws-ap3805i
endef
TARGET_DEVICES += extreme-networks_ws-ap3805i
-define Device/fortinet_fap-221-b
+define Device/fortinet_fap_common
$(Device/senao_loader_okli)
- SOC := ar9344
DEVICE_VENDOR := Fortinet
- DEVICE_MODEL := FAP-221-B
- FACTORY_IMG_NAME := FP221B-9.99-AP-build999-999999-patch99
IMAGE_SIZE := 9216k
LOADER_FLASH_OFFS := 0x040000
IMAGE/factory.bin := append-kernel | pad-to $$$$(BLOCKSIZE) | \
@@ -1546,6 +1543,13 @@ define Device/fortinet_fap-221-b
append-loader-okli-uimage $(1) | pad-to 10944k | \
gzip-filename $$$$(FACTORY_IMG_NAME)
endef
+
+define Device/fortinet_fap-221-b
+ $(Device/fortinet_fap_common)
+ SOC := ar9344
+ DEVICE_MODEL := FAP-221-B
+ FACTORY_IMG_NAME := FP221B-9.99-AP-build999-999999-patch99
+endef
TARGET_DEVICES += fortinet_fap-221-b
define Device/glinet_6408