Skip to content

Commit

Permalink
Getting ready for rc1-2
Browse files Browse the repository at this point in the history
  • Loading branch information
32bitmicro committed Jun 23, 2024
1 parent 73d9e2a commit f3660cc
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions build-from-public-repos.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
#!/bin/bash

git config --global user.email "[email protected]"
git config --global user.name "Pawel Wodnicki"

mkdir repos
git -C repos clone https://github.com/32bitmicro/llvm-project.git
git -C repos/llvm-project am -k "$PWD"/patches/llvm-project/*.patch
git -C repos clone https://github.com/32bitmicro/picolibc.git
git -C repos/picolibc apply "$PWD"/patches/picolibc.patch
mkdir build-from-repos
cd build-from-repos
cmake .. -GNinja -DFETCHCONTENT_SOURCE_DIR_LLVMPROJECT=../repos/llvm-project -DFETCHCONTENT_SOURCE_DIR_PICOLIBC=../repos/picolibc
ninja llvm-toolchain
RELEASE=18.x
SUFFIX=rc1
PICOLIBC=1.8.6
REPOS=repos-$RELEASE-$SUFFIX
BUILD=build-$RELEASE-$SUFFIX

git config --global user.email $EMAIL
git config --global user.name $NAME

PATHPREFIX="${PREFIX:-/tmp}"
cd $PATHPREFIX
git clone https://github.com/32bitmicro/LLVM-Embedded-Toolchain.git

mkdir $REPOS
git -C $REPOS clone -b release/$RELEASE [email protected]:32bitmicro/llvm-project.git
#git -C $REPOS/llvm-project am -k "$PWD"/patches/llvm-project/*.patch
git -C $REPOS clone [email protected]:32bitmicro/picolibc.git
git -C $REPOS/picolibc checkout $PICOLIBC -b $PICOLIBC
git -C $REPOS/picolibc apply "$PWD"/patches/picolibc.patch

mkdir $BUILD
cd $BUILD
cmake $PATHPREFIX/LLVM-Embedded-Toolchain -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DFETCHCONTENT_SOURCE_DIR_LLVMPROJECT=$PATHPREFIX/$REPOS/llvm-project -DFETCHCONTENT_SOURCE_DIR_PICOLIBC=$PATHPREFIX/$REPOS/picolibc -DETOOL_VERSION_SUFFIX=$SUFFIX
ninja llvm-toolchain
ninja package-llvm-toolchain

0 comments on commit f3660cc

Please sign in to comment.