Skip to content

Commit

Permalink
Merge pull request #593 from c-po/flavor-backport
Browse files Browse the repository at this point in the history
build: backport of new flavor build system
  • Loading branch information
c-po authored May 6, 2024
2 parents 2da9d98 + 255bf96 commit 6a8b976
Show file tree
Hide file tree
Showing 55 changed files with 1,264 additions and 1,208 deletions.
15 changes: 2 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,8 @@ all:
@echo "Make what specifically?"
@echo "The most common target is 'iso'"

.PHONY: iso
.ONESHELL:
iso: clean
set -o pipefail
@./build-vyos-image iso
exit 0

.PHONY: prepare-package-env
.ONESHELL:
prepare-package-env:
@set -e
@scripts/pbuilder-config
@scripts/pbuilder-setup
%:
VYOS_TEMPLATE_DIR=`pwd`/packages/vyos-1x/data/templates/ ./build-vyos-image $*

.PHONY: checkiso
.ONESHELL:
Expand Down
2 changes: 1 addition & 1 deletion build-vyos-image
116 changes: 116 additions & 0 deletions data/build-flavors/dell-vep1400.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
# ISO image for Dell VEP4600 devices

image_formats = "iso"

# Replace built-in NIC naming rules with empty files
# to prevent them from taking any effect

[[includes_chroot]]
path = "lib/systemd/network/99-default.link"
data = ''

[[includes_chroot]]
path = "lib/udev/rules.d/65-vyatta-net.rules"
data = ''

[[includes_chroot]]
path = "lib/udev/rules.d/75-persistent-net-generator.rules"
data = ''

# Install platform-specific link files

[[includes_chroot]]
path = "etc/systemd/network/10-eth0-000.link"
data = '''
[Match]
Path=pci-0000:05:00.1
Driver=ixgbe
[Link]
Name=eth0
Alias=SFP+1
'''

[[includes_chroot]]
path = "etc/systemd/network/10-eth1-000.link"
data = '''
[Match]
Path=pci-0000:05:00.0
Driver=ixgbe
[Link]
Name=eth1
Alias=SFP+2
'''

[[includes_chroot]]
path = "etc/systemd/network/10-eth2-000.link"
data = '''
[Match]
Path=pci-0000:02:00.2
Driver=igb
[Link]
Name=eth2
Alias=GE1
'''

[[includes_chroot]]
path = "etc/systemd/network/10-eth3-000.link"
data = '''
[Match]
Path=pci-0000:02:00.3
Driver=igb
[Link]
Name=eth3
Alias=GE2
'''

[[includes_chroot]]
path = "etc/systemd/network/10-eth4-000.link"
data = '''
[Match]
Path=pci-0000:02:00.0
Driver=igb
[Link]
Name=eth4
Alias=GE3
'''

[[includes_chroot]]
path = "etc/systemd/network/10-eth5-000.link"
data = '''
[Match]
Path=pci-0000:02:00.1
Driver=igb
[Link]
Name=eth5
Alias=GE4
'''

[[includes_chroot]]
path = "etc/systemd/network/10-eth6-000.link"
data = '''
[Match]
Path=pci-0000:07:00.1
Driver=ixgbe
[Link]
Name=eth6
Alias=GE5
'''

[[includes_chroot]]
path = "etc/systemd/network/10-eth7-000.link"
data = '''
[Match]
Path=pci-0000:07:00.0
Driver=ixgbe
[Link]
Name=eth7
Alias=GE6
'''
Loading

0 comments on commit 6a8b976

Please sign in to comment.