mirror of
https://github.com/JakeHillion/scx.git
synced 2024-12-02 05:47:12 +00:00
1769dece7d
Instead clone the libbpf repo at a specific hash during setup. This is to fix an issue whereby submodules are not included in the tarball and therefore won't be updated/fetched during setup after unzipping the tarball.
13 lines
275 B
Bash
13 lines
275 B
Bash
#!/bin/bash
|
|
|
|
cd $1
|
|
rm -rf libbpf
|
|
git clone --depth=1 https://github.com/libbpf/libbpf
|
|
cd libbpf
|
|
git fetch --depth=1 origin $2
|
|
git checkout $2
|
|
|
|
# This is needed because we haven't built libbpf yet
|
|
# and this is where the headers will end up
|
|
mkdir src/usr
|
|
mkdir src/usr/include |