Skip to content

Commit

Permalink
Merge branch 'main' into joslobo/merge-for-august-update2
Browse files Browse the repository at this point in the history
  • Loading branch information
jslobodzian committed Aug 10, 2023
2 parents b819d39 + 8f715de commit 29042cc
Show file tree
Hide file tree
Showing 11 changed files with 46 additions and 9 deletions.
5 changes: 4 additions & 1 deletion SPECS-SIGNED/kernel-signed/kernel-signed.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Summary: Signed Linux Kernel for %{buildarch} systems
Name: kernel-signed-%{buildarch}
Version: 5.15.125.1
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -153,6 +153,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
%exclude /module_info.ld

%changelog
* Thu Aug 10 2023 Rachel Menge <[email protected]> - 5.15.125.1-2
- Bump release to match kernel

* Wed Aug 09 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.125.1-1
- Auto-upgrade to 5.15.125.1

Expand Down
5 changes: 4 additions & 1 deletion SPECS/kernel-headers/kernel-headers.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Linux API header files
Name: kernel-headers
Version: 5.15.125.1
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -36,6 +36,9 @@ cp -rv usr/include/* /%{buildroot}%{_includedir}
%{_includedir}/*

%changelog
* Thu Aug 10 2023 Rachel Menge <[email protected]> - 5.15.125.1-2
- Bump release to match kernel

* Wed Aug 09 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.125.1-1
- Auto-upgrade to 5.15.125.1

Expand Down
2 changes: 1 addition & 1 deletion SPECS/kernel/config
Original file line number Diff line number Diff line change
Expand Up @@ -2003,7 +2003,7 @@ CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_NBD=m
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
Expand Down
2 changes: 1 addition & 1 deletion SPECS/kernel/kernel.signatures.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Signatures": {
"cbl-mariner-ca-20211013.pem": "5ef124b0924cb1047c111a0ecff1ae11e6ad7cac8d1d9b40f98f99334121f0b0",
"config": "56ecd1e814e91f37420c65f3fe6aa06a8f0204ace2af6162f452f932077a9d57",
"config": "31675ad04227508329fa2ab00ea1ab43758262421992c0d6ca779ceb411c0a69",
"config_aarch64": "76ed18b4af628e76db14b8a1e024bbfa59768fb3fece2cf7830ede304ca15bb9",
"sha512hmac-openssl.sh": "02ab91329c4be09ee66d759e4d23ac875037c3b56e5a598e32fd1206da06a27f",
"kernel-5.15.125.1.tar.gz": "f97197bae4b4b10bbb917e406175e9b52330f35b32f0e748586eb622708759e7"
Expand Down
5 changes: 4 additions & 1 deletion SPECS/kernel/kernel.spec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
Summary: Linux Kernel
Name: kernel
Version: 5.15.125.1
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -422,6 +422,9 @@ ln -sf linux-%{uname_r}.cfg /boot/mariner.cfg
%{_sysconfdir}/bash_completion.d/bpftool

%changelog
* Thu Aug 10 2023 Rachel Menge <[email protected]> - 5.15.125.1-2
- Enable CONFIG_BLK_DEV_NBD module

* Wed Aug 09 2023 CBL-Mariner Servicing Account <[email protected]> - 5.15.125.1-1
- Auto-upgrade to 5.15.125.1

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
filesystem-1.1-15.cm2.aarch64.rpm
kernel-headers-5.15.125.1-1.cm2.noarch.rpm
kernel-headers-5.15.125.1-2.cm2.noarch.rpm
glibc-2.35-4.cm2.aarch64.rpm
glibc-devel-2.35-4.cm2.aarch64.rpm
glibc-i18n-2.35-4.cm2.aarch64.rpm
Expand Down
2 changes: 1 addition & 1 deletion toolkit/resources/manifests/package/pkggen_core_x86_64.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
filesystem-1.1-15.cm2.x86_64.rpm
kernel-headers-5.15.125.1-1.cm2.noarch.rpm
kernel-headers-5.15.125.1-2.cm2.noarch.rpm
glibc-2.35-4.cm2.x86_64.rpm
glibc-devel-2.35-4.cm2.x86_64.rpm
glibc-i18n-2.35-4.cm2.x86_64.rpm
Expand Down
2 changes: 1 addition & 1 deletion toolkit/resources/manifests/package/toolchain_aarch64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ intltool-0.51.0-7.cm2.noarch.rpm
itstool-2.0.6-4.cm2.noarch.rpm
kbd-2.2.0-1.cm2.aarch64.rpm
kbd-debuginfo-2.2.0-1.cm2.aarch64.rpm
kernel-headers-5.15.125.1-1.cm2.noarch.rpm
kernel-headers-5.15.125.1-2.cm2.noarch.rpm
kmod-29-1.cm2.aarch64.rpm
kmod-debuginfo-29-1.cm2.aarch64.rpm
kmod-devel-29-1.cm2.aarch64.rpm
Expand Down
2 changes: 1 addition & 1 deletion toolkit/resources/manifests/package/toolchain_x86_64.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ intltool-0.51.0-7.cm2.noarch.rpm
itstool-2.0.6-4.cm2.noarch.rpm
kbd-2.2.0-1.cm2.x86_64.rpm
kbd-debuginfo-2.2.0-1.cm2.x86_64.rpm
kernel-headers-5.15.125.1-1.cm2.noarch.rpm
kernel-headers-5.15.125.1-2.cm2.noarch.rpm
kmod-29-1.cm2.x86_64.rpm
kmod-debuginfo-29-1.cm2.x86_64.rpm
kmod-devel-29-1.cm2.x86_64.rpm
Expand Down
13 changes: 13 additions & 0 deletions toolkit/scripts/mariner-required-configs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,19 @@
"PR": [
"https://github.com/microsoft/CBL-Mariner/pull/5964"
]
},
"CONFIG_BLK_DEV_NBD": {
"value": [
"m"
],
"arch": [
"AMD64",
"ARM64"
],
"comment": "Add nbd module for customer",
"PR": [
"https://github.com/microsoft/CBL-Mariner/pull/5972"
]
}
}
}
Expand Down
15 changes: 15 additions & 0 deletions toolkit/scripts/tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,21 @@ $(call create_folder,$(BUILD_DIR)/tools)

######## GO TOOLS ########

# The version as held in the go.mod file (a line like 'go 1.19'). Add "go" to the front of the version number
# so that it matches the output of 'go version' (e.g. 'go1.19').
go_min_version = go$(shell grep -E '^go [0-9]+\.[0-9]+' $(TOOLS_DIR)/go.mod | awk '{print $$2}')

# Check if the go version is high enough to build the tools. The 'sort' command is used to compare the versions
# (with -V which sorts by version number). If the lowest version in the sort is the same as the minimum version, then
# the installed version must be greater than or equal to the minimum version and we are fine.
ifeq ($(REBUILD_TOOLS),y)
go_current_version = $(shell go version | awk '{print $$3}')
go_version_check = $(shell printf '%s\n%s\n' "$(go_min_version)" "$(go_current_version)" | sort -V | head -n1)
ifneq ($(go_version_check),$(go_min_version))
$(error Go version '$(go_current_version)' is less than minimum required version '$(go_min_version)')
endif
endif

# List of go utilities in tools/ directory
go_tool_list = \
boilerplate \
Expand Down

0 comments on commit 29042cc

Please sign in to comment.