Add build/install scripts and improve README.

This commit is contained in:
Christian Deacon
2025-02-23 17:27:27 -05:00
parent f771412f6e
commit 816960bf39
9 changed files with 225 additions and 46 deletions

13
scripts/build.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
STATIC="$1"
if [ -z "$STATIC" ]; then
STATIC=0
fi
if [ -z "$ROOT" ]; then
LIBBPF_LIBXDP_STATIC=$STATIC make
else
cd $ROOT && LIBBPF_LIBXDP_STATIC=$STATIC make
fi

7
scripts/clean.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make clean
else
cd $ROOT && make clean
fi

7
scripts/install.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make install
else
cd $ROOT && make install
fi

7
scripts/libxdp_build.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make libxdp
else
cd $ROOT && make libxdp
fi

7
scripts/libxdp_clean.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make libxdp_clean
else
cd $ROOT && make libxdp_clean
fi

7
scripts/libxdp_install.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
if [ -z "$ROOT" ]; then
make libxdp_install
else
cd $ROOT && make libxdp_install
fi