mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
add build option for vep4600
This commit is contained in:
parent
ef8d9f1ef6
commit
2ec7f9b306
17
Makefile
17
Makefile
@ -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:
|
||||
|
||||
5
tools/vep4600/10-eth0.link
Normal file
5
tools/vep4600/10-eth0.link
Normal file
@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Path=pci-0000:04:*
|
||||
|
||||
[Link]
|
||||
Name=eth0
|
||||
5
tools/vep4600/10-eth1.link
Normal file
5
tools/vep4600/10-eth1.link
Normal file
@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Path=0000:b8:00.0
|
||||
|
||||
[Link]
|
||||
Name=eth1
|
||||
5
tools/vep4600/10-eth2.link
Normal file
5
tools/vep4600/10-eth2.link
Normal file
@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Path=0000:b8:00.1
|
||||
|
||||
[Link]
|
||||
Name=eth2
|
||||
5
tools/vep4600/10-eth3.link
Normal file
5
tools/vep4600/10-eth3.link
Normal file
@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Path=pci-0000:02:00.1
|
||||
|
||||
[Link]
|
||||
Name=eth3
|
||||
5
tools/vep4600/10-eth4.link
Normal file
5
tools/vep4600/10-eth4.link
Normal file
@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Path=pci-0000:02:00.0
|
||||
|
||||
[Link]
|
||||
Name=eth4
|
||||
5
tools/vep4600/10-eth5.link
Normal file
5
tools/vep4600/10-eth5.link
Normal file
@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Path=pci-0000:02:00.3
|
||||
|
||||
[Link]
|
||||
Name=eth5
|
||||
5
tools/vep4600/10-eth6.link
Normal file
5
tools/vep4600/10-eth6.link
Normal file
@ -0,0 +1,5 @@
|
||||
[Match]
|
||||
Path=pci-0000:02:00.2
|
||||
|
||||
[Link]
|
||||
Name=eth6
|
||||
14
tools/vep4600/90-vep4600.chroot
Executable file
14
tools/vep4600/90-vep4600.chroot
Executable 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
|
||||
0
tools/vep4600/99-default.link
Normal file
0
tools/vep4600/99-default.link
Normal file
Loading…
x
Reference in New Issue
Block a user