mvebu: add common image definition for FortiGate devices

Add a common definition of Fortinet FortiGate devices to
image/cortexa9.mk for a preparation of adding support for
other FortiGate 3xE/5xE devices.

Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
This commit is contained in:
INAGAKI Hiroshi 2023-12-04 21:02:13 +09:00 committed by Hauke Mehrtens
parent c5b7ec8cee
commit 0618eae506

View file

@ -114,33 +114,31 @@ define Device/cznic_turris-omnia
endef endef
TARGET_DEVICES += cznic_turris-omnia TARGET_DEVICES += cznic_turris-omnia
define Device/fortinet_fg-30e define Device/fortinet
DEVICE_VENDOR := Fortinet DEVICE_VENDOR := Fortinet
DEVICE_MODEL := FortiGate 30E
SOC := armada-385 SOC := armada-385
KERNEL := kernel-bin | append-dtb KERNEL := kernel-bin | append-dtb
KERNEL_INITRAMFS := kernel-bin | append-dtb | fortigate-header | \
gzip-filename FGT30E
KERNEL_SIZE := 6144k KERNEL_SIZE := 6144k
DEVICE_DTS := armada-385-fortinet-fg-30e
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \ IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
sysupgrade-tar rootfs=$$$$@ | append-metadata sysupgrade-tar rootfs=$$$$@ | append-metadata
DEVICE_PACKAGES := kmod-hwmon-nct7802 DEVICE_PACKAGES := kmod-hwmon-nct7802
endef endef
define Device/fortinet_fg-30e
$(Device/fortinet)
DEVICE_MODEL := FortiGate 30E
DEVICE_DTS := armada-385-fortinet-fg-30e
KERNEL_INITRAMFS := kernel-bin | append-dtb | fortigate-header | \
gzip-filename FGT30E
endef
TARGET_DEVICES += fortinet_fg-30e TARGET_DEVICES += fortinet_fg-30e
define Device/fortinet_fg-50e define Device/fortinet_fg-50e
DEVICE_VENDOR := Fortinet $(Device/fortinet)
DEVICE_MODEL := FortiGate 50E DEVICE_MODEL := FortiGate 50E
SOC := armada-385 DEVICE_DTS := armada-385-fortinet-fg-50e
KERNEL := kernel-bin | append-dtb
KERNEL_INITRAMFS := kernel-bin | append-dtb | fortigate-header | \ KERNEL_INITRAMFS := kernel-bin | append-dtb | fortigate-header | \
gzip-filename FGT50E gzip-filename FGT50E
KERNEL_SIZE := 6144k
DEVICE_DTS := armada-385-fortinet-fg-50e
IMAGE/sysupgrade.bin := append-rootfs | pad-rootfs | \
sysupgrade-tar rootfs=$$$$@ | append-metadata
DEVICE_PACKAGES := kmod-hwmon-nct7802
endef endef
TARGET_DEVICES += fortinet_fg-50e TARGET_DEVICES += fortinet_fg-50e