add build option for vep4600

This commit is contained in:
Kim Hagen 2019-11-05 14:09:41 +01:00
parent ef8d9f1ef6
commit 2ec7f9b306
10 changed files with 66 additions and 0 deletions

View File

@ -9,6 +9,10 @@ all:
check_build_config:
@scripts/check-config
.PHONY: vep4600_serial
vep4600_serial:
sed -i 's/union=overlay/union=overlay console=ttyS0,115200n8/g' scripts/live-build-config
.PHONY: prepare
prepare:
@set -e
@ -190,6 +194,19 @@ PACKET-debug: clean prepare
cd ..
@scripts/copy-image
.PHONY: vep4600
.ONESHELL:
vep4600: check_build_config clean vep4600_serial 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
cp tools/vep4600/90-vep4600.chroot build/config/hooks/live/
cp tools/vep4600/*.link build/config/includes.chroot/etc/systemd/network
cd $(build_dir)
lb build 2>&1 | tee build.log
cd ..
@scripts/copy-image
.PHONY: clean
.ONESHELL:
clean:

View File

@ -0,0 +1,5 @@
[Match]
Path=pci-0000:04:*
[Link]
Name=eth0

View File

@ -0,0 +1,5 @@
[Match]
Path=0000:b8:00.0
[Link]
Name=eth1

View File

@ -0,0 +1,5 @@
[Match]
Path=0000:b8:00.1
[Link]
Name=eth2

View File

@ -0,0 +1,5 @@
[Match]
Path=pci-0000:02:00.1
[Link]
Name=eth3

View File

@ -0,0 +1,5 @@
[Match]
Path=pci-0000:02:00.0
[Link]
Name=eth4

View File

@ -0,0 +1,5 @@
[Match]
Path=pci-0000:02:00.3
[Link]
Name=eth5

View File

@ -0,0 +1,5 @@
[Match]
Path=pci-0000:02:00.2
[Link]
Name=eth6

14
tools/vep4600/90-vep4600.chroot Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
echo I: Change the default serial baud rate.
sed -i 's/9600/115200/g' /opt/vyatta/etc/config-migrate/migrate/system/3-to-4
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
echo I: Update initramfs.
update-initramfs -u

View File