Skip to content

Commit

Permalink
ath79: image: extract common part for Fortinet FAP series
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Leo-PL authored and pull[bot] committed Feb 18, 2024
1 parent 5568010 commit b6920ce
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions target/linux/ath79/image/generic.mk
Expand Up @@ -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) | \
Expand All @@ -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
Expand Down

0 comments on commit b6920ce

Please sign in to comment.