forked from ARM-software/LLVM-embedded-toolchain-for-Arm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73d9e2a
commit f3660cc
Showing
1 changed file
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |