Skip to content

Commit

Permalink
CI: Fix kernel-next build.
Browse files Browse the repository at this point in the history
  • Loading branch information
InterLinked1 committed Nov 22, 2024
1 parent fc1dddd commit fd45068
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ jobs:
run: |
cd /usr/src
git clone --depth 1 git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
mv linux-next linux
- name: Build kernel
run: |
cd /usr/src/linux-next
cd /usr/src/linux
make -j$(nproc) kernelversion
make -j$(nproc) x86_64_defconfig
make -j$(nproc) modules_prepare
Expand All @@ -122,7 +123,7 @@ jobs:
- name: Build DAHDI
run: |
./phreaknet.sh make
KSRC=/usr/src/linux-next phreaknet dahdi --drivers
KSRC=/usr/src/linux phreaknet dahdi --drivers
ubuntu-latest:
runs-on: ubuntu-24.04
name: Ubuntu 24.04
Expand Down
6 changes: 5 additions & 1 deletion phreaknet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -910,7 +910,7 @@ install_prereq() {
# wget should already be installed at this point, so it's not included here
PREREQ_PACKAGES=""
RHEL_MAJOR_VERSION_8=0
printf "Installing prerequisites for %s..." "$OS_DIST_INFO"
printf "Installing prerequisites for %s...\n" "$OS_DIST_INFO"
# Even if we are just installing DAHDI (without Asterisk), $CHAN_DAHDI should be set to 1 at this point.
# libnewt-dev is needed for newt, which dahdi_tool requires. If it's not available, it won't get built.
# dwarves is needed for pahole, which DAHDI Linux install needs for BTF generation
Expand Down Expand Up @@ -1946,6 +1946,10 @@ install_dahdi() {
# if KSRC/KVERS env vars are set, they will automatically propagate to children
$AST_MAKE -j$(nproc) $DAHDI_CFLAGS
if [ $? -ne 0 ]; then
if [ "$KSRC" != "" ]; then
# With debug, and not parallelized
$AST_MAKE -n $DAHDI_CFLAGS
fi
die "DAHDI Linux compilation failed, aborting install"
fi
$AST_MAKE install $DAHDI_CFLAGS
Expand Down

0 comments on commit fd45068

Please sign in to comment.