diff options
author | Eshenko Dmitriy <dmitriy.eshenko@vyos.io> | 2019-11-24 22:50:46 +0300 |
---|---|---|
committer | Kim Hagen <kim@sentrium.io> | 2021-09-26 07:15:44 -0500 |
commit | 8d3da190caaba1a94739b1f5cb8f0a35ef4474ed (patch) | |
tree | 7b961d5315a7ce9809a29b4d5e4b48a8f0ec7188 | |
parent | e3a891b2c4dca19a5175d5d1525040a7be8449fd (diff) | |
download | vyos-build-8d3da190caaba1a94739b1f5cb8f0a35ef4474ed.tar.gz vyos-build-8d3da190caaba1a94739b1f5cb8f0a35ef4474ed.zip |
Add build option for Edge-Core SAF51003L
-rw-r--r-- | Makefile | 27 | ||||
-rw-r--r-- | tools/saf51003I/11-eth1.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/12-eth2.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/13-eth3.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/14-eth4.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/15-eth5.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/16-eth6.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/17-eth7.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/18-eth8.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/19-eth9.link | 6 | ||||
-rw-r--r-- | tools/saf51003I/20-eth10.link | 6 | ||||
-rwxr-xr-x | tools/saf51003I/90-saf51003I.chroot | 13 | ||||
-rw-r--r-- | tools/saf51003I/99-default.link | 0 | ||||
-rwxr-xr-x | tools/saf51003I/saf51003I | 28 |
14 files changed, 125 insertions, 3 deletions
@@ -238,6 +238,21 @@ saf51015I: check_build_config clean prepare cd .. @scripts/copy-image +.PHONY: saf51003I +.ONESHELL: +saf51003I: check_build_config clean prepare + @set -e + @echo "It's not like I'm building this specially for you or anything!" + mkdir -p build/config/includes.chroot/etc/systemd/network + mkdir -p build/config/includes.chroot/usr/share/initramfs-tools/hooks + cp tools/saf51003I/90-saf51003I.chroot build/config/hooks/live/ + cp tools/saf51003I/*.link build/config/includes.chroot/etc/systemd/network/ + cp tools/saf51003I/saf51003I build/config/includes.chroot/usr/share/initramfs-tools/hooks/ + cd $(build_dir) + lb build 2>&1 | tee build.log + cd .. + @scripts/copy-image + .PHONY: test .ONESHELL: test: @@ -247,6 +262,15 @@ test: fi scripts/check-qemu-install --debug build/live-image-amd64.hybrid.iso +.PHONY: test +.ONESHELL: +test-no-interfaces: + if [ ! -f build/live-image-amd64.hybrid.iso ]; then + echo "Could not find build/live-image-amd64.hybrid.iso" + exit 1 + fi + scripts/check-qemu-install --debug --no-interfaces build/live-image-amd64.hybrid.iso + .PHONY: testd .ONESHELL: testd: @@ -265,8 +289,6 @@ testc: fi scripts/check-qemu-install --debug --configd --configtest build/live-image-amd64.hybrid.iso -======= ->>>>>>> a46cc51... add build option for Edge-Core saf51015I .PHONY: clean .ONESHELL: clean: @@ -286,7 +308,6 @@ clean: rm -f *.mf rm -f *.ovf rm -f *.ova - rm -f *.vmdk .PHONY: purge purge: diff --git a/tools/saf51003I/11-eth1.link b/tools/saf51003I/11-eth1.link new file mode 100644 index 00000000..6bfc4908 --- /dev/null +++ b/tools/saf51003I/11-eth1.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:02:00.0* + +[Link] +Name=eth1 +Alias=LAN1 diff --git a/tools/saf51003I/12-eth2.link b/tools/saf51003I/12-eth2.link new file mode 100644 index 00000000..5b900781 --- /dev/null +++ b/tools/saf51003I/12-eth2.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:02:00.1* + +[Link] +Name=eth2 +Alias=LAN2 diff --git a/tools/saf51003I/13-eth3.link b/tools/saf51003I/13-eth3.link new file mode 100644 index 00000000..24f10e35 --- /dev/null +++ b/tools/saf51003I/13-eth3.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:02:00.2* + +[Link] +Name=eth3 +Alias=LAN3 diff --git a/tools/saf51003I/14-eth4.link b/tools/saf51003I/14-eth4.link new file mode 100644 index 00000000..f2df4d44 --- /dev/null +++ b/tools/saf51003I/14-eth4.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:02:00.3* + +[Link] +Name=eth4 +Alias=LAN4 diff --git a/tools/saf51003I/15-eth5.link b/tools/saf51003I/15-eth5.link new file mode 100644 index 00000000..40bbe5c8 --- /dev/null +++ b/tools/saf51003I/15-eth5.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:05:00.0* + +[Link] +Name=eth5 +Alias=LAN5 diff --git a/tools/saf51003I/16-eth6.link b/tools/saf51003I/16-eth6.link new file mode 100644 index 00000000..c9aa0ca5 --- /dev/null +++ b/tools/saf51003I/16-eth6.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:05:00.1* + +[Link] +Name=eth6 +Alias=LAN6 diff --git a/tools/saf51003I/17-eth7.link b/tools/saf51003I/17-eth7.link new file mode 100644 index 00000000..897f1c2e --- /dev/null +++ b/tools/saf51003I/17-eth7.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:05:00.2* + +[Link] +Name=eth7 +Alias=LAN7 diff --git a/tools/saf51003I/18-eth8.link b/tools/saf51003I/18-eth8.link new file mode 100644 index 00000000..b28cccec --- /dev/null +++ b/tools/saf51003I/18-eth8.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:05:00.3* + +[Link] +Name=eth8 +Alias=LAN8 diff --git a/tools/saf51003I/19-eth9.link b/tools/saf51003I/19-eth9.link new file mode 100644 index 00000000..60dd0fff --- /dev/null +++ b/tools/saf51003I/19-eth9.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:08:00.0* + +[Link] +Name=eth9 +Alias=DMZ diff --git a/tools/saf51003I/20-eth10.link b/tools/saf51003I/20-eth10.link new file mode 100644 index 00000000..7d6ac36d --- /dev/null +++ b/tools/saf51003I/20-eth10.link @@ -0,0 +1,6 @@ +[Match] +Path=pci-0000:08:00.1* + +[Link] +Name=eth10 +Alias=WAN diff --git a/tools/saf51003I/90-saf51003I.chroot b/tools/saf51003I/90-saf51003I.chroot new file mode 100755 index 00000000..aa4da964 --- /dev/null +++ b/tools/saf51003I/90-saf51003I.chroot @@ -0,0 +1,13 @@ +#!/bin/sh +echo "ShowStatus=yes" >> /etc/systemd/system.conf + +echo I: Disable default link rule. +rm /lib/systemd/network/99-default.link +touch /lib/systemd/network/99-default.link +rm /lib/udev/rules.d/65-vyatta-net.rules +touch /lib/udev/rules.d/65-vyatta-net.rules +rm /lib/udev/rules.d/75-persistent-net-generator.rules +touch /lib/udev/rules.d/75-persistent-net-generator.rules + +echo I: Update initramfs. +update-initramfs -u diff --git a/tools/saf51003I/99-default.link b/tools/saf51003I/99-default.link new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/tools/saf51003I/99-default.link diff --git a/tools/saf51003I/saf51003I b/tools/saf51003I/saf51003I new file mode 100755 index 00000000..7dcaf034 --- /dev/null +++ b/tools/saf51003I/saf51003I @@ -0,0 +1,28 @@ +#!/bin/sh -e + +PREREQS="" + +prereqs() { echo "$PREREQS"; } + +case "$1" in + prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions + +mkdir -p $DESTDIR/etc/systemd/network +cp -p /etc/systemd/network/*.link $DESTDIR/etc/systemd/network/ + +mkdir -p $DESTDIR/lib/udev/rules.d +cp -p /lib/udev/rules.d/50-firmware.rules $DESTDIR/lib/udev/rules.d/ +cp -p /lib/udev/rules.d/50-udev-default.rules $DESTDIR/lib/udev/rules.d/ +cp -p /lib/udev/rules.d/55-dm.rules $DESTDIR/lib/udev/rules.d/ +cp -p /lib/udev/rules.d/60-cdrom_id.rules $DESTDIR/lib/udev/rules.d/ +cp -p /lib/udev/rules.d/60-persistent-storage-dm.rules $DESTDIR/lib/udev/rules.d/ +cp -p /lib/udev/rules.d/60-persistent-storage.rules $DESTDIR/lib/udev/rules.d/ +cp -p /lib/udev/rules.d/75-net-description.rules $DESTDIR/lib/udev/rules.d/ +cp -p /lib/udev/rules.d/80-drivers.rules $DESTDIR/lib/udev/rules.d/ +cp -p /lib/udev/rules.d/80-net-setup-link.rules $DESTDIR/lib/udev/rules.d/ |