@@ -35,11 +35,19 @@ function merge_with_upstream() {
3535# The functions below are specific for the Linux kernel packages
3636# and contain the majority of their common code.
3737#
38+ # Ensure that Delphix's version of the rust toolchain is
39+ # installed rather than Ubuntu's version to satisfy the kernel's
40+ # dependency on the rust toolchain. Delphix's rust toolchain is
41+ # supplied via virtual packages and hence must be installed explicitly
42+ # otherwise apt installs the Ubuntu's version of the rust toolchain.
43+ #
3844function kernel_prepare() {
3945 logmust install_pkgs \
40- equivs \
46+ " $DEPDIR " /delphix-rust/ * .deb \
4147 devscripts \
42- kernel-wedge
48+ equivs \
49+ kernel-wedge \
50+ gawk
4351}
4452
4553#
@@ -53,8 +61,8 @@ function kernel_build() {
5361 local platform=" $1 "
5462 #
5563 # Note: Extra arguments can overwrite default arguments.
56- # For example in this function we default skipdbg
57- # to false, but if we pass "skipdbg =true" as an
64+ # For example in this function we default do_dbgsym_package
65+ # to false, but if we pass "do_dbgsym_package =true" as an
5866 # extra argument we will be overwriting this value
5967 # to true. This is because when a variable's value
6068 # is declared multiple times when invoking the
@@ -103,31 +111,29 @@ function kernel_build() {
103111 echo " $kernel_version " > " $WORKDIR /artifacts/KERNEL_VERSION"
104112
105113 #
106- # skipdbg=false
114+ # do_dbgsym_package=true
107115 # We need debug info for our debugging tools to work.
108116 # Don't skip them.
117+ # do_tools_common=false
118+ # We do not need to build linux-tools-common package and we
119+ # install it directly from our package mirror.
120+ # do_tools_host=false
121+ # We do not need to build linux-tools-host package.
109122 # uefi_signed=false
110123 # This variable defaults to true but since we don't have
111124 # any intention and logic to provide signatures for now
112125 # we set it to false to avoid any misconfigurations down
113126 # the line.
114- # disable_d_i=true
115- # This prevents udeb packages from being built as they are
116- # not consumed by the Delphix Appliance.
117- # do_dkms_*=false
127+ # dkms_exclude=*
118128 # This disables the build of various out-of-tree kernel modules
119129 # that we do not use in our product or that we provide separately.
120130 #
121131 local debian_rules_args=(
122- " skipdbg=false"
132+ " do_dbgsym_package=true"
133+ " do_tools_common=false"
134+ " do_tools_host=false"
123135 " uefi_signed=false"
124- " disable_d_i=true"
125- " do_zfs=false"
126- " do_dkms_nvidia=false"
127- " do_dkms_nvidia_server=false"
128- " do_dkms_vbox=false"
129- " do_dkms_wireguard=false"
130- " dkms_exclude=v4l2loopback"
136+ " dkms_exclude=zfs ipu6 iwlwifi v4l2loopback usbio"
131137 " flavours=$platform "
132138 " abinum=${delphix_abinum} "
133139 )
@@ -262,11 +268,7 @@ function kernel_update_upstream() {
262268 local tag_prefix_flavour
263269 case " ${platform} " in
264270 generic)
265- if [[ " $UBUNTU_DISTRIBUTION " == focal ]]; then
266- tag_prefix_flavour=" Ubuntu-hwe"
267- else
268- tag_prefix_flavour=" Ubuntu"
269- fi
271+ tag_prefix_flavour=" Ubuntu"
270272 ;;
271273 aws | azure | gcp | oracle)
272274 tag_prefix_flavour=" Ubuntu-${platform} "
0 commit comments