Skip to content

Commit

Permalink
kernelCTF: GHA: build: quickfix COS's __cold macro redefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
koczkatamas committed May 10, 2024
1 parent 1485c0e commit cf27b58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kernelctf/build_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ if [ ! -z "$CONFIG_FULL_FN" ]; then
fi
fi

# since cos-109-17800-218-14, COS does not build due to __cold redefinition, quickfix this until its fixed in the COS repo
if [ "$TARGET" == "cos" ]; then
sed -i 's/.*#define.__cold.*//' include/linux/compiler_attributes.h
fi

make -j`nproc`

mkdir -p $RELEASE_DIR 2>/dev/null || true
Expand Down

0 comments on commit cf27b58

Please sign in to comment.