Skip to content

Commit

Permalink
cirrus: Clone neutron clang from yml
Browse files Browse the repository at this point in the history
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>
  • Loading branch information
Tashar02 committed Jan 4, 2023
1 parent 5d8da45 commit 3f22112
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
1 change: 1 addition & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ task:
- sed -i '/E_ROOT/d' /usr/bin/makepkg
- sed -i "s/PKGEXT='.pkg.tar.xz'/PKGEXT='.pkg.tar.zst'/" /etc/makepkg.conf
- echo 'COMPRESSZST+=(--threads=0)' >> /etc/makepkg.conf
- mkdir neutron-clang && cd neutron-clang && bash <(curl -s https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman) -S && cd ..

build_script:
- ln -fs /usr/share/zoneinfo/Asia/Dhaka /etc/localtime && date
Expand Down
16 changes: 2 additions & 14 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ options=('!strip')

export KBUILD_BUILD_HOST=cirrus
export KBUILD_BUILD_USER=Tashar02
export TC="$(pwd)/neutron-clang/bin"
export PATH="$TC:${PATH}"

FLAGS=(
LLVM=1
Expand All @@ -40,17 +42,6 @@ FLAGS=(
prepare() {
cd ..

cdir=$(pwd)
if test ! -d "toolchains/clang"; then
mkdir -p "toolchains/clang"
cd "toolchains/clang"
bash <(curl -s "https://raw.githubusercontent.com/Neutron-Toolchains/antman/main/antman") -S >/dev/null
fi
cd $cdir || cd -

export TC="$cdir/../toolchains/clang/bin"
export PATH="$TC:${PATH}"

echo "Setting config..."

make ${FLAGS[@]} arch_defconfig
Expand All @@ -60,9 +51,6 @@ prepare() {
}

build() {
export TC="$cdir/../toolchains/clang/bin"
export PATH="$TC:${PATH}"

cd ..

if ! command -v ccache &>/dev/null; then
Expand Down

0 comments on commit 3f22112

Please sign in to comment.