Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .azure-pipelines/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ parameters:
values:
- vs
- pensando
- aspeed
default: vs

- name: pool
Expand Down Expand Up @@ -64,6 +65,7 @@ jobs:
itemPattern: ${{ parameters.old_linux_deb_pattern }}
targetPath: $(Agent.TempDirectory)/
displayName: "Download the linux-image artifact from the last build with a different kernel version"
condition: ${{ not(eq(parameters.platform, 'aspeed')) }}
- script: |
openssl req -new -noenc -utf8 -sha256 -days 30 -batch -x509 -subj "/CN=Autogenerated pipeline build key" -outform PEM -out build_trusted_key.pem -keyout /dev/null
displayName: "Generate additional secure boot certificate"
Expand All @@ -75,7 +77,7 @@ jobs:
export SECURE_UPGRADE_MODE=dev
export SECURE_UPGRADE_SIGNING_CERT=$(System.DefaultWorkingDirectory)/build_trusted_key.pem
fi
CONFIGURED_ARCH=${{ parameters.arch }} CONFIGURED_PLATFORM=${{ parameters.platform }} make
CONFIGURED_ARCH=${{ parameters.arch }} CONFIGURED_PLATFORM=${{ parameters.platform }} ADDITIONAL_BUILD_PROFILES=pkg.linux.nokerneldbginfo make
displayName: "Compile sonic kernel"
- script: |
set -e
Expand All @@ -91,6 +93,7 @@ jobs:
--output $(System.DefaultWorkingDirectory)/kconfig-diff-${{ parameters.platform }}-${{ parameters.arch }}.rst
cat $(System.DefaultWorkingDirectory)/kconfig-diff-${{ parameters.platform }}-${{ parameters.arch }}.rst
displayName: "Compute the kconfig diff"
condition: ${{ not(eq(parameters.platform, 'aspeed')) }}
- publish: $(System.DefaultWorkingDirectory)/
artifact: ${{ parameters.artifact_name }}
displayName: "Archive sonic kernel debian packages"
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ endif
SECURE_UPGRADE_MODE ?=
SECURE_UPGRADE_SIGNING_CERT ?=
SECURE_UPGRADE_KERNEL_CAFILE ?= $(SECURE_UPGRADE_SIGNING_CERT)
ADDITIONAL_BUILD_PROFILES ?=

LINUX_HEADER_COMMON = linux-headers-$(KERNEL_VERSION)$(KERNEL_ABISUFFIX)-common-$(KERNEL_FEATURESET)_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_all.deb
LINUX_HEADER_ARCH = linux-headers-$(KVERSION)_$(KERNEL_VERSION)-$(KERNEL_SUBVERSION)_$(CONFIGURED_ARCH).deb
Expand Down Expand Up @@ -99,9 +100,9 @@ $(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
# TODO(trixie): Make a way to verify that our configs are being set

ifeq ($(CROSS_BUILD_ENVIRON), y)
dpkg-buildpackage -b -us -uc -a$(CONFIGURED_ARCH) -Pcross,nocheck,nodoc -j$(SONIC_CONFIG_MAKE_JOBS)
dpkg-buildpackage -b -us -uc -a$(CONFIGURED_ARCH) -Pcross,nocheck,nodoc,$(ADDITIONAL_BUILD_PROFILES) -j$(SONIC_CONFIG_MAKE_JOBS)
else
dpkg-buildpackage -b -us -uc -Pnodoc -j$(SONIC_CONFIG_MAKE_JOBS)
dpkg-buildpackage -b -us -uc -Pnodoc,$(ADDITIONAL_BUILD_PROFILES) -j$(SONIC_CONFIG_MAKE_JOBS)
endif
Comment thread
saiarcot895 marked this conversation as resolved.
popd

Expand Down
10 changes: 10 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,13 @@ stages:
old_linux_deb_pattern: linux-image-*-unsigned_*deb
linux_deb_pattern: linux-image-*-unsigned_*deb

- template: .azure-pipelines/build-template.yml
parameters:
arch: arm64
platform: aspeed
pool: sonicso1ES-arm64
old_artifact_name: sonic-linux-kernel.aspeed.arm64
artifact_name: sonic-linux-kernel.aspeed.arm64
Comment on lines +70 to +74
old_linux_deb_pattern: linux-image-*-unsigned_*deb
linux_deb_pattern: linux-image-*-unsigned_*deb